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 | |
---|
1 | unit ModuleNASM;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | Classes, SysUtils, ModularSystem, TargetNASM, CompilerAPI;
|
---|
7 |
|
---|
8 | type
|
---|
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 |
|
---|
22 | implementation
|
---|
23 |
|
---|
24 | resourcestring
|
---|
25 | SNASM = 'NASM';
|
---|
26 |
|
---|
27 | { TModuleNASM }
|
---|
28 |
|
---|
29 | constructor TModuleNASM.Create;
|
---|
30 | begin
|
---|
31 | inherited;
|
---|
32 | Identification := 'NASM';
|
---|
33 | Title := SNASM;
|
---|
34 | end;
|
---|
35 |
|
---|
36 | destructor TModuleNASM.Destroy;
|
---|
37 | begin
|
---|
38 | inherited;
|
---|
39 | end;
|
---|
40 |
|
---|
41 | procedure TModuleNASM.DoInstall;
|
---|
42 | begin
|
---|
43 | Target := TTargetNASM.Create;
|
---|
44 | with TCompilerAPI(API) do begin
|
---|
45 | RegisterTarget(TTargetNASM);
|
---|
46 | end;
|
---|
47 | inherited;
|
---|
48 | end;
|
---|
49 |
|
---|
50 | procedure TModuleNASM.DoUninstall;
|
---|
51 | begin
|
---|
52 | with TCompilerAPI(API) do begin
|
---|
53 | UnregisterTarget(TTargetNASM);
|
---|
54 | end;
|
---|
55 | inherited;
|
---|
56 | end;
|
---|
57 |
|
---|
58 | end.
|
---|
59 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.