summaryrefslogtreecommitdiff
path: root/packages/fcl-passrc/fpmake.pp
blob: 8148cd44e16290404d53c392920c2f2a73979b45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{$ifndef ALLPACKAGES}
{$mode objfpc}{$H+}
program fpmake;

uses fpmkunit;

Var
  T : TTarget;
  P : TPackage;
begin
  With Installer do
    begin
{$endif ALLPACKAGES}

    P:=AddPackage('fcl-passrc');
    P.ShortName:='fcls';
{$ifdef ALLPACKAGES}
    P.Directory:=ADirectory;
{$endif ALLPACKAGES}
    P.Version:='3.3.1';
    P.Dependencies.Add('fcl-base');
    P.Author := 'Sebastian Guenther';
    P.License := 'LGPL with modification, ';
    P.HomepageURL := 'www.freepascal.org';
    P.Email := '';
    P.Description := 'Pascal parsing parts of Free Component Libraries (FCL), FPC''s OOP library.';
    P.NeedLibC:= false;
    P.OSes:=AllOSes-[embedded,msdos,win16,macos,palmos];
    if Defaults.CPU=jvm then
      P.OSes := P.OSes - [java,android];

    P.SourcePath.Add('src');

    T:=P.Targets.AddUnit('pastree.pp');
    T.ResourceStrings := True;
    T:=P.Targets.AddUnit('pscanner.pp');
    T.ResourceStrings := True;
    T:=P.Targets.AddUnit('pparser.pp');
      T.ResourceStrings:=true;
      with T.Dependencies do
        begin
          AddUnit('pastree');
          AddUnit('pscanner');
        end;
    T:=P.Targets.AddUnit('pasresolver.pp');
      with T.Dependencies do
        begin
          AddUnit('pastree');
          AddUnit('pscanner');
          AddUnit('pparser');
        end;
    T:=P.Targets.AddUnit('pastounittest.pp');
      with T.Dependencies do
        begin
          AddUnit('pparser');
          AddUnit('pastree');
          AddUnit('pscanner');
        end;
    T.ResourceStrings := True;
    T:=P.Targets.AddUnit('passrcutil.pp');
      with T.Dependencies do
        begin
          AddUnit('pparser');
          AddUnit('pastree');
          AddUnit('pscanner');
        end;
    T.ResourceStrings := False;

    T:=P.Targets.AddUnit('paswrite.pp');
      with T.Dependencies do
        begin
          AddUnit('pastree');
        end;
    T:=P.Targets.AddUnit('pasresolveeval.pas');
      with T.Dependencies do
        begin
          AddUnit('pastree');
          AddUnit('pscanner');
        end;
    T.ResourceStrings := True;
    T:=P.Targets.AddUnit('pasuseanalyzer.pas');
      with T.Dependencies do
        begin
          AddUnit('pastree');
          AddUnit('pasresolver');
        end;

{$ifndef ALLPACKAGES}
    Run;
    end;
end.
{$endif ALLPACKAGES}