Debian Codegraph @

tools/gwenbuild/templates/project.tmpl

raw
1 <?xml?>
2
3
4 <gwbuild requiredVersion="5.6.0" >
5
6 <project name="@PROJECTUPPER@"
7 vmajor="0" vminor="9" vpatchlevel="134" vbuild="0" vtag="beta"
8 so_current="0" so_age="0" so_revision="0"
9 write_config_h="TRUE"
10 >
11
12 <setVar name="package">$(project_name)</setVar>
13 <define name="PACKAGE" value="$(package)" quoted="TRUE" />
14
15 <!-- version -->
16 <setVar name="@PROJECTUPPER@_VERSION_STRING">$(project_vmajor).$(project_vminor).$(project_vpatchlevel)</setVar>
17 <setVar name="@PROJECTUPPER@_VERSION_FULL_STRING">
18 $(project_vmajor).$(project_vminor).$(project_vpatchlevel).$(project_vbuild)$(project_vtag)
19 </setVar>
20 <define name="@PROJECTUPPER@_VERSION_MAJOR" value="$(project_vmajor)" />
21 <define name="@PROJECTUPPER@_VERSION_MINOR" value="$(project_vminor)" />
22 <define name="@PROJECTUPPER@_VERSION_PATCHLEVEL" value="$(project_vpatchlevel)" />
23 <define name="@PROJECTUPPER@_VERSION_BUILD" value="$(project_vbuild)" />
24 <define name="@PROJECTUPPER@_VERSION_TAG" value="$(project_vtag)" />
25 <define name="@PROJECTUPPER@_VERSION_STRING" value="$(@PROJECTUPPER@_VERSION_STRING)" quoted="TRUE" />
26 <define name="@PROJECTUPPER@_VERSION_FULL_STRING" value="$(@PROJECTUPPER@_VERSION_FULL_STRING)" quoted="TRUE" />
27
28
29
30 <!-- prefix handling -->
31 <option id="prefix" type="string">
32 <default>/usr/local</default>
33 </option>
34 <setVar name="prefix">$(option_prefix)</setVar>
35 <setVar name="sysconfdir">$(option_prefix)/etc</setVar>
36 <setVar name="bindir">$(option_prefix)/bin</setVar>
37 <setVar name="libdir">$(option_prefix)/lib</setVar>
38 <setVar name="includedir">$(option_prefix)/include</setVar>
39 <setVar name="datadir">$(option_prefix)/share</setVar>
40 <setVar name="localedir">$(option_prefix)/share/locale</setVar>
41
42 <setVar name="pkglibdir">$(libdir)/$(package)</setVar>
43 <setVar name="pkgincludedir">$(includedir)/$(package)</setVar>
44 <setVar name="pkgdatadir">$(datadir)/$(package)</setVar>
45
46
47
48 <!-- options -->
49 <option id="enable_testcode" type="string">
50 <default>TRUE</default>
51 <choices>TRUE FALSE</choices>
52 </option>
53 <ifVarMatches name="option_enable_testcode" value="TRUE" >
54 <define name="AQFINANCE_ENABLE_TESTCODE" value="1" />
55 </ifVarMatches>
56
57
58
59 <!-- target system specifica -->
60 <define name="OS_TYPE" value="$(GWBUILD_SYSTEM)" quoted="TRUE" />
61 <define name="OS_SHORTNAME" value="$(GWBUILD_SYSTEM)" quoted="TRUE" />
62 <ifVarMatches name="GWBUILD_SYSTEM" value="windows" > <!-- long version of IF statement with THEN and ELSE -->
63 <then>
64 <define name="OS_WIN32" value="1" />
65
66 <!-- do something windows specific here -->
67
68 </then>
69 <else>
70 <define name="OS_POSIX" value="1" />
71
72 <!-- do something not-windows specific here -->
73
74 </else>
75 </ifVarMatches>
76
77
78
79 <!-- dependencies (checked using pkg-config) -->
80 <dependencies>
81 <dep id="gwenhywfar" name="gwenhywfar" minversion="5.5.1.1" required="TRUE" />
82 </dependencies>
83
84
85
86 <!-- these checks are used for libraries for which there is no pkg-config support -->
87 <checklibs>
88 <lib id="gmp" name="gmp" function="__gmpz_init" />
89 </checklibs>
90
91
92
93 <!-- symbol visibility -->
94 <checkCompiler>
95 <arg name="has_symbol_visibility">-fvisibility=hidden</arg>
96 </checkCompiler>
97
98 <ifVarMatches name="has_symbol_visibility" value="TRUE" >
99 <setVar name="visibility_cflags">-fvisibility=hidden</setVar>
100 <define name="GCC_WITH_VISIBILITY_ATTRIBUTE" />
101 </ifVarMatches>
102
103
104
105 <checkheaders>
106 locale.h libintl.h iconv.h
107 </checkheaders>
108
109
110
111 <checkfunctions type="c" >
112 setlocale
113 memmove
114 memset
115 strcasecmp
116 strdup
117 strerror
118 snprintf
119 </checkfunctions>
120
121
122
123 <subdirs>
124 src
125 </subdirs>
126
127 </project>
128
129 </gwbuild>
130