Sun, 07 Apr 2024 12:36:07 +0200
implement ui_dialog_create (GTK)
156 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
277 | 2 | <project xmlns="http://unixwork.de/uwproj"> |
3 | <dependency> | |
4 | <lang>c</lang> | |
5 | </dependency> | |
6 | ||
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
7 | <dependency name="gtk4"> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
8 | <pkgconfig>gtk+-4.0</pkgconfig> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
9 | <cflags>-DUI_GTK3</cflags> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
10 | <ldflags>-lpthread</ldflags> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
11 | </dependency> |
156 | 12 | <dependency name="gtk3"> |
13 | <pkgconfig>gtk+-3.0</pkgconfig> | |
14 | <cflags>-DUI_GTK3</cflags> | |
15 | <ldflags>-lpthread</ldflags> | |
16 | </dependency> | |
17 | <dependency name="gtk2"> | |
18 | <test>pkg-config --atleast-version=2.20 gtk+-2.0</test> | |
19 | <pkgconfig>gtk+-2.0</pkgconfig> | |
20 | <cflags>-DUI_GTK2</cflags> | |
21 | <ldflags>-lpthread</ldflags> | |
22 | </dependency> | |
23 | <dependency name="gtk2legacy"> | |
24 | <pkgconfig>gtk+-2.0</pkgconfig> | |
25 | <cflags>-DUI_GTK2 -DUI_GTK2LEGACY</cflags> | |
26 | <ldflags>-lpthread</ldflags> | |
27 | </dependency> | |
171
5065d0d52680
replace wpf with winui in the configure script
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
170
diff
changeset
|
28 | <dependency name="winui" platform="windows"> |
5065d0d52680
replace wpf with winui in the configure script
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
170
diff
changeset
|
29 | <cflags>-DUI_WINUI</cflags> |
156 | 30 | </dependency> |
277 | 31 | <!-- |
156 | 32 | <dependency name="qt4"> |
33 | <test>which qmake-qt4</test> | |
34 | <cflags type="exec">qmake-qt4 -o - /dev/null | grep DEFINES\ </cflags> | |
35 | <cflags type="exec">qmake-qt4 -o - /dev/null | grep INCPATH\ </cflags> | |
36 | <ldflags type="exec"><cflags type="exec">qmake-qt4 -o - /dev/null | grep LIBS\ </cflags></ldflags> | |
37 | </dependency> | |
38 | <dependency name="qt5"> | |
39 | <test>which qmake-qt5</test> | |
40 | <cflags type="exec">qmake-qt5 -o - /dev/null | grep DEFINES\ </cflags> | |
41 | <cflags type="exec">qmake-qt5 -o - /dev/null | grep INCPATH\ </cflags> | |
42 | <ldflags type="exec"><cflags type="exec">qmake-qt5 -o - /dev/null | grep LIBS\ </cflags></ldflags> | |
43 | </dependency> | |
277 | 44 | --> |
156 | 45 | <dependency name="cocoa" platform="macos"> |
46 | <cflags>-DUI_COCOA</cflags> | |
47 | <ldflags>-lobjc -framework Cocoa</ldflags> | |
48 | </dependency> | |
176
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
49 | |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
50 | <dependency name="motif" platform="bsd"> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
51 | <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
|
52 | <ldflags>-lXm -lXt -lX11 -lpthread</ldflags> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
53 | </dependency> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
54 | |
156 | 55 | <dependency name="motif"> |
56 | <cflags>-DUI_MOTIF</cflags> | |
57 | <ldflags>-lXm -lXt -lX11 -lpthread</ldflags> | |
58 | </dependency> | |
59 | ||
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
60 | <dependency platform="macos"> |
174 | 61 | <make>OBJ_EXT = .o</make> |
62 | <make>LIB_EXT = .a</make> | |
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
63 | <make>PACKAGE_SCRIPT = package_osx.sh</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
64 | </dependency> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
65 | <dependency platform="unix" not="macos"> |
174 | 66 | <make>OBJ_EXT = .o</make> |
67 | <make>LIB_EXT = .a</make> | |
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
68 | <make>PACKAGE_SCRIPT = package_unix.sh</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
69 | </dependency> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
70 | |
176
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
71 | <dependency platform="bsd"> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
72 | <cflags>-I/usr/local/include</cflags> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
73 | <ldflags>-L/usr/local/lib</ldflags> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
74 | </dependency> |
bc63cb601f6d
port motif code to ucx 3
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
174
diff
changeset
|
75 | |
156 | 76 | <target name="tk"> |
77 | <option arg="toolkit"> | |
158
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
78 | <value str="gtk4"> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
79 | <dependencies>gtk4</dependencies> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
80 | <make>TOOLKIT = gtk</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
81 | <make>GTKOBJ = draw_cairo.o</make> |
4bde241c49b1
update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
156
diff
changeset
|
82 | </value> |
156 | 83 | <value str="gtk3"> |
84 | <dependencies>gtk3</dependencies> | |
85 | <make>TOOLKIT = gtk</make> | |
86 | <make>GTKOBJ = draw_cairo.o</make> | |
87 | </value> | |
88 | <value str="gtk2"> | |
89 | <dependencies>gtk2</dependencies> | |
90 | <make>TOOLKIT = gtk</make> | |
91 | <make>GTKOBJ = draw_cairo.o</make> | |
92 | </value> | |
93 | <value str="gtk2legacy"> | |
94 | <dependencies>gtk2legacy</dependencies> | |
95 | <make>TOOLKIT = gtk</make> | |
96 | <make>GTKOBJ = draw_gdk.o</make> | |
97 | </value> | |
98 | <value str="qt5"> | |
99 | <dependencies>qt5</dependencies> | |
100 | <make>TOOLKIT = qt</make> | |
101 | <make>LD = $(CXX)</make> | |
102 | </value> | |
103 | <value str="qt4"> | |
104 | <dependencies>qt4</dependencies> | |
105 | <make>TOOLKIT = qt</make> | |
106 | <make>LD = $(CXX)</make> | |
107 | </value> | |
108 | <value str="motif"> | |
109 | <dependencies>motif</dependencies> | |
110 | <make>TOOLKIT = motif</make> | |
111 | </value> | |
171
5065d0d52680
replace wpf with winui in the configure script
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
170
diff
changeset
|
112 | <default value="winui" platform="windows" /> |
156 | 113 | <default value="cocoa" platform="macos" /> |
114 | <default value="gtk3" /> | |
115 | <default value="qt5" /> | |
116 | <default value="gtk2" /> | |
117 | <default value="qt4" /> | |
118 | <default value="motif" /> | |
119 | </option> | |
120 | </target> | |
121 | </project> | |
122 |