[MOUHID]
[reactos.git] / ReactOS-generic.rbuild
1 <?xml version="1.0"?>
2 <!DOCTYPE group SYSTEM "tools/rbuild/project.dtd">
3 <group xmlns:xi="http://www.w3.org/2001/XInclude">
4 <xi:include href="baseaddress.rbuild" />
5
6 <define name="__REACTOS__" />
7 <define name="__REACTOS__" host="true" />
8
9 <if property="DBG" value="1">
10 <define name="DBG">1</define>
11 <define name="_SEH_ENABLE_TRACE" />
12 <property name="DBG_OR_KDBG" value="true" />
13 </if>
14 <if property="DBG" value="0">
15 <define name="DBG">0</define>
16 </if>
17
18 <if property="KDBG" value="1">
19 <define name="KDBG">1</define>
20 <property name="DBG_OR_KDBG" value="true" />
21 </if>
22
23 <!-- The version target valid values are: Nt4 , NT5 , NT51 -->
24 <property name="VERSION_TARGET" value="NT52" />
25
26 <if property="VERSION_TARGET" value="NT4">
27 <define name="WINVER">0x400</define>
28 <define name="_WIN32_IE">0x600</define>
29 <define name="_WIN32_WINNT">0x400</define>
30 <define name="_WIN32_WINDOWS">0x400</define>
31 <define name="_SETUPAPI_VER">0x400</define>
32 </if>
33
34 <if property="VERSION_TARGET" value="NT5">
35 <define name="WINVER">0x500</define>
36 <define name="_WIN32_IE">0x600</define>
37 <define name="_WIN32_WINNT">0x500</define>
38 <define name="_WIN32_WINDOWS">0x500</define>
39 <define name="_SETUPAPI_VER">0x500</define>
40 </if>
41
42 <if property="VERSION_TARGET" value="NT51">
43 <define name="WINVER">0x501</define>
44 <define name="_WIN32_IE">0x600</define>
45 <define name="_WIN32_WINNT">0x501</define>
46 <define name="_WIN32_WINDOWS">0x501</define>
47 <define name="_SETUPAPI_VER">0x501</define>
48 </if>
49
50 <if property="VERSION_TARGET" value="NT52">
51 <define name="WINVER">0x502</define>
52 <define name="_WIN32_IE">0x600</define>
53 <define name="_WIN32_WINNT">0x502</define>
54 <define name="_WIN32_WINDOWS">0x502</define>
55 <define name="_SETUPAPI_VER">0x502</define>
56 </if>
57
58 <if property="VERSION_TARGET" value="NT6">
59 <define name="WINVER">0x600</define>
60 <define name="_WIN32_IE">0x600</define>
61 <define name="_WIN32_WINNT">0x600</define>
62 <define name="_WIN32_WINDOWS">0x600</define>
63 <define name="_SETUPAPI_VER">0x600</define>
64 </if>
65
66 <include>.</include>
67 <include>include</include>
68 <include root="intermediate">include</include>
69 <include>include/psdk</include>
70 <include root="intermediate">include/psdk</include>
71 <include>include/dxsdk</include>
72 <include root="intermediate">include/dxsdk</include>
73 <include>include/crt</include>
74 <include compilerset="gcc">include/crt/mingw32</include>
75 <include compilerset="msc">include/crt/msc</include>
76 <include>include/ddk</include>
77 <include>include/GL</include>
78 <include>include/ndk</include>
79 <include>include/reactos</include>
80 <include root="intermediate">include/reactos</include>
81 <include root="intermediate">include/reactos/mc</include>
82 <include>include/reactos/libs</include>
83
84 <include host="true">include/host</include>
85
86 <group compilerset="gcc">
87 <compilerflag>-Wall</compilerflag>
88 <compilerflag>-Wno-char-subscripts</compilerflag>
89 <compilerflag compiler="cxx">-Wno-non-virtual-dtor</compilerflag>
90 </group>
91
92 <group compilerset="msc">
93 <define name="inline" compiler="cc">__inline</define>
94 <define name="__STDC__" compiler="cc">1</define>
95 <compilerflag>/Zl</compilerflag>
96 <compilerflag>/Zi</compilerflag>
97 <compilerflag>/W1</compilerflag>
98 </group>
99
100 <group compilerset="gcc">
101 <if property="OPTIMIZE" value="1">
102 <compilerflag>-Os</compilerflag>
103 </if>
104 <if property="OPTIMIZE" value="2">
105 <compilerflag>-Os</compilerflag>
106 </if>
107 <if property="OPTIMIZE" value="3">
108 <compilerflag>-O1</compilerflag>
109 </if>
110 <if property="OPTIMIZE" value="4">
111 <compilerflag>-O2</compilerflag>
112 </if>
113 <if property="OPTIMIZE" value="5">
114 <compilerflag>-O3</compilerflag>
115 </if>
116
117 <compilerflag>-fno-strict-aliasing</compilerflag>
118 <compilerflag>-Wpointer-arith</compilerflag>
119 <compilerflag>-Wno-multichar</compilerflag>
120 <compilerflag>-Wno-error=uninitialized</compilerflag>
121 <!-- compilerflag>-H</compilerflag> enable this for header traces -->
122 </group>
123
124 <group compilerset="msc">
125 <if property="OPTIMIZE" value="1">
126 <compilerflag>/O1</compilerflag>
127 </if>
128 <if property="OPTIMIZE" value="2">
129 <compilerflag>/O2</compilerflag>
130 </if>
131 <if property="OPTIMIZE" value="3">
132 <compilerflag>/Ox /GS-</compilerflag>
133 <compilerflag>/Ot</compilerflag>
134 </if>
135 <if property="OPTIMIZE" value="4">
136 <compilerflag>/Ox /GS-</compilerflag>
137 <compilerflag>/Os</compilerflag>
138 </if>
139 <if property="OPTIMIZE" value="5">
140 <compilerflag>/Ox /GS-</compilerflag>
141 <compilerflag>/Os</compilerflag>
142 <compilerflag>/Ob2</compilerflag>
143 <compilerflag>/GF</compilerflag>
144 <compilerflag>/Gy</compilerflag>
145 </if>
146
147 <compilerflag>/GS-</compilerflag>
148 </group>
149
150 </group>