fpmake.pp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. P.ShortName := 'fcex';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.3.1';
  18. P.Dependencies.Add('fcl-base');
  19. P.OSes:=[Win32,Win64]+AllUnixOSes;
  20. if Defaults.CPU=jvm then
  21. P.OSes := P.OSes - [java,android];
  22. P.Dependencies.Add('winunits-jedi',[Win32,Win64]);
  23. P.Dependencies.Add('winunits-base',[Win32,Win64]);
  24. P.Dependencies.Add('univint',[darwin,iPhoneSim]);
  25. P.Author := '<various>';
  26. P.License := 'LGPL with modification, ';
  27. P.Email := '';
  28. P.Description := 'Extra libraries of Free Component Libraries(FCL), FPC''s OOP library.';
  29. P.NeedLibC:= false;
  30. P.SourcePath.Add('src');
  31. P.SourcePath.Add('src/win',AllWindowsOSes);
  32. P.IncludePath.Add('src/$(OS)',AllOSes-AllWindowsOSes-AllUnixOSes);
  33. P.IncludePath.Add('src/unix',AllUnixOSes);
  34. P.IncludePath.Add('src/win',AllWindowsOSes);
  35. P.IncludePath.Add('src/dummy',AllOSes);
  36. T:=P.Targets.AddUnit('daemonapp.pp',AllWindowsOSes+AllUnixOSes);
  37. with T.Dependencies do
  38. begin
  39. AddInclude('daemonapp.inc');
  40. end;
  41. T.ResourceStrings:=true;
  42. // Windows units
  43. T:=P.Targets.AddUnit('ServiceManager.pas',[Win32,Win64]);
  44. T.ResourceStrings:=true;
  45. {$ifndef ALLPACKAGES}
  46. Run;
  47. end;
  48. end.
  49. {$endif ALLPACKAGES}