make/project.xml

changeset 431
bb7da585debc
parent 404
384f6d1f5784
equal deleted inserted replaced
169:fe49cff3c571 431:bb7da585debc
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <project> 2 <project version="0.3" xmlns="http://unixwork.de/uwproj">
3 <!-- 3 <dependency>
4 <dependency name="gtk4"> 4 <lang>c</lang>
5 <pkgconfig>gtk+-4.0</pkgconfig> 5 </dependency>
6 <cflags>-DUI_GTK3</cflags> 6
7 <dependency name="libadwaita">
8 <pkgconfig>libadwaita-1</pkgconfig>
9 <cflags>-DUI_GTK4 -DUI_LIBADWAITA</cflags>
7 <ldflags>-lpthread</ldflags> 10 <ldflags>-lpthread</ldflags>
8 </dependency> 11 </dependency>
9 --> 12 <dependency name="gtk4">
13 <pkgconfig>gtk4</pkgconfig>
14 <cflags>-DUI_GTK4</cflags>
15 <ldflags>-lpthread</ldflags>
16 </dependency>
10 <dependency name="gtk3"> 17 <dependency name="gtk3">
11 <pkgconfig>gtk+-3.0</pkgconfig> 18 <pkgconfig>gtk+-3.0</pkgconfig>
12 <cflags>-DUI_GTK3</cflags> 19 <cflags>-DUI_GTK3</cflags>
13 <ldflags>-lpthread</ldflags> 20 <ldflags>-lpthread</ldflags>
14 </dependency> 21 </dependency>
21 <dependency name="gtk2legacy"> 28 <dependency name="gtk2legacy">
22 <pkgconfig>gtk+-2.0</pkgconfig> 29 <pkgconfig>gtk+-2.0</pkgconfig>
23 <cflags>-DUI_GTK2 -DUI_GTK2LEGACY</cflags> 30 <cflags>-DUI_GTK2 -DUI_GTK2LEGACY</cflags>
24 <ldflags>-lpthread</ldflags> 31 <ldflags>-lpthread</ldflags>
25 </dependency> 32 </dependency>
26 <dependency name="wpf" platform="windows"> 33 <dependency name="winui" platform="windows">
27 <cflags>-DUI_WPF</cflags> 34 <cflags>-DUI_WINUI</cflags>
28 </dependency> 35 </dependency>
36 <!--
29 <dependency name="qt4"> 37 <dependency name="qt4">
30 <test>which qmake-qt4</test> 38 <test>which qmake-qt4</test>
31 <cflags type="exec">qmake-qt4 -o - /dev/null | grep DEFINES\ </cflags> 39 <cflags exec="true">qmake-qt4 -o - /dev/null | grep DEFINES\ </cflags>
32 <cflags type="exec">qmake-qt4 -o - /dev/null | grep INCPATH\ </cflags> 40 <cflags exec="true">qmake-qt4 -o - /dev/null | grep INCPATH\ </cflags>
33 <ldflags type="exec"><cflags type="exec">qmake-qt4 -o - /dev/null | grep LIBS\ </cflags></ldflags> 41 <ldflags exec="true">qmake-qt4 -o - /dev/null | grep LIBS\ </ldflags>
34 </dependency> 42 </dependency>
35 <dependency name="qt5"> 43 <dependency name="qt5">
36 <test>which qmake-qt5</test> 44 <test>which qmake-qt5</test>
37 <cflags type="exec">qmake-qt5 -o - /dev/null | grep DEFINES\ </cflags> 45 <cflags exec="true">qmake-qt5 -o - /dev/null | grep DEFINES\ </cflags>
38 <cflags type="exec">qmake-qt5 -o - /dev/null | grep INCPATH\ </cflags> 46 <cflags exec="true">qmake-qt5 -o - /dev/null | grep INCPATH\ </cflags>
39 <ldflags type="exec"><cflags type="exec">qmake-qt5 -o - /dev/null | grep LIBS\ </cflags></ldflags> 47 <ldflags exec="true">qmake-qt5 -o - /dev/null | grep LIBS\ </ldflags>
40 </dependency> 48 </dependency>
49 -->
41 <dependency name="cocoa" platform="macos"> 50 <dependency name="cocoa" platform="macos">
42 <cflags>-DUI_COCOA</cflags> 51 <cflags>-DUI_COCOA</cflags>
43 <ldflags>-lobjc -framework Cocoa</ldflags> 52 <ldflags>-lobjc -framework Cocoa</ldflags>
44 </dependency> 53 </dependency>
54
55 <dependency name="motif" platform="bsd">
56 <cflags>-DUI_MOTIF -I/usr/local/include/X11</cflags>
57 <ldflags>-lXm -lXt -lX11 -lpthread</ldflags>
58 </dependency>
59
45 <dependency name="motif"> 60 <dependency name="motif">
46 <cflags>-DUI_MOTIF</cflags> 61 <cflags>-DUI_MOTIF</cflags>
47 <ldflags>-lXm -lXt -lX11 -lpthread</ldflags> 62 <ldflags>-lXm -lXt -lX11 -lpthread</ldflags>
48 </dependency> 63 </dependency>
49 64
50 <dependency platform="macos"> 65 <dependency platform="macos">
51 <make>OBJ_EXT = o</make> 66 <make>OBJ_EXT = .o</make>
52 <make>LIB_EXT = a</make> 67 <make>LIB_EXT = .a</make>
53 <make>PACKAGE_SCRIPT = package_osx.sh</make> 68 <make>PACKAGE_SCRIPT = package_osx.sh</make>
54 </dependency> 69 </dependency>
55 <dependency platform="unix" not="macos"> 70 <dependency platform="unix" not="macos">
56 <make>OBJ_EXT = o</make> 71 <make>OBJ_EXT = .o</make>
57 <make>LIB_EXT = a</make> 72 <make>LIB_EXT = .a</make>
58 <make>PACKAGE_SCRIPT = package_unix.sh</make> 73 <make>PACKAGE_SCRIPT = package_unix.sh</make>
74 </dependency>
75
76 <dependency platform="bsd">
77 <cflags>-I/usr/local/include</cflags>
78 <ldflags>-L/usr/local/lib</ldflags>
59 </dependency> 79 </dependency>
60 80
61 <target name="tk"> 81 <target name="tk">
62 <option arg="toolkit"> 82 <option arg="toolkit">
63 <!-- 83 <value str="libadwaita">
84 <dependencies>libadwaita</dependencies>
85 <make>TOOLKIT = gtk</make>
86 <make>GTKOBJ = draw_cairo.o</make>
87 </value>
64 <value str="gtk4"> 88 <value str="gtk4">
65 <dependencies>gtk4</dependencies> 89 <dependencies>gtk4</dependencies>
66 <make>TOOLKIT = gtk</make> 90 <make>TOOLKIT = gtk</make>
67 <make>GTKOBJ = draw_cairo.o</make> 91 <make>GTKOBJ = draw_cairo.o</make>
68 </value> 92 </value>
69 -->
70 <value str="gtk3"> 93 <value str="gtk3">
71 <dependencies>gtk3</dependencies> 94 <dependencies>gtk3</dependencies>
72 <make>TOOLKIT = gtk</make> 95 <make>TOOLKIT = gtk</make>
73 <make>GTKOBJ = draw_cairo.o</make> 96 <make>GTKOBJ = draw_cairo.o</make>
74 </value> 97 </value>
90 <value str="qt4"> 113 <value str="qt4">
91 <dependencies>qt4</dependencies> 114 <dependencies>qt4</dependencies>
92 <make>TOOLKIT = qt</make> 115 <make>TOOLKIT = qt</make>
93 <make>LD = $(CXX)</make> 116 <make>LD = $(CXX)</make>
94 </value> 117 </value>
118 <value str="cocoa">
119 <dependencies>cocoa</dependencies>
120 <make>TOOLKIT = cocoa</make>
121 </value>
95 <value str="motif"> 122 <value str="motif">
96 <dependencies>motif</dependencies> 123 <dependencies>motif</dependencies>
97 <make>TOOLKIT = motif</make> 124 <make>TOOLKIT = motif</make>
98 </value> 125 </value>
99 <default value="wpf" platform="windows" /> 126 <default value="winui" platform="windows" />
100 <default value="cocoa" platform="macos" /> 127 <default value="cocoa" platform="macos" />
128 <default value="gtk4" />
101 <default value="gtk3" /> 129 <default value="gtk3" />
102 <default value="qt5" /> 130 <!--<default value="qt5" />-->
103 <default value="gtk2" /> 131 <default value="gtk2" />
104 <default value="qt4" /> 132 <default value="qt4" />
105 <default value="motif" /> 133 <default value="motif" />
106 </option> 134 </option>
107 </target> 135 </target>

mercurial