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