make/project.xml

Sun, 29 Sep 2024 18:56:26 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 29 Sep 2024 18:56:26 +0200
branch
newapi
changeset 316
e15ff2183b43
parent 302
b00cbbfeec7a
permissions
-rw-r--r--

don't add the headerbar to simple windows (GTK)

156
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
277
5099a34747c4 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 176
diff changeset
2 <project xmlns="http://unixwork.de/uwproj">
5099a34747c4 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 176
diff changeset
3 <dependency>
5099a34747c4 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 176
diff changeset
4 <lang>c</lang>
5099a34747c4 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 176
diff changeset
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
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
17 <dependency name="gtk3">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
18 <pkgconfig>gtk+-3.0</pkgconfig>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
19 <cflags>-DUI_GTK3</cflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
20 <ldflags>-lpthread</ldflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
21 </dependency>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
22 <dependency name="gtk2">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
23 <test>pkg-config --atleast-version=2.20 gtk+-2.0</test>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
24 <pkgconfig>gtk+-2.0</pkgconfig>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
25 <cflags>-DUI_GTK2</cflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
26 <ldflags>-lpthread</ldflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
27 </dependency>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
28 <dependency name="gtk2legacy">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
29 <pkgconfig>gtk+-2.0</pkgconfig>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
30 <cflags>-DUI_GTK2 -DUI_GTK2LEGACY</cflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
31 <ldflags>-lpthread</ldflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
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
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
35 </dependency>
277
5099a34747c4 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 176
diff changeset
36 <!--
156
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
37 <dependency name="qt4">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
38 <test>which qmake-qt4</test>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
39 <cflags type="exec">qmake-qt4 -o - /dev/null | grep DEFINES\ </cflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
40 <cflags type="exec">qmake-qt4 -o - /dev/null | grep INCPATH\ </cflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
41 <ldflags type="exec"><cflags type="exec">qmake-qt4 -o - /dev/null | grep LIBS\ </cflags></ldflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
42 </dependency>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
43 <dependency name="qt5">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
44 <test>which qmake-qt5</test>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
45 <cflags type="exec">qmake-qt5 -o - /dev/null | grep DEFINES\ </cflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
46 <cflags type="exec">qmake-qt5 -o - /dev/null | grep INCPATH\ </cflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
47 <ldflags type="exec"><cflags type="exec">qmake-qt5 -o - /dev/null | grep LIBS\ </cflags></ldflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
48 </dependency>
277
5099a34747c4 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 176
diff changeset
49 -->
156
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
50 <dependency name="cocoa" platform="macos">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
51 <cflags>-DUI_COCOA</cflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
52 <ldflags>-lobjc -framework Cocoa</ldflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
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
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
60 <dependency name="motif">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
61 <cflags>-DUI_MOTIF</cflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
62 <ldflags>-lXm -lXt -lX11 -lpthread</ldflags>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
63 </dependency>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
64
158
4bde241c49b1 update build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 156
diff changeset
65 <dependency platform="macos">
174
0358f1d9c506 upgrade ucx
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 171
diff changeset
66 <make>OBJ_EXT = .o</make>
0358f1d9c506 upgrade ucx
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 171
diff changeset
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
0358f1d9c506 upgrade ucx
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 171
diff changeset
71 <make>OBJ_EXT = .o</make>
0358f1d9c506 upgrade ucx
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 171
diff changeset
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
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
81 <target name="tk">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
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
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
93 <value str="gtk3">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
94 <dependencies>gtk3</dependencies>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
95 <make>TOOLKIT = gtk</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
96 <make>GTKOBJ = draw_cairo.o</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
97 </value>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
98 <value str="gtk2">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
99 <dependencies>gtk2</dependencies>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
100 <make>TOOLKIT = gtk</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
101 <make>GTKOBJ = draw_cairo.o</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
102 </value>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
103 <value str="gtk2legacy">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
104 <dependencies>gtk2legacy</dependencies>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
105 <make>TOOLKIT = gtk</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
106 <make>GTKOBJ = draw_gdk.o</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
107 </value>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
108 <value str="qt5">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
109 <dependencies>qt5</dependencies>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
110 <make>TOOLKIT = qt</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
111 <make>LD = $(CXX)</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
112 </value>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
113 <value str="qt4">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
114 <dependencies>qt4</dependencies>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
115 <make>TOOLKIT = qt</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
116 <make>LD = $(CXX)</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
117 </value>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
118 <value str="motif">
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
119 <dependencies>motif</dependencies>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
120 <make>TOOLKIT = motif</make>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
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
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
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
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
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
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
127 <default value="gtk2" />
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
128 <default value="qt4" />
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
129 <default value="motif" />
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
130 </option>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
131 </target>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
132 </project>
62f1a55535e7 new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
133

mercurial