[MINGW]
[reactos.git] / reactos / 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</include>
85 <include host="true" root="intermediate">include</include>
86 <include host="true">include/reactos</include>
87 <include host="true">include/reactos/wine</include>
88
89 <group compilerset="gcc">
90 <compilerflag>-Wall</compilerflag>
91 <compilerflag>-Wno-char-subscripts</compilerflag>
92 <compilerflag compiler="cxx">-Wno-non-virtual-dtor</compilerflag>
93 </group>
94
95 <group compilerset="msc">
96 <define name="inline" compiler="cc">__inline</define>
97 <define name="__STDC__" compiler="cc">1</define>
98 <compilerflag>/Zl</compilerflag>
99 <compilerflag>/Zi</compilerflag>
100 <compilerflag>/W1</compilerflag>
101 </group>
102
103 <group compilerset="gcc">
104 <if property="OPTIMIZE" value="1">
105 <compilerflag>-Os</compilerflag>
106 </if>
107 <if property="OPTIMIZE" value="2">
108 <compilerflag>-Os</compilerflag>
109 </if>
110 <if property="OPTIMIZE" value="3">
111 <compilerflag>-O1</compilerflag>
112 </if>
113 <if property="OPTIMIZE" value="4">
114 <compilerflag>-O2</compilerflag>
115 </if>
116 <if property="OPTIMIZE" value="5">
117 <compilerflag>-O3</compilerflag>
118 </if>
119
120 <compilerflag>-fno-strict-aliasing</compilerflag>
121 <compilerflag>-Wpointer-arith</compilerflag>
122 <compilerflag>-Wno-multichar</compilerflag>
123 <compilerflag>-Wno-error=uninitialized</compilerflag>
124 <!-- compilerflag>-H</compilerflag> enable this for header traces -->
125 </group>
126
127 <group compilerset="msc">
128 <if property="OPTIMIZE" value="1">
129 <compilerflag>/O1</compilerflag>
130 </if>
131 <if property="OPTIMIZE" value="2">
132 <compilerflag>/O2</compilerflag>
133 </if>
134 <if property="OPTIMIZE" value="3">
135 <compilerflag>/Ox /GS-</compilerflag>
136 <compilerflag>/Ot</compilerflag>
137 </if>
138 <if property="OPTIMIZE" value="4">
139 <compilerflag>/Ox /GS-</compilerflag>
140 <compilerflag>/Os</compilerflag>
141 </if>
142 <if property="OPTIMIZE" value="5">
143 <compilerflag>/Ox /GS-</compilerflag>
144 <compilerflag>/Os</compilerflag>
145 <compilerflag>/Ob2</compilerflag>
146 <compilerflag>/GF</compilerflag>
147 <compilerflag>/Gy</compilerflag>
148 </if>
149
150 <compilerflag>/GS-</compilerflag>
151 </group>
152
153 </group>