source: trunk/Compiler/Modules/Java/ModuleJava.pas

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