UNIXworkcode

1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://unixwork.de/uwproj"> 3 <dependency> 4 <lang>c</lang> 5 </dependency> 6 7 <dependency name="curl" platform="macos"> 8 <cflags exec="true">curl-config --cflags</cflags> 9 <ldflags exec="true">curl-config --ldflags</ldflags> 10 </dependency> 11 <dependency name="curl"> 12 <pkgconfig>libcurl</pkgconfig> 13 </dependency> 14 <dependency name="curl"> 15 <cflags exec="true">curl-config --cflags</cflags> 16 <ldflags exec="true">curl-config --libs</ldflags> 17 </dependency> 18 19 <dependency name="libxml2" platform="windows"> 20 <cflags exec="true">xml2-config --cflags</cflags> 21 <ldflags exec="true">xml2-config --libs</ldflags> 22 </dependency> 23 <dependency name="libxml2" platform="macos"> 24 <cflags exec="true">xml2-config --cflags</cflags> 25 <ldflags exec="true">xml2-config --libs</ldflags> 26 </dependency> 27 <dependency name="libxml2"> 28 <pkgconfig>libxml-2.0</pkgconfig> 29 </dependency> 30 <dependency name="libxml2"> 31 <cflags exec="true">xml2-config --cflags</cflags> 32 <ldflags exec="true">xml2-config --libs</ldflags> 33 </dependency> 34 35 <dependency name="openssl" platform="windows"> 36 <ldflags>-lssl -lcrypto</ldflags> 37 </dependency> 38 <dependency name="openssl" platform="macos"> 39 <ldflags>-framework CoreFoundation</ldflags> 40 </dependency> 41 <dependency name="openssl" platform="bsd" not="macos"> 42 <ldflags>-lssl -lcrypto</ldflags> 43 </dependency> 44 <dependency name="openssl"> 45 <pkgconfig>openssl</pkgconfig> 46 </dependency> 47 48 <dependency name="libadwaita"> 49 <pkgconfig>libadwaita-1</pkgconfig> 50 <cflags>-DUI_GTK4 -DUI_LIBADWAITA</cflags> 51 <ldflags>-lpthread</ldflags> 52 </dependency> 53 <dependency name="gtk4"> 54 <pkgconfig>gtk4</pkgconfig> 55 <cflags>-DUI_GTK3</cflags> 56 <ldflags>-lpthread</ldflags> 57 </dependency> 58 <dependency name="gtk3"> 59 <pkgconfig>gtk+-3.0</pkgconfig> 60 <cflags>-DUI_GTK3</cflags> 61 <ldflags>-lpthread</ldflags> 62 </dependency> 63 <dependency name="gtk2"> 64 <test>pkg-config --atleast-version=2.20 gtk+-2.0</test> 65 <pkgconfig>gtk+-2.0</pkgconfig> 66 <cflags>-DUI_GTK2</cflags> 67 <ldflags>-lpthread</ldflags> 68 </dependency> 69 <dependency name="gtk2legacy"> 70 <pkgconfig>gtk+-2.0</pkgconfig> 71 <cflags>-DUI_GTK2 -DUI_GTK2LEGACY</cflags> 72 <ldflags>-lpthread</ldflags> 73 </dependency> 74 <dependency name="winui" platform="windows"> 75 <cflags>-DUI_WINUI</cflags> 76 </dependency> 77 78 <!-- 79 <dependency name="qt4"> 80 <test>which qmake-qt4</test> 81 <cflags exec="true">qmake-qt4 -o - /dev/null | grep DEFINES\ </cflags> 82 <cflags exec="true">qmake-qt4 -o - /dev/null | grep INCPATH\ </cflags> 83 <ldflags exec="true">qmake-qt4 -o - /dev/null | grep LIBS\ </ldflags> 84 </dependency> 85 86 <dependency name="qt5"> 87 <test>which qmake-qt5</test> 88 <cflags exec="true">qmake-qt5 -o - /dev/null | grep DEFINES\ </cflags> 89 <cflags exec="true">qmake-qt5 -o - /dev/null | grep INCPATH\ </cflags> 90 <ldflags exec="true">qmake-qt5 -o - /dev/null | grep LIBS\ </ldflags> 91 </dependency> 92 --> 93 <dependency name="cocoa" platform="macos"> 94 <cflags>-DUI_COCOA</cflags> 95 <ldflags>-lobjc -framework Cocoa</ldflags> 96 </dependency> 97 98 <dependency name="motif" platform="bsd"> 99 <cflags>-DUI_MOTIF -I/usr/local/include/X11</cflags> 100 <ldflags>-lXm -lXt -lX11 -lpthread</ldflags> 101 </dependency> 102 103 <dependency name="motif"> 104 <cflags>-DUI_MOTIF</cflags> 105 <ldflags>-lXm -lXt -lX11 -lpthread</ldflags> 106 </dependency> 107 108 <dependency platform="macos"> 109 <make>OBJ_EXT = .o</make> 110 <make>LIB_EXT = .a</make> 111 <make>PACKAGE_SCRIPT = package_osx.sh</make> 112 </dependency> 113 <dependency platform="unix" not="macos"> 114 <make>OBJ_EXT = .o</make> 115 <make>LIB_EXT = .a</make> 116 <make>PACKAGE_SCRIPT = package_unix.sh</make> 117 </dependency> 118 119 <dependency platform="bsd"> 120 <cflags>-I/usr/local/include</cflags> 121 <ldflags>-L/usr/local/lib</ldflags> 122 </dependency> 123 124 <target name="dav"> 125 <dependencies>curl,libxml2,openssl</dependencies> 126 </target> 127 128 <target name="tk"> 129 <option arg="toolkit"> 130 <value str="libadwaita"> 131 <dependencies>libadwaita</dependencies> 132 <make>TOOLKIT = gtk</make> 133 <make>GTKOBJ = draw_cairo.o</make> 134 </value> 135 <value str="gtk4"> 136 <dependencies>gtk4</dependencies> 137 <make>TOOLKIT = gtk</make> 138 <make>GTKOBJ = draw_cairo.o</make> 139 </value> 140 <value str="gtk3"> 141 <dependencies>gtk3</dependencies> 142 <make>TOOLKIT = gtk</make> 143 <make>GTKOBJ = draw_cairo.o</make> 144 </value> 145 <value str="gtk2"> 146 <dependencies>gtk2</dependencies> 147 <make>TOOLKIT = gtk</make> 148 <make>GTKOBJ = draw_cairo.o</make> 149 </value> 150 <value str="gtk2legacy"> 151 <dependencies>gtk2legacy</dependencies> 152 <make>TOOLKIT = gtk</make> 153 <make>GTKOBJ = draw_gdk.o</make> 154 </value> 155 <value str="qt5"> 156 <dependencies>qt5</dependencies> 157 <make>TOOLKIT = qt</make> 158 <make>LD = $(CXX)</make> 159 </value> 160 <value str="qt4"> 161 <dependencies>qt4</dependencies> 162 <make>TOOLKIT = qt</make> 163 <make>LD = $(CXX)</make> 164 </value> 165 <value str="motif"> 166 <dependencies>motif</dependencies> 167 <make>TOOLKIT = motif</make> 168 </value> 169 <default value="winui" platform="windows" /> 170 <default value="cocoa" platform="macos" /> 171 <default value="gtk4" /> 172 <default value="gtk3" /> 173 <default value="qt5" /> 174 <default value="gtk2" /> 175 <default value="qt4" /> 176 <default value="motif" /> 177 </option> 178 </target> 179 </project> 180 181