make/project.xml

changeset 0
804d8803eade
child 4
d8e8f34e65ee
equal deleted inserted replaced
-1:000000000000 0:804d8803eade
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project>
3 <!--
4 <dependency name="gtk4">
5 <pkgconfig>gtk+-4.0</pkgconfig>
6 <cflags>-DUI_GTK3</cflags>
7 <ldflags>-lpthread</ldflags>
8 </dependency>
9 -->
10 <dependency name="gtk3">
11 <pkgconfig>gtk+-3.0</pkgconfig>
12 <cflags>-DUI_GTK3</cflags>
13 <ldflags>-lpthread</ldflags>
14 </dependency>
15 <dependency name="gtk2">
16 <test>pkg-config --atleast-version=2.20 gtk+-2.0</test>
17 <pkgconfig>gtk+-2.0</pkgconfig>
18 <cflags>-DUI_GTK2</cflags>
19 <ldflags>-lpthread</ldflags>
20 </dependency>
21 <dependency name="gtk2legacy">
22 <pkgconfig>gtk+-2.0</pkgconfig>
23 <cflags>-DUI_GTK2 -DUI_GTK2LEGACY</cflags>
24 <ldflags>-lpthread</ldflags>
25 </dependency>
26 <dependency name="wpf" platform="windows">
27 <cflags>-DUI_WPF</cflags>
28 </dependency>
29 <dependency name="qt4">
30 <test>which qmake-qt4</test>
31 <cflags type="exec">qmake-qt4 -o - /dev/null | grep DEFINES\ </cflags>
32 <cflags type="exec">qmake-qt4 -o - /dev/null | grep INCPATH\ </cflags>
33 <ldflags type="exec"><cflags type="exec">qmake-qt4 -o - /dev/null | grep LIBS\ </cflags></ldflags>
34 </dependency>
35 <dependency name="qt5">
36 <test>which qmake-qt5</test>
37 <cflags type="exec">qmake-qt5 -o - /dev/null | grep DEFINES\ </cflags>
38 <cflags type="exec">qmake-qt5 -o - /dev/null | grep INCPATH\ </cflags>
39 <ldflags type="exec"><cflags type="exec">qmake-qt5 -o - /dev/null | grep LIBS\ </cflags></ldflags>
40 </dependency>
41 <dependency name="cocoa" platform="macos">
42 <cflags>-DUI_COCOA</cflags>
43 <ldflags>-lobjc -framework Cocoa</ldflags>
44 </dependency>
45 <dependency name="motif">
46 <cflags>-DUI_MOTIF</cflags>
47 <ldflags>-lXm -lXt -lX11 -lpthread</ldflags>
48 </dependency>
49
50 <dependency platform="macos">
51 <make>OBJ_EXT = o</make>
52 <make>LIB_EXT = a</make>
53 <make>PACKAGE_SCRIPT = package_osx.sh</make>
54 </dependency>
55 <dependency platform="unix" not="macos">
56 <make>OBJ_EXT = o</make>
57 <make>LIB_EXT = a</make>
58 <make>PACKAGE_SCRIPT = package_unix.sh</make>
59 </dependency>
60
61 <target name="tk">
62 <option arg="toolkit">
63 <!--
64 <value str="gtk4">
65 <dependencies>gtk4</dependencies>
66 <make>TOOLKIT = gtk</make>
67 <make>GTKOBJ = draw_cairo.o</make>
68 </value>
69 -->
70 <value str="gtk3">
71 <dependencies>gtk3</dependencies>
72 <make>TOOLKIT = gtk</make>
73 <make>GTKOBJ = draw_cairo.o</make>
74 </value>
75 <value str="gtk2">
76 <dependencies>gtk2</dependencies>
77 <make>TOOLKIT = gtk</make>
78 <make>GTKOBJ = draw_cairo.o</make>
79 </value>
80 <value str="gtk2legacy">
81 <dependencies>gtk2legacy</dependencies>
82 <make>TOOLKIT = gtk</make>
83 <make>GTKOBJ = draw_gdk.o</make>
84 </value>
85 <value str="qt5">
86 <dependencies>qt5</dependencies>
87 <make>TOOLKIT = qt</make>
88 <make>LD = $(CXX)</make>
89 </value>
90 <value str="qt4">
91 <dependencies>qt4</dependencies>
92 <make>TOOLKIT = qt</make>
93 <make>LD = $(CXX)</make>
94 </value>
95 <value str="motif">
96 <dependencies>motif</dependencies>
97 <make>TOOLKIT = motif</make>
98 </value>
99 <default value="wpf" platform="windows" />
100 <default value="cocoa" platform="macos" />
101 <default value="gtk3" />
102 <default value="qt5" />
103 <default value="gtk2" />
104 <default value="qt4" />
105 <default value="motif" />
106 </option>
107 </target>
108 </project>
109

mercurial