source: trunk/Compiler/Modules/NASM/ModuleNASM.pas

Last change on this file was 77, checked in by chronos, 6 months ago
  • Modified: Compiler targets moved into modules.
File size: 888 bytes
Line 
1unit ModuleNASM;
2
3interface
4
5uses
6 Classes, SysUtils, ModularSystem, TargetNASM, CompilerAPI;
7
8type
9
10 { TModuleNASM }
11
12 TModuleNASM = class(TModule)
13 public
14 Target: TTargetNASM;
15 constructor Create(AOwner: TComponent); override;
16 destructor Destroy; override;
17 procedure DoInstall; override;
18 procedure DoUninstall; override;
19 end;
20
21
22implementation
23
24resourcestring
25 SNASM = 'NASM';
26
27{ TModuleNASM }
28
29constructor TModuleNASM.Create;
30begin
31 inherited;
32 Identification := 'NASM';
33 Title := SNASM;
34end;
35
36destructor TModuleNASM.Destroy;
37begin
38 inherited;
39end;
40
41procedure TModuleNASM.DoInstall;
42begin
43 Target := TTargetNASM.Create;
44 with TCompilerAPI(API) do begin
45 RegisterTarget(TTargetNASM);
46 end;
47 inherited;
48end;
49
50procedure TModuleNASM.DoUninstall;
51begin
52 with TCompilerAPI(API) do begin
53 UnregisterTarget(TTargetNASM);
54 end;
55 inherited;
56end;
57
58end.
59
Note: See TracBrowser for help on using the repository browser.