fpmake.pp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses {$ifdef unix}cthreads,{$endif} 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.Dependencies.Add('fcl-res');
  20. P.OSes:=[Win32,Win64]+AllUnixOSes;
  21. if Defaults.CPU=jvm then
  22. P.OSes := P.OSes - [java,android];
  23. P.Dependencies.Add('winunits-jedi',[Win32,Win64]);
  24. P.Dependencies.Add('winunits-base',[Win32,Win64]);
  25. P.Dependencies.Add('univint',[darwin,iPhoneSim,ios]);
  26. P.Author := '<various>';
  27. P.License := 'LGPL with modification, ';
  28. P.Email := '';
  29. P.Description := 'Extra libraries of Free Component Libraries(FCL), FPC''s OOP library.';
  30. P.NeedLibC:= false;
  31. P.SourcePath.Add('src');
  32. P.SourcePath.Add('src/win',AllWindowsOSes);
  33. P.IncludePath.Add('src/$(OS)',AllOSes-AllWindowsOSes-AllUnixOSes);
  34. P.IncludePath.Add('src/unix',AllUnixOSes);
  35. P.IncludePath.Add('src/win',AllWindowsOSes);
  36. P.IncludePath.Add('src/dummy',AllOSes);
  37. T:=P.Targets.AddUnit('daemonapp.pp',AllWindowsOSes+AllUnixOSes);
  38. with T.Dependencies do
  39. begin
  40. AddInclude('daemonapp.inc');
  41. end;
  42. T.ResourceStrings:=true;
  43. T:=P.Targets.AddUnit('fileinfo.pp');
  44. T.ResourceStrings:=true;
  45. // Windows units
  46. T:=P.Targets.AddUnit('ServiceManager.pas',[Win32,Win64]);
  47. T.ResourceStrings:=true;
  48. // Examples
  49. P.ExamplePath.Add('examples');
  50. T:=P.Targets.AddExampleProgram('showver.pp');
  51. // example data files.
  52. // showver.rc
  53. // showver.res
  54. P.NamespaceMap:='namespaces.lst';
  55. {$ifndef ALLPACKAGES}
  56. Run;
  57. end;
  58. end.
  59. {$endif ALLPACKAGES}