7 days ago
re-enable qt5 toolkit option
156 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
404
384f6d1f5784
add first working cocoa code
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
302
diff
changeset
|
2 | <project version="0.3" xmlns="http://unixwork.de/uwproj"> |
277 | 3 | <dependency> |
4 | <lang>c</lang> | |
514
f1662be4eab6
re-enable qt5 toolkit option
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
511
diff
changeset
|
5 | <make>LD = \$(CC)</make> |
277 | 6 | </dependency> |
302
b00cbbfeec7a
add libadwaita toolkit option
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
292
diff
changeset
|
7 | |
b00cbbfeec7a
add libadwaita toolkit option
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
292
diff
changeset
|
8 | <dependency name="libadwaita"> |
b00cbbfeec7a
add libadwaita toolkit option
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
292
diff
changeset
|
9 | <pkgconfig>libadwaita-1</pkgconfig> |
b00cbbfeec7a
add libadwaita toolkit option
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
292
diff
changeset
|
10 | <cflags>-DUI_GTK4 -DUI_LIBADWAITA</cflags> |
b00cbbfeec7a
add libadwaita toolkit option
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
292
diff
changeset
|
11 | <ldflags>-lpthread</ldflags> |
b00cbbfeec7a
add libadwaita toolkit option
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
292
diff
changeset
|
12 | </dependency> |
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
13 | <dependency name="gtk4"> |
292
8e5e7adf5372
add gtk4 option to the build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
277
diff
changeset
|
14 | <pkgconfig>gtk4</pkgconfig> |
8e5e7adf5372
add gtk4 option to the build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
277
diff
changeset
|
15 | <cflags>-DUI_GTK4</cflags> |
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
16 | <ldflags>-lpthread</ldflags> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
17 | </dependency> |
156 | 18 | <dependency name="gtk3"> |
19 | <pkgconfig>gtk+-3.0</pkgconfig> | |
20 | <cflags>-DUI_GTK3</cflags> | |
21 | <ldflags>-lpthread</ldflags> | |
22 | </dependency> | |
23 | <dependency name="gtk2"> | |
24 | <test>pkg-config --atleast-version=2.20 gtk+-2.0</test> | |
25 | <pkgconfig>gtk+-2.0</pkgconfig> | |
26 | <cflags>-DUI_GTK2</cflags> | |
27 | <ldflags>-lpthread</ldflags> | |
28 | </dependency> | |
29 | <dependency name="gtk2legacy"> | |
30 | <pkgconfig>gtk+-2.0</pkgconfig> | |
31 | <cflags>-DUI_GTK2 -DUI_GTK2LEGACY</cflags> | |
32 | <ldflags>-lpthread</ldflags> | |
33 | </dependency> | |
171
5065d0d52680
replace wpf with winui in the configure script
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
170
diff
changeset
|
34 | <dependency name="winui" platform="windows"> |
5065d0d52680
replace wpf with winui in the configure script
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
170
diff
changeset
|
35 | <cflags>-DUI_WINUI</cflags> |
156 | 36 | </dependency> |
277 | 37 | <!-- |
156 | 38 | <dependency name="qt4"> |
39 | <test>which qmake-qt4</test> | |
404
384f6d1f5784
add first working cocoa code
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
302
diff
changeset
|
40 | <cflags exec="true">qmake-qt4 -o - /dev/null | grep DEFINES\ </cflags> |
384f6d1f5784
add first working cocoa code
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
302
diff
changeset
|
41 | <cflags exec="true">qmake-qt4 -o - /dev/null | grep INCPATH\ </cflags> |
384f6d1f5784
add first working cocoa code
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
302
diff
changeset
|
42 | <ldflags exec="true">qmake-qt4 -o - /dev/null | grep LIBS\ </ldflags> |
156 | 43 | </dependency> |
514
f1662be4eab6
re-enable qt5 toolkit option
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
511
diff
changeset
|
44 | --> |
156 | 45 | <dependency name="qt5"> |
46 | <test>which qmake-qt5</test> | |
514
f1662be4eab6
re-enable qt5 toolkit option
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
511
diff
changeset
|
47 | <lang>cpp</lang> |
f1662be4eab6
re-enable qt5 toolkit option
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
511
diff
changeset
|
48 | <cflags>-DUI_QT5</cflags> |
f1662be4eab6
re-enable qt5 toolkit option
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
511
diff
changeset
|
49 | <cflags exec="true">qmake-qt5 -o - /dev/null | grep "DEFINES " | sed "s/DEFINES[ ]*=//g"</cflags> |
f1662be4eab6
re-enable qt5 toolkit option
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
511
diff
changeset
|
50 | <cflags exec="true">qmake-qt5 -o - /dev/null | grep "INCPATH " | sed "s/INCPATH[ ]*=//g"</cflags> |
f1662be4eab6
re-enable qt5 toolkit option
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
511
diff
changeset
|
51 | <ldflags exec="true">qmake-qt5 -o - /dev/null | grep "LIBS " | sed "s/LIBS[ ]*=//g"</ldflags> |
156 | 52 | </dependency> |
514
f1662be4eab6
re-enable qt5 toolkit option
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
511
diff
changeset
|
53 | |
156 | 54 | <dependency name="cocoa" platform="macos"> |
55 | <cflags>-DUI_COCOA</cflags> | |
56 | <ldflags>-lobjc -framework Cocoa</ldflags> | |
57 | </dependency> | |
176
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
58 | |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
59 | <dependency name="motif" platform="bsd"> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
60 | <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
|
61 | <ldflags>-lXm -lXt -lX11 -lpthread</ldflags> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
62 | </dependency> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
63 | |
156 | 64 | <dependency name="motif"> |
65 | <cflags>-DUI_MOTIF</cflags> | |
66 | <ldflags>-lXm -lXt -lX11 -lpthread</ldflags> | |
67 | </dependency> | |
68 | ||
463
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
69 | <dependency name="webkitgtk6"> |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
70 | <pkgconfig>webkitgtk-6.0</pkgconfig> |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
71 | <cflags>-DUI_WEBVIEW</cflags> |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
72 | </dependency> |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
73 | |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
74 | <dependency name="webkitgtk6"> |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
75 | <!-- webview unsupported --> |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
76 | </dependency> |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
77 | |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
78 | <dependency name="webkit2gtk4"> |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
79 | <pkgconfig>webkit2gtk-4.1</pkgconfig> |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
80 | <cflags>-DUI_WEBVIEW</cflags> |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
81 | </dependency> |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
82 | |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
83 | <dependency name="webkit2gtk4"> |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
84 | <pkgconfig>webkit2gtk-4.0</pkgconfig> |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
85 | <cflags>-DUI_WEBVIEW</cflags> |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
86 | </dependency> |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
87 | |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
88 | <dependency name="webkit2gtk4"> |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
89 | <!-- webview unsupported --> |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
90 | </dependency> |
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
91 | |
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
92 | <dependency platform="macos"> |
174 | 93 | <make>OBJ_EXT = .o</make> |
94 | <make>LIB_EXT = .a</make> | |
511
11004f307eae
add LIB_PREFIX to the build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
463
diff
changeset
|
95 | <make>LIB_PREFIX = lib</make> |
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
96 | <make>PACKAGE_SCRIPT = package_osx.sh</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
97 | </dependency> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
98 | <dependency platform="unix" not="macos"> |
174 | 99 | <make>OBJ_EXT = .o</make> |
100 | <make>LIB_EXT = .a</make> | |
511
11004f307eae
add LIB_PREFIX to the build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
463
diff
changeset
|
101 | <make>LIB_PREFIX = lib</make> |
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
102 | <make>PACKAGE_SCRIPT = package_unix.sh</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
103 | </dependency> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
104 | |
176
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
105 | <dependency platform="bsd"> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
106 | <cflags>-I/usr/local/include</cflags> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
107 | <ldflags>-L/usr/local/lib</ldflags> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
108 | </dependency> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
109 | |
156 | 110 | <target name="tk"> |
111 | <option arg="toolkit"> | |
302
b00cbbfeec7a
add libadwaita toolkit option
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
292
diff
changeset
|
112 | <value str="libadwaita"> |
463
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
113 | <dependencies>libadwaita,webkitgtk6</dependencies> |
302
b00cbbfeec7a
add libadwaita toolkit option
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
292
diff
changeset
|
114 | <make>TOOLKIT = gtk</make> |
b00cbbfeec7a
add libadwaita toolkit option
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
292
diff
changeset
|
115 | <make>GTKOBJ = draw_cairo.o</make> |
b00cbbfeec7a
add libadwaita toolkit option
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
292
diff
changeset
|
116 | </value> |
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
117 | <value str="gtk4"> |
463
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
118 | <dependencies>gtk4,webkitgtk6</dependencies> |
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
119 | <make>TOOLKIT = gtk</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
120 | <make>GTKOBJ = draw_cairo.o</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
121 | </value> |
156 | 122 | <value str="gtk3"> |
463
e8ee57cc052e
prepare webview
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
404
diff
changeset
|
123 | <dependencies>gtk3,webkit2gtk4</dependencies> |
156 | 124 | <make>TOOLKIT = gtk</make> |
125 | <make>GTKOBJ = draw_cairo.o</make> | |
126 | </value> | |
127 | <value str="gtk2"> | |
128 | <dependencies>gtk2</dependencies> | |
129 | <make>TOOLKIT = gtk</make> | |
130 | <make>GTKOBJ = draw_cairo.o</make> | |
131 | </value> | |
132 | <value str="gtk2legacy"> | |
133 | <dependencies>gtk2legacy</dependencies> | |
134 | <make>TOOLKIT = gtk</make> | |
135 | <make>GTKOBJ = draw_gdk.o</make> | |
136 | </value> | |
137 | <value str="qt5"> | |
138 | <dependencies>qt5</dependencies> | |
139 | <make>TOOLKIT = qt</make> | |
514
f1662be4eab6
re-enable qt5 toolkit option
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
511
diff
changeset
|
140 | <make>LD = \$(CXX)</make> |
156 | 141 | </value> |
142 | <value str="qt4"> | |
143 | <dependencies>qt4</dependencies> | |
144 | <make>TOOLKIT = qt</make> | |
514
f1662be4eab6
re-enable qt5 toolkit option
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
511
diff
changeset
|
145 | <make>LD = \$(CXX)</make> |
156 | 146 | </value> |
404
384f6d1f5784
add first working cocoa code
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
302
diff
changeset
|
147 | <value str="cocoa"> |
384f6d1f5784
add first working cocoa code
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
302
diff
changeset
|
148 | <dependencies>cocoa</dependencies> |
384f6d1f5784
add first working cocoa code
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
302
diff
changeset
|
149 | <make>TOOLKIT = cocoa</make> |
384f6d1f5784
add first working cocoa code
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
302
diff
changeset
|
150 | </value> |
156 | 151 | <value str="motif"> |
152 | <dependencies>motif</dependencies> | |
153 | <make>TOOLKIT = motif</make> | |
154 | </value> | |
171
5065d0d52680
replace wpf with winui in the configure script
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
170
diff
changeset
|
155 | <default value="winui" platform="windows" /> |
156 | 156 | <default value="cocoa" platform="macos" /> |
292
8e5e7adf5372
add gtk4 option to the build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
277
diff
changeset
|
157 | <default value="gtk4" /> |
156 | 158 | <default value="gtk3" /> |
292
8e5e7adf5372
add gtk4 option to the build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
277
diff
changeset
|
159 | <!--<default value="qt5" />--> |
156 | 160 | <default value="gtk2" /> |
161 | <default value="qt4" /> | |
162 | <default value="motif" /> | |
163 | </option> | |
164 | </target> | |
165 | </project> | |
166 |