PageRenderTime 32ms CodeModel.GetById 1ms app.highlight 24ms RepoModel.GetById 0ms app.codeStats 1ms

/packages/gtk1/fpmake.pp

https://github.com/slibre/freepascal
Puppet | 335 lines | 329 code | 6 blank | 0 comment | 2 complexity | 083e78cd4594bcab03a90cd0e1505847 MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, LGPL-3.0
  1{$ifndef ALLPACKAGES}
  2{$mode objfpc}{$H+}
  3program fpmake;
  4
  5uses fpmkunit;
  6
  7Var
  8  P : TPackage;
  9  T : TTarget;
 10begin
 11  With Installer do
 12    begin
 13{$endif ALLPACKAGES}
 14
 15    P:=AddPackage('gtk1');
 16{$ifdef ALLPACKAGES}
 17    P.Directory:='gtk1';
 18{$endif ALLPACKAGES}
 19    P.Version:='2.7.1';
 20    P.Author := 'Library: Peter Mattis, Spencer Kimball and Josh MacDonald, header: Peter Vreman';
 21    P.License := 'Library: LGPL2.1, header: LGPL with modification, ';
 22    P.HomepageURL := 'www.freepascal.org';
 23    P.Email := '';
 24    P.Description := 'Header to the GTK widgetset (v1).';
 25    P.NeedLibC:= true;  // true for headers that indirectly link to libc?
 26
 27    P.OSes:=AllUnixOSes+[Win32,Win64,OS2,EMX]-[darwin,iphonesim];
 28    if Defaults.CPU<>arm then
 29      P.OSes := P.OSes + [darwin];
 30
 31    P.Dependencies.Add('opengl',AllUnixOSes+[Win32,Win64]);
 32
 33    T:=P.Targets.AddUnit('src/gdk/gdkpixbuf.pp');
 34      with T.Dependencies do
 35        begin
 36          AddUnit('glib');
 37          AddUnit('gdk');
 38          AddUnit('gtk');
 39        end;
 40    T:=P.Targets.AddUnit('src/gdk/gdk.pp');
 41      T.IncludePath.Add('src/gdk');
 42      with T.Dependencies do
 43        begin
 44          AddInclude('gdktypes.pp');
 45          AddInclude('gdkkeysyms.pp');
 46          AddInclude('gdkprivate.pp');
 47          AddInclude('gdkrgb.pp');
 48          AddInclude('gdkx.pp');
 49          AddInclude('gdkmain.pp');
 50          AddInclude('gdktypes.pp');
 51          AddInclude('gdkkeysyms.pp');
 52          AddInclude('gdkprivate.pp');
 53          AddInclude('gdkrgb.pp');
 54          AddInclude('gdkx.pp');
 55          AddInclude('gdkmain.pp');
 56          AddUnit('glib');
 57        end;
 58    T:=P.Targets.AddUnit('src/glib/glib.pp');
 59      T.IncludePath.Add('src/glib');
 60    T:=P.Targets.AddUnit('src/glib/gmodule.pp');
 61      with T.Dependencies do
 62        begin
 63          AddUnit('glib');
 64        end;
 65    T:=P.Targets.AddUnit('src/gtkgl/gtkglarea.pp');
 66      T.IncludePath.Add('src/gtkgl');
 67      with T.Dependencies do
 68        begin
 69          AddUnit('gdk');
 70          AddUnit('gtk');
 71        end;
 72    T:=P.Targets.AddUnit('src/gtk/gtk.pp');
 73      T.IncludePath.Add('src/gtk');
 74      with T.Dependencies do
 75        begin
 76          AddInclude('gtkincludes.pp');
 77          AddInclude('gtkfeatures.pp');
 78          AddInclude('gtkenums.pp');
 79          AddInclude('gtkobjects.pp');
 80          AddInclude('gtktypeutils.pp');
 81          AddInclude('gtkdata.pp');
 82          AddInclude('gtkadjustment.pp');
 83          AddInclude('gtkaccelgroup.pp');
 84          AddInclude('gtkwidget.pp');
 85          AddInclude('gtkstyle.pp');
 86          AddInclude('gtkmisc.pp');
 87          AddInclude('gtklabel.pp');
 88          AddInclude('gtkprivate.pp');
 89          AddInclude('gtkaccellabel.pp');
 90          AddInclude('gtkthemes.pp');
 91          AddInclude('gtkmain.pp');
 92          AddInclude('gtkdrawingarea.pp');
 93          AddInclude('gtkcontainer.pp');
 94          AddInclude('gtkbin.pp');
 95          AddInclude('gtksignal.pp');
 96          AddInclude('gtkitem.pp');
 97          AddInclude('gtkarg.pp');
 98          AddInclude('gtkmarshal.pp');
 99          AddInclude('gtkbindings.pp');
100          AddInclude('gtkinvisible.pp');
101          AddInclude('gtkalignment.pp');
102          AddInclude('gtkwindow.pp');
103          AddInclude('gtkplug.pp');
104          AddInclude('gtksocket.pp');
105          AddInclude('gtkpacker.pp');
106          AddInclude('gtklayout.pp');
107          AddInclude('gtkframe.pp');
108          AddInclude('gtkaspectframe.pp');
109          AddInclude('gtkviewport.pp');
110          AddInclude('gtkrange.pp');
111          AddInclude('gtkrc.pp');
112          AddInclude('gtkeditable.pp');
113          AddInclude('gtktext.pp');
114          AddInclude('gtkarrow.pp');
115          AddInclude('gtkpixmap.pp');
116          AddInclude('gtkbutton.pp');
117          AddInclude('gtktogglebutton.pp');
118          AddInclude('gtkcheckbutton.pp');
119          AddInclude('gtkmenuitem.pp');
120          AddInclude('gtkcheckmenuitem.pp');
121          AddInclude('gtktearoffmenuitem.pp');
122          AddInclude('gtkcurve.pp');
123          AddInclude('gtkdialog.pp');
124          AddInclude('gtkentry.pp');
125          AddInclude('gtkeventbox.pp');
126          AddInclude('gtkfilesel.pp');
127          AddInclude('gtkfixed.pp');
128          AddInclude('gtkgc.pp');
129          AddInclude('gtkhandlebox.pp');
130          AddInclude('gtkimage.pp');
131          AddInclude('gtkinputdialog.pp');
132          AddInclude('gtklist.pp');
133          AddInclude('gtklistitem.pp');
134          AddInclude('gtkmenushell.pp');
135          AddInclude('gtkmenufactory.pp');
136          AddInclude('gtkmenu.pp');
137          AddInclude('gtkmenubar.pp');
138          AddInclude('gtkoptionmenu.pp');
139          AddInclude('gtkpreview.pp');
140          AddInclude('gtkitemfactory.pp');
141          AddInclude('gtkprogress.pp');
142          AddInclude('gtkprogressbar.pp');
143          AddInclude('gtkradiobutton.pp');
144          AddInclude('gtkradiomenuitem.pp');
145          AddInclude('gtkscrolledwindow.pp');
146          AddInclude('gtkselection.pp');
147          AddInclude('gtkdnd.pp');
148          AddInclude('gtkspinbutton.pp');
149          AddInclude('gtktable.pp');
150          AddInclude('gtktipsquery.pp');
151          AddInclude('gtktooltips.pp');
152          AddInclude('gtktoolbar.pp');
153          AddInclude('gtktreeitem.pp');
154          AddInclude('gtktree.pp');
155          AddInclude('gtkbox.pp');
156          AddInclude('gtkhbox.pp');
157          AddInclude('gtkvbox.pp');
158          AddInclude('gtkbbox.pp');
159          AddInclude('gtkhbbox.pp');
160          AddInclude('gtkvbbox.pp');
161          AddInclude('gtkpaned.pp');
162          AddInclude('gtkhpaned.pp');
163          AddInclude('gtkvpaned.pp');
164          AddInclude('gtkruler.pp');
165          AddInclude('gtkhruler.pp');
166          AddInclude('gtkvruler.pp');
167          AddInclude('gtkscale.pp');
168          AddInclude('gtkhscale.pp');
169          AddInclude('gtkvscale.pp');
170          AddInclude('gtkscrollbar.pp');
171          AddInclude('gtkhscrollbar.pp');
172          AddInclude('gtkvscrollbar.pp');
173          AddInclude('gtkseparator.pp');
174          AddInclude('gtkhseparator.pp');
175          AddInclude('gtkvseparator.pp');
176          AddInclude('gtkcombo.pp');
177          AddInclude('gtkstatusbar.pp');
178          AddInclude('gtkcolorsel.pp');
179          AddInclude('gtkgamma.pp');
180          AddInclude('gtkclist.pp');
181          AddInclude('gtknotebook.pp');
182          AddInclude('gtkctree.pp');
183          AddInclude('gtkcalendar.pp');
184          AddInclude('gtkfontsel.pp');
185          AddInclude('gtkincludes.pp');
186          AddInclude('gtkfeatures.pp');
187          AddInclude('gtkenums.pp');
188          AddInclude('gtkobjects.pp');
189          AddInclude('gtktypeutils.pp');
190          AddInclude('gtkdata.pp');
191          AddInclude('gtkadjustment.pp');
192          AddInclude('gtkaccelgroup.pp');
193          AddInclude('gtkwidget.pp');
194          AddInclude('gtkstyle.pp');
195          AddInclude('gtkmisc.pp');
196          AddInclude('gtklabel.pp');
197          AddInclude('gtkprivate.pp');
198          AddInclude('gtkaccellabel.pp');
199          AddInclude('gtkthemes.pp');
200          AddInclude('gtkmain.pp');
201          AddInclude('gtkdrawingarea.pp');
202          AddInclude('gtkcontainer.pp');
203          AddInclude('gtkbin.pp');
204          AddInclude('gtksignal.pp');
205          AddInclude('gtkitem.pp');
206          AddInclude('gtkarg.pp');
207          AddInclude('gtkmarshal.pp');
208          AddInclude('gtkbindings.pp');
209          AddInclude('gtkinvisible.pp');
210          AddInclude('gtkalignment.pp');
211          AddInclude('gtkwindow.pp');
212          AddInclude('gtkplug.pp');
213          AddInclude('gtksocket.pp');
214          AddInclude('gtkpacker.pp');
215          AddInclude('gtklayout.pp');
216          AddInclude('gtkframe.pp');
217          AddInclude('gtkaspectframe.pp');
218          AddInclude('gtkviewport.pp');
219          AddInclude('gtkrange.pp');
220          AddInclude('gtkrc.pp');
221          AddInclude('gtkeditable.pp');
222          AddInclude('gtktext.pp');
223          AddInclude('gtkarrow.pp');
224          AddInclude('gtkpixmap.pp');
225          AddInclude('gtkbutton.pp');
226          AddInclude('gtktogglebutton.pp');
227          AddInclude('gtkcheckbutton.pp');
228          AddInclude('gtkmenuitem.pp');
229          AddInclude('gtkcheckmenuitem.pp');
230          AddInclude('gtktearoffmenuitem.pp');
231          AddInclude('gtkcurve.pp');
232          AddInclude('gtkdialog.pp');
233          AddInclude('gtkentry.pp');
234          AddInclude('gtkeventbox.pp');
235          AddInclude('gtkfilesel.pp');
236          AddInclude('gtkfixed.pp');
237          AddInclude('gtkgc.pp');
238          AddInclude('gtkhandlebox.pp');
239          AddInclude('gtkimage.pp');
240          AddInclude('gtkinputdialog.pp');
241          AddInclude('gtklist.pp');
242          AddInclude('gtklistitem.pp');
243          AddInclude('gtkmenushell.pp');
244          AddInclude('gtkmenufactory.pp');
245          AddInclude('gtkmenu.pp');
246          AddInclude('gtkmenubar.pp');
247          AddInclude('gtkoptionmenu.pp');
248          AddInclude('gtkpreview.pp');
249          AddInclude('gtkitemfactory.pp');
250          AddInclude('gtkprogress.pp');
251          AddInclude('gtkprogressbar.pp');
252          AddInclude('gtkradiobutton.pp');
253          AddInclude('gtkradiomenuitem.pp');
254          AddInclude('gtkscrolledwindow.pp');
255          AddInclude('gtkselection.pp');
256          AddInclude('gtkdnd.pp');
257          AddInclude('gtkspinbutton.pp');
258          AddInclude('gtktable.pp');
259          AddInclude('gtktipsquery.pp');
260          AddInclude('gtktooltips.pp');
261          AddInclude('gtktoolbar.pp');
262          AddInclude('gtktreeitem.pp');
263          AddInclude('gtktree.pp');
264          AddInclude('gtkbox.pp');
265          AddInclude('gtkhbox.pp');
266          AddInclude('gtkvbox.pp');
267          AddInclude('gtkbbox.pp');
268          AddInclude('gtkhbbox.pp');
269          AddInclude('gtkvbbox.pp');
270          AddInclude('gtkpaned.pp');
271          AddInclude('gtkhpaned.pp');
272          AddInclude('gtkvpaned.pp');
273          AddInclude('gtkruler.pp');
274          AddInclude('gtkhruler.pp');
275          AddInclude('gtkvruler.pp');
276          AddInclude('gtkscale.pp');
277          AddInclude('gtkhscale.pp');
278          AddInclude('gtkvscale.pp');
279          AddInclude('gtkscrollbar.pp');
280          AddInclude('gtkhscrollbar.pp');
281          AddInclude('gtkvscrollbar.pp');
282          AddInclude('gtkseparator.pp');
283          AddInclude('gtkhseparator.pp');
284          AddInclude('gtkvseparator.pp');
285          AddInclude('gtkcombo.pp');
286          AddInclude('gtkstatusbar.pp');
287          AddInclude('gtkcolorsel.pp');
288          AddInclude('gtkgamma.pp');
289          AddInclude('gtkclist.pp');
290          AddInclude('gtknotebook.pp');
291          AddInclude('gtkctree.pp');
292          AddInclude('gtkcalendar.pp');
293          AddInclude('gtkfontsel.pp');
294          AddUnit('glib');
295          AddUnit('gdk');
296        end;
297    P.ExamplePath.Add('examples');
298    P.Targets.AddExampleProgram('entry.pp');
299    P.Targets.AddExampleProgram('filesel.pp');
300    P.Targets.AddExampleProgram('spinbutton.pp');
301    P.Targets.AddExampleProgram('gtkgldemo.pp');
302    P.Targets.AddExampleProgram('editform.pp');
303    P.Targets.AddExampleProgram('pixmap.pp');
304    P.Targets.AddExampleProgram('scribble.pp');
305    P.Targets.AddExampleProgram('tictactoe.pp');
306    P.Targets.AddExampleProgram('paned.pp');
307    P.Targets.AddExampleProgram('notebook.pp');
308    P.Targets.AddExampleProgram('statusbar.pp');
309    P.Targets.AddExampleProgram('ttt_test.pp');
310    P.Targets.AddExampleProgram('list.pp');
311    P.Targets.AddExampleProgram('clist.pp');
312    P.Targets.AddExampleProgram('toolbar.pp');
313    P.Targets.AddExampleProgram('progressbar.pp');
314    P.Targets.AddExampleProgram('rulers.pp');
315    // 'examples/Makefile
316    // 'examples/Makefile.fpc
317    P.ExamplePath.Add('examples/tutorial');
318    P.Targets.AddExampleProgram('tut6_3.pp');
319    P.Targets.AddExampleProgram('tut6_4.pp');
320    P.Targets.AddExampleProgram('tut4_3.pp');
321    P.Targets.AddExampleProgram('tut6_2.pp');
322    P.Targets.AddExampleProgram('tut6_1.pp');
323    P.Targets.AddExampleProgram('tut2_1.pp');
324    P.Targets.AddExampleProgram('tut4_5.pp');
325    P.Targets.AddExampleProgram('tut8_5.pp');
326    P.Targets.AddExampleProgram('tut3_3.pp');
327    // 'examples/tutorial/Makefile
328    // 'examples/tutorial/Makefile.fpc
329    // 'examples/tutorial/info.xpm
330
331{$ifndef ALLPACKAGES}
332    Run;
333    end;
334end.
335{$endif ALLPACKAGES}