fpmake.pp 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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-res');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:='fcl-res';
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.2.2-0';
  17. P.Author := 'Giulio Bernardi';
  18. P.License := 'LGPL with modification, ';
  19. P.HomepageURL := 'www.freepascal.org';
  20. P.Email := '';
  21. P.Description := 'Resource handling of Free Component Libraries (FCL), FPC''s OOP library.';
  22. P.NeedLibC:= false;
  23. P.SourcePath.Add('src');
  24. P.IncludePath.Add('src');
  25. T:=P.Targets.AddUnit('acceleratorsresource.pp');
  26. with T.Dependencies do
  27. begin
  28. AddUnit('resource');
  29. AddUnit('resfactory');
  30. end;
  31. T:=P.Targets.AddUnit('bitmapresource.pp');
  32. with T.Dependencies do
  33. begin
  34. AddUnit('resource');
  35. AddUnit('resfactory');
  36. AddUnit('resdatastream');
  37. end;
  38. T:=P.Targets.AddUnit('coffconsts.pp');
  39. T:=P.Targets.AddUnit('cofftypes.pp');
  40. T:=P.Targets.AddUnit('coffreader.pp');
  41. with T.Dependencies do
  42. begin
  43. AddUnit('resource');
  44. AddUnit('resourcetree');
  45. AddUnit('cofftypes');
  46. AddUnit('coffconsts');
  47. AddUnit('resdatastream');
  48. end;
  49. T:=P.Targets.AddUnit('coffwriter.pp');
  50. with T.Dependencies do
  51. begin
  52. AddUnit('resource');
  53. AddUnit('resourcetree');
  54. AddUnit('cofftypes');
  55. AddUnit('coffconsts');
  56. end;
  57. T:=P.Targets.AddUnit('dfmreader.pp');
  58. with T.Dependencies do
  59. begin
  60. AddUnit('resource');
  61. AddUnit('resdatastream');
  62. AddUnit('resfactory');
  63. end;
  64. T:=P.Targets.AddUnit('elfconsts.pp');
  65. T:=P.Targets.AddUnit('elftypes.pp');
  66. T:=P.Targets.AddUnit('elfreader.pp');
  67. with T.Dependencies do
  68. begin
  69. AddUnit('resource');
  70. AddUnit('elfconsts');
  71. AddUnit('elftypes');
  72. AddUnit('resdatastream');
  73. AddUnit('resfactory');
  74. AddUnit('resourcetree');
  75. AddUnit('strtable');
  76. AddUnit('fpcrestypes');
  77. AddInclude('elfsubreader.inc');
  78. AddInclude('elfdefaulttarget.inc');
  79. end;
  80. T:=P.Targets.AddUnit('elfwriter.pp');
  81. with T.Dependencies do
  82. begin
  83. AddUnit('resource');
  84. AddUnit('elfconsts');
  85. AddUnit('elftypes');
  86. AddUnit('resourcetree');
  87. AddUnit('strtable');
  88. AddUnit('fpcrestypes');
  89. AddInclude('elfsubwriter.inc');
  90. AddInclude('elfdefaulttarget.inc');
  91. end;
  92. T:=P.Targets.AddUnit('externaltypes.pp');
  93. T:=P.Targets.AddUnit('externalreader.pp');
  94. with T.Dependencies do
  95. begin
  96. AddUnit('resource');
  97. AddUnit('resourcetree');
  98. AddUnit('externaltypes');
  99. AddUnit('resdatastream');
  100. AddUnit('resfactory');
  101. end;
  102. T:=P.Targets.AddUnit('externalwriter.pp');
  103. with T.Dependencies do
  104. begin
  105. AddUnit('resource');
  106. AddUnit('resourcetree');
  107. AddUnit('externaltypes');
  108. AddUnit('strtable');
  109. end;
  110. T:=P.Targets.AddUnit('fpcrestypes.pp');
  111. T:=P.Targets.AddUnit('groupcursorresource.pp');
  112. with T.Dependencies do
  113. begin
  114. AddUnit('resource');
  115. AddUnit('groupresource');
  116. AddUnit('resfactory');
  117. AddUnit('resdatastream');
  118. AddUnit('icocurtypes');
  119. end;
  120. T:=P.Targets.AddUnit('groupiconresource.pp');
  121. with T.Dependencies do
  122. begin
  123. AddUnit('resource');
  124. AddUnit('groupresource');
  125. AddUnit('resfactory');
  126. AddUnit('resdatastream');
  127. AddUnit('icocurtypes');
  128. end;
  129. T:=P.Targets.AddUnit('groupresource.pp');
  130. with T.Dependencies do
  131. begin
  132. AddUnit('resource');
  133. AddUnit('resdatastream');
  134. AddUnit('icocurtypes');
  135. end;
  136. T:=P.Targets.AddUnit('icocurtypes.pp');
  137. T:=P.Targets.AddUnit('machotypes.pp');
  138. T:=P.Targets.AddUnit('machoconsts.pp');
  139. with T.Dependencies do
  140. begin
  141. AddUnit('machotypes');
  142. end;
  143. T:=P.Targets.AddUnit('machoreader.pp');
  144. with T.Dependencies do
  145. begin
  146. AddUnit('resource');
  147. AddUnit('machotypes');
  148. AddUnit('machoconsts');
  149. AddUnit('resfactory');
  150. AddUnit('resourcetree');
  151. AddUnit('resdatastream');
  152. AddUnit('fpcrestypes');
  153. AddInclude('machosubreader.inc');
  154. AddInclude('machodefaulttarget.inc');
  155. end;
  156. T:=P.Targets.AddUnit('machowriter.pp');
  157. with T.Dependencies do
  158. begin
  159. AddUnit('resource');
  160. AddUnit('machotypes');
  161. AddUnit('resourcetree');
  162. AddUnit('machoconsts');
  163. AddUnit('strtable');
  164. AddUnit('fpcrestypes');
  165. AddInclude('machosubwriter.inc');
  166. AddInclude('machodefaulttarget.inc');
  167. end;
  168. T:=P.Targets.AddUnit('resdatastream.pp');
  169. with T.Dependencies do
  170. begin
  171. AddUnit('resource');
  172. end;
  173. T:=P.Targets.AddUnit('resfactory.pp');
  174. with T.Dependencies do
  175. begin
  176. AddUnit('resource');
  177. end;
  178. T:=P.Targets.AddUnit('resmerger.pp');
  179. with T.Dependencies do
  180. begin
  181. AddUnit('resource');
  182. AddUnit('stringtableresource');
  183. AddUnit('groupiconresource');
  184. AddUnit('groupcursorresource');
  185. end;
  186. T:=P.Targets.AddUnit('resource.pp');
  187. with T.Dependencies do
  188. begin
  189. AddUnit('resdatastream');
  190. AddUnit('resourcetree');
  191. AddUnit('resmerger');
  192. end;
  193. T:=P.Targets.AddUnit('resourcetree.pp');
  194. with T.Dependencies do
  195. begin
  196. AddUnit('resource');
  197. AddUnit('resfactory');
  198. end;
  199. T:=P.Targets.AddUnit('resreader.pp');
  200. with T.Dependencies do
  201. begin
  202. AddUnit('resource');
  203. AddUnit('resdatastream');
  204. AddUnit('resfactory');
  205. end;
  206. T:=P.Targets.AddUnit('reswriter.pp');
  207. with T.Dependencies do
  208. begin
  209. AddUnit('resource');
  210. end;
  211. T:=P.Targets.AddUnit('stringtableresource.pp');
  212. with T.Dependencies do
  213. begin
  214. AddUnit('resource');
  215. AddUnit('resfactory');
  216. end;
  217. T:=P.Targets.AddUnit('strtable.pp');
  218. with T.Dependencies do
  219. begin
  220. AddUnit('resource');
  221. end;
  222. T:=P.Targets.AddUnit('versionconsts.pp');
  223. T:=P.Targets.AddUnit('versionresource.pp');
  224. with T.Dependencies do
  225. begin
  226. AddUnit('resource');
  227. AddUnit('versiontypes');
  228. AddUnit('resfactory');
  229. end;
  230. T:=P.Targets.AddUnit('versiontypes.pp');
  231. with T.Dependencies do
  232. begin
  233. AddUnit('resource');
  234. AddUnit('versionconsts');
  235. end;
  236. T:=P.Targets.AddUnit('winpeimagereader.pp');
  237. with T.Dependencies do
  238. begin
  239. AddUnit('resource');
  240. AddUnit('coffreader');
  241. end;
  242. {$ifndef ALLPACKAGES}
  243. Run;
  244. end;
  245. end.
  246. {$endif ALLPACKAGES}