make/project.xml

changeset 753
24dc84788dee
child 754
4bc7d966c9db
equal deleted inserted replaced
752:aaad6674a1a3 753:24dc84788dee
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://unixwork.de/uwproj">
3 <config>
4 <var name="src_dir" exec="true">pwd</var>
5 <var name="DOXYGEN" exec="true">command -v doxygen</var>
6 <var name="PANDOC" exec="true">command -v pandoc</var>
7 <var name="CMAKE" exec="true">command -v cmake</var>
8 </config>
9
10 <dependency>
11 <make>
12 # library version
13 VERSION="3.0.0"
14
15 # build directory structure !! do not change or override !!
16 BUILD_DIR=${src_dir}/build
17 DOCS_DIR=${src_dir}/build/docs
18 DIST_DIR=${src_dir}/dist
19 </make>
20 </dependency>
21
22 <dependency name="file-tools">
23 <make>
24 MKDIR=mkdir -p
25 RMDIR=rm -f -R
26 COPYFILE=cp
27 COPYALL=cp -R
28 </make>
29 </dependency>
30
31 <dependency name="c" platform="mingw">
32 <lang>c</lang>
33 <make>
34 AR=ar
35 ARFLAGS=r
36 STLIB_EXT=.lib
37 SHLIB_EXT=.dll
38 </make>
39 </dependency>
40
41 <dependency name="c" platform="macos">
42 <lang>c</lang>
43 <make>
44 AR=ar
45 ARFLAGS=r
46 STLIB_EXT=.a
47 SHLIB_EXT=.dylib
48 </make>
49 </dependency>
50
51 <dependency name="c" platform="unix">
52 <lang>c</lang>
53 <make>
54 AR=ar
55 ARFLAGS=r
56 STLIB_EXT=.a
57 SHLIB_EXT=.so
58 </make>
59 </dependency>
60
61 <dependency name="cpp">
62 <lang>cpp</lang>
63 </dependency>
64
65 <dependency name="cmake">
66 <test>test -n "$CMAKE"</test>
67 </dependency>
68
69 <dependency name="doxygen">
70 <test>test -n "$DOXYGEN"</test>
71 </dependency>
72
73 <dependency name="pandoc">
74 <test>test -n "$PANDOC"</test>
75 </dependency>
76
77 <target>
78 <option arg="with-tests">
79 <value str="yes">
80 <dependencies>cpp,cmake</dependencies>
81 <make>WITH_TESTS=yes</make>
82 </value>
83 <value str="no"/>
84 <default value="yes"/>
85 <default value="no"/>
86 </option>
87 <option arg="with-docs">
88 <value str="all">
89 <dependencies>pandoc,doxygen</dependencies>
90 <make>
91 # Documentation
92 WITH_DOCS_API=yes
93 WITH_DOCS_HTML=yes
94 </make>
95 </value>
96 <value str="html">
97 <dependencies>pandoc</dependencies>
98 <make>
99 # Documentation
100 WITH_DOCS_HTML=yes
101 </make>
102 </value>
103 <value str="api">
104 <dependencies>doxygen</dependencies>
105 <make>
106 # Documentation
107 WITH_DOCS_API=yes
108 </make>
109 </value>
110 <value str="none"/>
111 <default value="all"/>
112 <default value="html"/>
113 <default value="api"/>
114 <default value="none"/>
115 </option>
116 <dependencies>c,file-tools</dependencies>
117 </target>
118 </project>
119

mercurial