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