|
@@ -2,7 +2,7 @@
|
|
{$mode objfpc}{$H+}
|
|
{$mode objfpc}{$H+}
|
|
program fpmake;
|
|
program fpmake;
|
|
|
|
|
|
-uses fpmkunit, sysutils;
|
|
|
|
|
|
+uses {$ifdef unix}cthreads,{$endif} fpmkunit, sysutils;
|
|
{$endif ALLPACKAGES}
|
|
{$endif ALLPACKAGES}
|
|
|
|
|
|
procedure add_fppkg(const ADirectory: string);
|
|
procedure add_fppkg(const ADirectory: string);
|
|
@@ -17,7 +17,7 @@ Var
|
|
Data2Inc : string;
|
|
Data2Inc : string;
|
|
begin
|
|
begin
|
|
AddCustomFpmakeCommandlineOption('data2inc', 'Use indicated data2inc executable.');
|
|
AddCustomFpmakeCommandlineOption('data2inc', 'Use indicated data2inc executable.');
|
|
- AddCustomFpmakeCommandlineOption('genfpmkunit', 'Regenerate the fpmkunitsrc.inc file (fppkg).');
|
|
|
|
|
|
+ AddCustomFpmakeCommandlineOption('gen{$ifdef unix}cthreads,{$endif} fpmkunit', 'Regenerate the fpmkunitsrc.inc file (fppkg).');
|
|
|
|
|
|
With Installer do
|
|
With Installer do
|
|
begin
|
|
begin
|
|
@@ -31,7 +31,7 @@ begin
|
|
P.Dependencies.Add('fcl-xml');
|
|
P.Dependencies.Add('fcl-xml');
|
|
P.Dependencies.Add('fcl-process',AllOSes-[go32v2,os2]);
|
|
P.Dependencies.Add('fcl-process',AllOSes-[go32v2,os2]);
|
|
P.Dependencies.Add('paszlib');
|
|
P.Dependencies.Add('paszlib');
|
|
- P.Dependencies.Add('fpmkunit');
|
|
|
|
|
|
+ P.Dependencies.Add('{$ifdef unix}cthreads,{$endif} fpmkunit');
|
|
|
|
|
|
P.Dependencies.Add('univint',[MacOSX,iphonesim,ios]);
|
|
P.Dependencies.Add('univint',[MacOSX,iphonesim,ios]);
|
|
P.Dependencies.Add('fcl-net', TargetsWithfpWeb);
|
|
P.Dependencies.Add('fcl-net', TargetsWithfpWeb);
|
|
@@ -70,7 +70,7 @@ begin
|
|
T:=P.Targets.AddUnit('pkgmkconv.pp');
|
|
T:=P.Targets.AddUnit('pkgmkconv.pp');
|
|
T:=P.Targets.AddUnit('pkgdownload.pp');
|
|
T:=P.Targets.AddUnit('pkgdownload.pp');
|
|
T:=P.Targets.AddUnit('pkgfpmake.pp');
|
|
T:=P.Targets.AddUnit('pkgfpmake.pp');
|
|
- T.Dependencies.AddInclude('fpmkunitsrc.inc');
|
|
|
|
|
|
+ T.Dependencies.AddInclude('{$ifdef unix}cthreads,{$endif} fpmkunitsrc.inc');
|
|
T:=P.Targets.AddUnit('pkgcommands.pp');
|
|
T:=P.Targets.AddUnit('pkgcommands.pp');
|
|
T:=P.Targets.AddUnit('pkgpackagesstructure.pp');
|
|
T:=P.Targets.AddUnit('pkgpackagesstructure.pp');
|
|
T:=P.Targets.AddUnit('pkguninstalledsrcsrepo.pp');
|
|
T:=P.Targets.AddUnit('pkguninstalledsrcsrepo.pp');
|
|
@@ -78,9 +78,9 @@ begin
|
|
T:=P.Targets.AddUnit('pkgwget.pp', TargetsWithWGet);
|
|
T:=P.Targets.AddUnit('pkgwget.pp', TargetsWithWGet);
|
|
T:=P.Targets.AddUnit('pkgfphttp.pp', TargetsWithfpWeb);
|
|
T:=P.Targets.AddUnit('pkgfphttp.pp', TargetsWithfpWeb);
|
|
|
|
|
|
- // Do not re-generate fpmkunitsrc.inc by default so it is possible to control
|
|
|
|
- // when we want to update the internal fpmkunitsrc
|
|
|
|
- if GetCustomFpmakeCommandlineOptionValue('genfpmkunit') <> '' then
|
|
|
|
|
|
+ // Do not re-generate {$ifdef unix}cthreads,{$endif} fpmkunitsrc.inc by default so it is possible to control
|
|
|
|
+ // when we want to update the internal {$ifdef unix}cthreads,{$endif} fpmkunitsrc
|
|
|
|
+ if GetCustomFpmakeCommandlineOptionValue('gen{$ifdef unix}cthreads,{$endif} fpmkunit') <> '' then
|
|
begin
|
|
begin
|
|
Data2Inc := GetCustomFpmakeCommandlineOptionValue('data2inc');
|
|
Data2Inc := GetCustomFpmakeCommandlineOptionValue('data2inc');
|
|
if Data2Inc<>'' then
|
|
if Data2Inc<>'' then
|
|
@@ -90,7 +90,7 @@ begin
|
|
data2inc := ExeSearch(AddProgramExtension('data2inc', Defaults.BuildOS));
|
|
data2inc := ExeSearch(AddProgramExtension('data2inc', Defaults.BuildOS));
|
|
end;
|
|
end;
|
|
if Data2Inc <> '' then
|
|
if Data2Inc <> '' then
|
|
- P.Commands.AddCommand(Data2Inc,'-b -s $(SOURCE) $(DEST) fpmkunitsrc','src/fpmkunitsrc.inc','../fpmkunit/src/fpmkunit.pp');
|
|
|
|
|
|
+ P.Commands.AddCommand(Data2Inc,'-b -s $(SOURCE) $(DEST) {$ifdef unix}cthreads,{$endif} fpmkunitsrc','src/fpmkunitsrc.inc','../fpmkunit/src/fpmkunit.pp');
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|