| 1 <?xml version="1.0" encoding="UTF-8"?> |
1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <project version="0.4" xmlns="http://unixwork.de/uwproj"> |
2 <project version="0.4" xmlns="http://unixwork.de/uwproj"> |
| 3 <!-- makefile config --> |
3 <!-- makefile config --> |
| 4 <config> |
4 <config> |
| 5 <prefix/> |
5 <prefix/> |
| 6 <libdir/> |
6 <libdir/> |
| 7 <var name="HOST" exec="true">uname -n</var> |
7 <var name="HOST" exec="true">uname -n</var> |
| 8 </config> |
8 </config> |
| 9 <config not="mingw"> |
9 <config not="mingw"> |
| 10 <var name="PWD">pwd</var> |
10 <var name="PWD">pwd</var> |
| 11 </config> |
11 </config> |
| 12 <config platform="mingw"> |
12 <config platform="mingw"> |
| 13 <var name="PWD">pwd -W</var> |
13 <var name="PWD">pwd -W</var> |
| 14 </config> |
14 </config> |
| 15 |
|
| 16 <dependency> |
|
| 17 <lang>c</lang> |
|
| 18 </dependency> |
|
| 19 |
|
| 20 <dependency name="cpp"> |
|
| 21 <lang>cpp</lang> |
|
| 22 </dependency> |
|
| 23 |
15 |
| 24 <dependency toolchain="gcc"> |
16 <dependency> |
| 25 <cflags>-DTOOLCHAIN_GCC</cflags> |
17 <lang>c</lang> |
| 26 </dependency> |
18 </dependency> |
| 27 |
19 |
| 28 <dependency toolchain="clang"> |
20 <dependency name="cpp"> |
| 29 <cflags>-DTOOLCHAIN_CLANG</cflags> |
21 <lang>cpp</lang> |
| 30 </dependency> |
22 </dependency> |
| 31 |
23 |
| 32 <dependency not="gcc"> |
24 <dependency toolchain="gcc"> |
| 33 <cflags>-DNOT_TOOLCHAIN_GCC</cflags> |
25 <cflags>-DTOOLCHAIN_GCC</cflags> |
| 34 </dependency> |
26 </dependency> |
| 35 |
27 |
| 36 <dependency not="clang"> |
28 <dependency toolchain="clang"> |
| 37 <cflags>-DNOT_TOOLCHAIN_CLANG</cflags> |
29 <cflags>-DTOOLCHAIN_CLANG</cflags> |
| 38 </dependency> |
30 </dependency> |
| 39 |
31 |
| 40 <!-- library dependencies --> |
32 <dependency not="gcc"> |
| 41 <dependency name="libxml2" platform="macos"> |
33 <cflags>-DNOT_TOOLCHAIN_GCC</cflags> |
| 42 <cflags exec="true">xml2-config --cflags</cflags> |
34 </dependency> |
| 43 <ldflags exec="true">xml2-config --libs</ldflags> |
|
| 44 </dependency> |
|
| 45 |
35 |
| 46 <dependency name="libxml2"> |
36 <dependency not="clang"> |
| 47 <pkgconfig>libxml-2.0</pkgconfig> |
37 <cflags>-DNOT_TOOLCHAIN_CLANG</cflags> |
| 48 </dependency> |
38 </dependency> |
| 49 |
|
| 50 <dependency name="openssl" toolchain="clang"> |
|
| 51 <pkgconfig>openssl</pkgconfig> |
|
| 52 <lang>c</lang> |
|
| 53 <cflags>-DOPENSSL_CLANG</cflags> |
|
| 54 </dependency> |
|
| 55 |
|
| 56 <dependency name="openssl" platform="bsd"> |
|
| 57 <ldflags>-lssl -lcrypto</ldflags> |
|
| 58 </dependency> |
|
| 59 |
39 |
| 60 <dependency name="openssl"> |
40 <!-- library dependencies --> |
| 61 <pkgconfig>openssl</pkgconfig> |
41 <dependency name="libxml2" platform="macos"> |
| 62 <lang>c</lang> |
42 <cflags exec="true">xml2-config --cflags</cflags> |
| 63 </dependency> |
43 <ldflags exec="true">xml2-config --libs</ldflags> |
| 64 |
44 </dependency> |
| 65 <!-- optional dependencies --> |
45 |
| 66 <dependency name="libpq"> |
46 <dependency name="libxml2"> |
| 67 <pkgconfig>libpq</pkgconfig> |
47 <pkgconfig>libxml-2.0</pkgconfig> |
| 68 </dependency> |
48 </dependency> |
| 69 |
49 |
| 70 <target> |
50 <dependency name="openssl" toolchain="clang"> |
| 71 <feature name="pg" default="true"> |
51 <pkgconfig>openssl</pkgconfig> |
| 72 <dependencies>libpq,cpp</dependencies> |
52 <lang>c</lang> |
| 73 </feature> |
53 <cflags>-DOPENSSL_CLANG</cflags> |
| 74 <dependencies>libxml2,openssl</dependencies> |
54 </dependency> |
| 75 </target> |
55 |
| |
56 <dependency name="openssl" platform="bsd"> |
| |
57 <ldflags>-lssl -lcrypto</ldflags> |
| |
58 </dependency> |
| |
59 |
| |
60 <dependency name="openssl"> |
| |
61 <pkgconfig>openssl</pkgconfig> |
| |
62 <lang>c</lang> |
| |
63 </dependency> |
| |
64 |
| |
65 <!-- optional dependencies --> |
| |
66 <dependency name="libpq"> |
| |
67 <pkgconfig>libpq</pkgconfig> |
| |
68 </dependency> |
| |
69 |
| |
70 <target> |
| |
71 <feature name="pg" default="true"> |
| |
72 <dependencies>libpq,cpp</dependencies> |
| |
73 </feature> |
| |
74 <dependencies>libxml2,openssl</dependencies> |
| |
75 </target> |
| 76 </project> |
76 </project> |
| 77 |
77 |