Sun, 06 Dec 2020 14:41:37 +0100
fix some warnings
156 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <project> | |
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
3 | <!-- |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
4 | <dependency name="gtk4"> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
5 | <pkgconfig>gtk+-4.0</pkgconfig> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
6 | <cflags>-DUI_GTK3</cflags> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
7 | <ldflags>-lpthread</ldflags> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
8 | </dependency> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
9 | --> |
156 | 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 | ||
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
50 | <dependency platform="macos"> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
51 | <make>OBJ_EXT = o</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
52 | <make>LIB_EXT = a</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
53 | <make>PACKAGE_SCRIPT = package_osx.sh</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
54 | </dependency> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
55 | <dependency platform="unix" not="macos"> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
56 | <make>OBJ_EXT = o</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
57 | <make>LIB_EXT = a</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
58 | <make>PACKAGE_SCRIPT = package_unix.sh</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
59 | </dependency> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
60 | |
156 | 61 | <target name="tk"> |
62 | <option arg="toolkit"> | |
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
63 | <!-- |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
64 | <value str="gtk4"> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
65 | <dependencies>gtk4</dependencies> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
66 | <make>TOOLKIT = gtk</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
67 | <make>GTKOBJ = draw_cairo.o</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
68 | </value> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
69 | --> |
156 | 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 |