fpmake.pp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. Var
  6. T : TTarget;
  7. P : TPackage;
  8. begin
  9. With Installer do
  10. begin
  11. {$endif ALLPACKAGES}
  12. P:=AddPackage('fcl-extra');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:='fcl-extra';
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.2.2-0';
  17. P.Dependencies.Add('fcl-base');
  18. P.Dependencies.Add('winunits-jedi',[Win32,Win64]);
  19. P.Dependencies.Add('winunits-base',[Win32,Win64]);
  20. P.Dependencies.Add('univint',[darwin]);
  21. P.Author := '<various>';
  22. P.License := 'LGPL with modification, ';
  23. P.Email := '';
  24. P.Description := 'Extra libraries of Free Component Libraries(FCL), FPC''s OOP library.';
  25. P.NeedLibC:= false;
  26. P.SourcePath.Add('src');
  27. P.IncludePath.Add('src/$(OS)',AllOSes-AllWindowsOSes-AllUnixOSes);
  28. P.IncludePath.Add('src/unix',AllUnixOSes);
  29. P.IncludePath.Add('src/win',AllWindowsOSes);
  30. P.IncludePath.Add('src/dummy',AllOSes);
  31. T:=P.Targets.AddUnit('daemonapp.pp',AllWindowsOSes+AllUnixOSes);
  32. with T.Dependencies do
  33. begin
  34. AddInclude('daemonapp.inc');
  35. end;
  36. T.ResourceStrings:=true;
  37. // Windows units
  38. T:=P.Targets.AddUnit('ServiceManager.pas',[Win32,Win64]);
  39. T.ResourceStrings:=true;
  40. {$ifndef ALLPACKAGES}
  41. Run;
  42. end;
  43. end.
  44. {$endif ALLPACKAGES}