Revert 45697:
[reactos.git] / ReactOS-i386.rbuild
index 82ec6b2..44e3511 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <!DOCTYPE project SYSTEM "tools/rbuild/project.dtd">
-<project name="ReactOS" makefile="makefile.auto" xmlns:xi="http://www.w3.org/2001/XInclude">
+<project name="ReactOS" makefile="makefile-i386.auto" xmlns:xi="http://www.w3.org/2001/XInclude">
        <xi:include href="config.rbuild">
                <xi:fallback>
                        <xi:include href="config.template.rbuild" />
        <define name="_M_IX86" />
        <define name="_X86_" />
        <define name="__i386__" />
+       <define name="TARGET_i386" host="true" />
 
-       <property name="NTOSKRNL_SHARED" value="-file-alignment=0x1000 -section-alignment=0x1000 -shared"/>
+       <define name="USE_COMPILER_EXCEPTIONS" />
+       <define name="_USE_32BIT_TIME_T" />
 
-       <if property="OPTIMIZE" value="1">
-       <!--
-               <compilerflag>-Os</compilerflag>
-               <compilerflag>-ftracer</compilerflag>
-               <compilerflag>-momit-leaf-frame-pointer</compilerflag>
-       -->
-               <compilerflag>-O1</compilerflag>
-       </if>
-       <if property="OPTIMIZE" value="2">
-               <!--<compilerflag>-Os</compilerflag>-->
-               <compilerflag>-O2</compilerflag>
-       </if>
-       <if property="OPTIMIZE" value="3">
-               <!--<compilerflag>-O1</compilerflag>-->
-               <compilerflag>-Ox</compilerflag>
-               <compilerflag>-Os</compilerflag>
-       </if>
-       <if property="OPTIMIZE" value="4">
-               <!--<compilerflag>-O2</compilerflag>-->
-               <compilerflag>-Ox</compilerflag>
-               <compilerflag>-Os</compilerflag>
-       </if>
-       <if property="OPTIMIZE" value="5">
-               <!--<compilerflag>-O3</compilerflag>-->
-               <compilerflag>-Ox</compilerflag>
-               <compilerflag>-Os</compilerflag>
-       </if>
+       <property name="PLATFORM" value="PC"/>
 
-       <!--
-       <compilerflag>-mpreferred-stack-boundary=2</compilerflag>
-       <compilerflag>-fno-strict-aliasing</compilerflag>
-       <compilerflag>-Wno-strict-aliasing</compilerflag>
-       <compilerflag>-Wpointer-arith</compilerflag>
-       -->
-       <compilerflag>-Oy-</compilerflag>
-       <compilerflag>-GS-</compilerflag>
-       <linkerflag>-disable-stdcall-fixup</linkerflag>
+       <group compilerset="gcc">
+               <if property="OPTIMIZE" value="1">
+                       <compilerflag>-ftracer</compilerflag>
+                       <compilerflag>-momit-leaf-frame-pointer</compilerflag>
+               </if>
+               <compilerflag>-fms-extensions</compilerflag>
+               <compilerflag>-mpreferred-stack-boundary=2</compilerflag>
+               <compilerflag compiler="midl">-m32 --win32</compilerflag>
+               <compilerflag compiler="cc,cxx">-gstabs+</compilerflag>
+               <compilerflag compiler="as">-gstabs+</compilerflag>
+       </group>
 
+       <group linkerset="ld">
+               <linkerflag>-disable-stdcall-fixup</linkerflag>
+               <linkerflag>-file-alignment=0x1000</linkerflag>
+               <linkerflag>-section-alignment=0x1000</linkerflag>
+       </group>
+
+       <directory name="base">
+               <xi:include href="base/base.rbuild" />
+       </directory>
+       <directory name="boot">
+               <xi:include href="boot/boot.rbuild" />
+       </directory>
+       <directory name="dll">
+               <xi:include href="dll/dll.rbuild" />
+       </directory>
+       <directory name="drivers">
+               <xi:include href="drivers/drivers.rbuild" />
+       </directory>
+       <directory name="hal">
+               <xi:include href="hal/hal.rbuild" />
+       </directory>
+       <directory name="include">
+               <xi:include href="include/directory.rbuild" />
+       </directory>
+       <directory name="lib">
+               <xi:include href="lib/lib.rbuild" />
+       </directory>
+       <directory name="media">
+               <xi:include href="media/media.rbuild" />
+       </directory>
+       <directory name="modules">
+               <xi:include href="modules/directory.rbuild" />
+       </directory>
+       <directory name="ntoskrnl">
+               <xi:include href="ntoskrnl/ntoskrnl.rbuild" />
+               <if property="BUILD_MP" value="1">
+                       <xi:include href="ntoskrnl/ntkrnlmp.rbuild" />
+               </if>
+       </directory>
+       <directory name="subsystems">
+               <xi:include href="subsystems/subsystems.rbuild" />
+       </directory>
+       <directory name="tools">
+               <xi:include href="tools/tools.rbuild" />
+       </directory>
 </project>