Mon, 22 May 2023 19:44:27 +0200
move some menu code to common
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 | <dependency name="gtk4"> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
4 | <pkgconfig>gtk+-4.0</pkgconfig> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
5 | <cflags>-DUI_GTK3</cflags> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
6 | <ldflags>-lpthread</ldflags> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
7 | </dependency> |
156 | 8 | <dependency name="gtk3"> |
9 | <pkgconfig>gtk+-3.0</pkgconfig> | |
10 | <cflags>-DUI_GTK3</cflags> | |
11 | <ldflags>-lpthread</ldflags> | |
12 | </dependency> | |
13 | <dependency name="gtk2"> | |
14 | <test>pkg-config --atleast-version=2.20 gtk+-2.0</test> | |
15 | <pkgconfig>gtk+-2.0</pkgconfig> | |
16 | <cflags>-DUI_GTK2</cflags> | |
17 | <ldflags>-lpthread</ldflags> | |
18 | </dependency> | |
19 | <dependency name="gtk2legacy"> | |
20 | <pkgconfig>gtk+-2.0</pkgconfig> | |
21 | <cflags>-DUI_GTK2 -DUI_GTK2LEGACY</cflags> | |
22 | <ldflags>-lpthread</ldflags> | |
23 | </dependency> | |
171
5065d0d52680
replace wpf with winui in the configure script
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
170
diff
changeset
|
24 | <dependency name="winui" platform="windows"> |
5065d0d52680
replace wpf with winui in the configure script
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
170
diff
changeset
|
25 | <cflags>-DUI_WINUI</cflags> |
156 | 26 | </dependency> |
27 | <dependency name="qt4"> | |
28 | <test>which qmake-qt4</test> | |
29 | <cflags type="exec">qmake-qt4 -o - /dev/null | grep DEFINES\ </cflags> | |
30 | <cflags type="exec">qmake-qt4 -o - /dev/null | grep INCPATH\ </cflags> | |
31 | <ldflags type="exec"><cflags type="exec">qmake-qt4 -o - /dev/null | grep LIBS\ </cflags></ldflags> | |
32 | </dependency> | |
33 | <dependency name="qt5"> | |
34 | <test>which qmake-qt5</test> | |
35 | <cflags type="exec">qmake-qt5 -o - /dev/null | grep DEFINES\ </cflags> | |
36 | <cflags type="exec">qmake-qt5 -o - /dev/null | grep INCPATH\ </cflags> | |
37 | <ldflags type="exec"><cflags type="exec">qmake-qt5 -o - /dev/null | grep LIBS\ </cflags></ldflags> | |
38 | </dependency> | |
39 | <dependency name="cocoa" platform="macos"> | |
40 | <cflags>-DUI_COCOA</cflags> | |
41 | <ldflags>-lobjc -framework Cocoa</ldflags> | |
42 | </dependency> | |
43 | <dependency name="motif"> | |
44 | <cflags>-DUI_MOTIF</cflags> | |
45 | <ldflags>-lXm -lXt -lX11 -lpthread</ldflags> | |
46 | </dependency> | |
47 | ||
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
48 | <dependency platform="macos"> |
174 | 49 | <make>OBJ_EXT = .o</make> |
50 | <make>LIB_EXT = .a</make> | |
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
51 | <make>PACKAGE_SCRIPT = package_osx.sh</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
52 | </dependency> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
53 | <dependency platform="unix" not="macos"> |
174 | 54 | <make>OBJ_EXT = .o</make> |
55 | <make>LIB_EXT = .a</make> | |
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
56 | <make>PACKAGE_SCRIPT = package_unix.sh</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
57 | </dependency> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
58 | |
156 | 59 | <target name="tk"> |
60 | <option arg="toolkit"> | |
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
61 | <value str="gtk4"> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
62 | <dependencies>gtk4</dependencies> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
63 | <make>TOOLKIT = gtk</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
64 | <make>GTKOBJ = draw_cairo.o</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
65 | </value> |
156 | 66 | <value str="gtk3"> |
67 | <dependencies>gtk3</dependencies> | |
68 | <make>TOOLKIT = gtk</make> | |
69 | <make>GTKOBJ = draw_cairo.o</make> | |
70 | </value> | |
71 | <value str="gtk2"> | |
72 | <dependencies>gtk2</dependencies> | |
73 | <make>TOOLKIT = gtk</make> | |
74 | <make>GTKOBJ = draw_cairo.o</make> | |
75 | </value> | |
76 | <value str="gtk2legacy"> | |
77 | <dependencies>gtk2legacy</dependencies> | |
78 | <make>TOOLKIT = gtk</make> | |
79 | <make>GTKOBJ = draw_gdk.o</make> | |
80 | </value> | |
81 | <value str="qt5"> | |
82 | <dependencies>qt5</dependencies> | |
83 | <make>TOOLKIT = qt</make> | |
84 | <make>LD = $(CXX)</make> | |
85 | </value> | |
86 | <value str="qt4"> | |
87 | <dependencies>qt4</dependencies> | |
88 | <make>TOOLKIT = qt</make> | |
89 | <make>LD = $(CXX)</make> | |
90 | </value> | |
91 | <value str="motif"> | |
92 | <dependencies>motif</dependencies> | |
93 | <make>TOOLKIT = motif</make> | |
94 | </value> | |
171
5065d0d52680
replace wpf with winui in the configure script
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
170
diff
changeset
|
95 | <default value="winui" platform="windows" /> |
156 | 96 | <default value="cocoa" platform="macos" /> |
97 | <default value="gtk3" /> | |
98 | <default value="qt5" /> | |
99 | <default value="gtk2" /> | |
100 | <default value="qt4" /> | |
101 | <default value="motif" /> | |
102 | </option> | |
103 | </target> | |
104 | </project> | |
105 |