Ignore:
Timestamp:
Jun 4, 2024, 9:53:17 PM (6 months ago)
Author:
chronos
Message:
  • Modified: Compiler targets moved into modules.
Location:
trunk/Compiler/Modules/Java
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/Modules/Java/ModuleJava.pas

    r75 r77  
    44
    55uses
    6   Classes, SysUtils, ModularSystem, SourceConvertor;
     6  Classes, SysUtils, ModularSystem, SourceConvertor, TargetJava;
    77
    88type
     
    1010
    1111  TModuleJava = class(TModule)
     12    Target: TTargetJava;
    1213    constructor Create(AOwner: TComponent); override;
    1314    procedure DoInstall; override;
     
    3536procedure TModuleJava.DoInstall;
    3637begin
     38  Target := TTargetJava.Create;
     39  with TCompilerAPI(API) do begin
     40    RegisterTarget(TTargetJava);
     41  end;
    3742  inherited;
    3843end;
     
    4045procedure TModuleJava.DoUninstall;
    4146begin
     47  with TCompilerAPI(API) do begin
     48    UnregisterTarget(TTargetJava);
     49  end;
    4250  inherited;
    4351end;
Note: See TracChangeset for help on using the changeset viewer.