Sun, 01 Oct 2023 22:34:48 +0200
add frame container (WinUI3)
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> | |
176
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
43 | |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
44 | <dependency name="motif" platform="bsd"> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
45 | <cflags>-DUI_MOTIF -I/usr/local/include/X11</cflags> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
46 | <ldflags>-lXm -lXt -lX11 -lpthread</ldflags> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
47 | </dependency> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
48 | |
156 | 49 | <dependency name="motif"> |
50 | <cflags>-DUI_MOTIF</cflags> | |
51 | <ldflags>-lXm -lXt -lX11 -lpthread</ldflags> | |
52 | </dependency> | |
53 | ||
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
54 | <dependency platform="macos"> |
174 | 55 | <make>OBJ_EXT = .o</make> |
56 | <make>LIB_EXT = .a</make> | |
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
57 | <make>PACKAGE_SCRIPT = package_osx.sh</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
58 | </dependency> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
59 | <dependency platform="unix" not="macos"> |
174 | 60 | <make>OBJ_EXT = .o</make> |
61 | <make>LIB_EXT = .a</make> | |
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
62 | <make>PACKAGE_SCRIPT = package_unix.sh</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
63 | </dependency> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
64 | |
176
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
65 | <dependency platform="bsd"> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
66 | <cflags>-I/usr/local/include</cflags> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
67 | <ldflags>-L/usr/local/lib</ldflags> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
68 | </dependency> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
69 | |
156 | 70 | <target name="tk"> |
71 | <option arg="toolkit"> | |
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
72 | <value str="gtk4"> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
73 | <dependencies>gtk4</dependencies> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
74 | <make>TOOLKIT = gtk</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
75 | <make>GTKOBJ = draw_cairo.o</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
76 | </value> |
156 | 77 | <value str="gtk3"> |
78 | <dependencies>gtk3</dependencies> | |
79 | <make>TOOLKIT = gtk</make> | |
80 | <make>GTKOBJ = draw_cairo.o</make> | |
81 | </value> | |
82 | <value str="gtk2"> | |
83 | <dependencies>gtk2</dependencies> | |
84 | <make>TOOLKIT = gtk</make> | |
85 | <make>GTKOBJ = draw_cairo.o</make> | |
86 | </value> | |
87 | <value str="gtk2legacy"> | |
88 | <dependencies>gtk2legacy</dependencies> | |
89 | <make>TOOLKIT = gtk</make> | |
90 | <make>GTKOBJ = draw_gdk.o</make> | |
91 | </value> | |
92 | <value str="qt5"> | |
93 | <dependencies>qt5</dependencies> | |
94 | <make>TOOLKIT = qt</make> | |
95 | <make>LD = $(CXX)</make> | |
96 | </value> | |
97 | <value str="qt4"> | |
98 | <dependencies>qt4</dependencies> | |
99 | <make>TOOLKIT = qt</make> | |
100 | <make>LD = $(CXX)</make> | |
101 | </value> | |
102 | <value str="motif"> | |
103 | <dependencies>motif</dependencies> | |
104 | <make>TOOLKIT = motif</make> | |
105 | </value> | |
171
5065d0d52680
replace wpf with winui in the configure script
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
170
diff
changeset
|
106 | <default value="winui" platform="windows" /> |
156 | 107 | <default value="cocoa" platform="macos" /> |
108 | <default value="gtk3" /> | |
109 | <default value="qt5" /> | |
110 | <default value="gtk2" /> | |
111 | <default value="qt4" /> | |
112 | <default value="motif" /> | |
113 | </option> | |
114 | </target> | |
115 | </project> | |
116 |