Visual C++ backend for rbuild (for now just a hacked mingw backend) and related compi...
[reactos.git] / ReactOS-i386.rbuild
1 <?xml version="1.0"?>
2 <!DOCTYPE project SYSTEM "tools/rbuild/project.dtd">
3 <project name="ReactOS" makefile="makefile.auto" xmlns:xi="http://www.w3.org/2001/XInclude">
4 <xi:include href="config.rbuild">
5 <xi:fallback>
6 <xi:include href="config.template.rbuild" />
7 </xi:fallback>
8 </xi:include>
9
10 <xi:include href="ReactOS-generic.rbuild" />
11
12 <define name="_M_IX86" />
13 <define name="_X86_" />
14 <define name="__i386__" />
15
16 <property name="NTOSKRNL_SHARED" value="-file-alignment=0x1000 -section-alignment=0x1000 -shared"/>
17
18 <if property="OPTIMIZE" value="1">
19 <!--
20 <compilerflag>-Os</compilerflag>
21 <compilerflag>-ftracer</compilerflag>
22 <compilerflag>-momit-leaf-frame-pointer</compilerflag>
23 -->
24 <compilerflag>-O1</compilerflag>
25 </if>
26 <if property="OPTIMIZE" value="2">
27 <!--<compilerflag>-Os</compilerflag>-->
28 <compilerflag>-O2</compilerflag>
29 </if>
30 <if property="OPTIMIZE" value="3">
31 <!--<compilerflag>-O1</compilerflag>-->
32 <compilerflag>-Ox</compilerflag>
33 <compilerflag>-Os</compilerflag>
34 </if>
35 <if property="OPTIMIZE" value="4">
36 <!--<compilerflag>-O2</compilerflag>-->
37 <compilerflag>-Ox</compilerflag>
38 <compilerflag>-Os</compilerflag>
39 </if>
40 <if property="OPTIMIZE" value="5">
41 <!--<compilerflag>-O3</compilerflag>-->
42 <compilerflag>-Ox</compilerflag>
43 <compilerflag>-Os</compilerflag>
44 </if>
45
46 <!--
47 <compilerflag>-mpreferred-stack-boundary=2</compilerflag>
48 <compilerflag>-fno-strict-aliasing</compilerflag>
49 <compilerflag>-Wno-strict-aliasing</compilerflag>
50 <compilerflag>-Wpointer-arith</compilerflag>
51 -->
52 <compilerflag>-Oy-</compilerflag>
53 <compilerflag>-GS-</compilerflag>
54 <linkerflag>-disable-stdcall-fixup</linkerflag>
55
56 </project>