fpmake.pp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses {$ifdef unix}cthreads,{$endif} fpmkunit;
  5. Var
  6. P : TPackage;
  7. begin
  8. With Installer do
  9. begin
  10. {$endif ALLPACKAGES}
  11. P:=AddPackage('objcrtl');
  12. P.ShortName := 'objc';
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:=ADirectory;
  15. {$endif ALLPACKAGES}
  16. P.Version:='3.3.1';
  17. P.OSes:=[darwin,iphonesim,ios];
  18. P.Author := 'Library: Apple, header: Dmitry "skalogryz" Boyarintsev';
  19. P.License := 'Library: Apple, header: LGPL with modification, ';
  20. P.HomepageURL := 'www.freepascal.org';
  21. P.Email := '';
  22. P.Description := 'Objective-C Runtime-Library.';
  23. P.NeedLibC:= false; // true for headers that indirectly link to libc?
  24. P.SourcePath.Add('src');
  25. P.Targets.AddUnit('objcrtl.pas');
  26. P.Targets.AddUnit('objcrtl10.pas');
  27. P.Targets.AddUnit('objcrtl20.pas');
  28. P.Targets.AddUnit('objcrtliphoneos.pas');
  29. P.Targets.AddUnit('objcrtlmacosx.pas');
  30. P.Targets.AddUnit('objcrtlutils.pas');
  31. P.ExamplePath.Add('examples');
  32. P.Targets.AddExampleProgram('examples/objcrtltest.pas');
  33. P.NamespaceMap:='namespaces.lst';
  34. {$ifndef ALLPACKAGES}
  35. Run;
  36. end;
  37. end.
  38. {$endif ALLPACKAGES}