make/project.xml

Sun, 06 Dec 2020 14:41:37 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 06 Dec 2020 14:41:37 +0100
changeset 164
1d912f78fd1d
parent 158
4bde241c49b1
child 170
ad9edb497857
permissions
-rw-r--r--

fix some warnings

156
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
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
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
10 <dependency name="gtk3">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
11 <pkgconfig>gtk+-3.0</pkgconfig>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
12 <cflags>-DUI_GTK3</cflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
13 <ldflags>-lpthread</ldflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
14 </dependency>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
15 <dependency name="gtk2">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
16 <test>pkg-config --atleast-version=2.20 gtk+-2.0</test>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
17 <pkgconfig>gtk+-2.0</pkgconfig>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
18 <cflags>-DUI_GTK2</cflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
19 <ldflags>-lpthread</ldflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
20 </dependency>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
21 <dependency name="gtk2legacy">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
22 <pkgconfig>gtk+-2.0</pkgconfig>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
23 <cflags>-DUI_GTK2 -DUI_GTK2LEGACY</cflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
24 <ldflags>-lpthread</ldflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
25 </dependency>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
26 <dependency name="wpf" platform="windows">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
27 <cflags>-DUI_WPF</cflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
28 </dependency>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
29 <dependency name="qt4">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
30 <test>which qmake-qt4</test>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
31 <cflags type="exec">qmake-qt4 -o - /dev/null | grep DEFINES\ </cflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
32 <cflags type="exec">qmake-qt4 -o - /dev/null | grep INCPATH\ </cflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
33 <ldflags type="exec"><cflags type="exec">qmake-qt4 -o - /dev/null | grep LIBS\ </cflags></ldflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
34 </dependency>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
35 <dependency name="qt5">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
36 <test>which qmake-qt5</test>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
37 <cflags type="exec">qmake-qt5 -o - /dev/null | grep DEFINES\ </cflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
38 <cflags type="exec">qmake-qt5 -o - /dev/null | grep INCPATH\ </cflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
39 <ldflags type="exec"><cflags type="exec">qmake-qt5 -o - /dev/null | grep LIBS\ </cflags></ldflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
40 </dependency>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
41 <dependency name="cocoa" platform="macos">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
42 <cflags>-DUI_COCOA</cflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
43 <ldflags>-lobjc -framework Cocoa</ldflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
44 </dependency>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
45 <dependency name="motif">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
46 <cflags>-DUI_MOTIF</cflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
47 <ldflags>-lXm -lXt -lX11 -lpthread</ldflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
48 </dependency>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
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
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
61 <target name="tk">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
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
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
70 <value str="gtk3">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
71 <dependencies>gtk3</dependencies>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
72 <make>TOOLKIT = gtk</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
73 <make>GTKOBJ = draw_cairo.o</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
74 </value>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
75 <value str="gtk2">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
76 <dependencies>gtk2</dependencies>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
77 <make>TOOLKIT = gtk</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
78 <make>GTKOBJ = draw_cairo.o</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
79 </value>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
80 <value str="gtk2legacy">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
81 <dependencies>gtk2legacy</dependencies>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
82 <make>TOOLKIT = gtk</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
83 <make>GTKOBJ = draw_gdk.o</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
84 </value>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
85 <value str="qt5">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
86 <dependencies>qt5</dependencies>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
87 <make>TOOLKIT = qt</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
88 <make>LD = $(CXX)</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
89 </value>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
90 <value str="qt4">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
91 <dependencies>qt4</dependencies>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
92 <make>TOOLKIT = qt</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
93 <make>LD = $(CXX)</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
94 </value>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
95 <value str="motif">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
96 <dependencies>motif</dependencies>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
97 <make>TOOLKIT = motif</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
98 </value>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
99 <default value="wpf" platform="windows" />
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
100 <default value="cocoa" platform="macos" />
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
101 <default value="gtk3" />
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
102 <default value="qt5" />
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
103 <default value="gtk2" />
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
104 <default value="qt4" />
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
105 <default value="motif" />
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
106 </option>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
107 </target>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
108 </project>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
109

mercurial