[PSDK]
[reactos.git] / ReactOS-amd64.rbuild
1 <?xml version="1.0"?>
2 <!DOCTYPE project SYSTEM "tools/rbuild/project.dtd">
3 <project name="ReactOS" makefile="makefile-amd64.auto" xmlns:xi="http://www.w3.org/2001/XInclude" allowwarnings="true">
4 <xi:include href="config-amd64.rbuild">
5 <xi:fallback>
6 <xi:include href="config-amd64.template.rbuild" />
7 </xi:fallback>
8 </xi:include>
9
10 <xi:include href="ReactOS-generic.rbuild" />
11
12 <define name="_M_AMD64" />
13 <define name="_AMD64_" />
14 <define name="_M_AXP64" />
15 <define name="__x86_64__" />
16 <!-- define name="_X86AMD64_" / FIXME: what is this used for? -->
17 <define name="_WIN64" />
18 <define name="TARGET_amd64" host="true" />
19
20 <define name="USE_COMPILER_EXCEPTIONS" />
21
22 <property name="PLATFORM" value="PC"/>
23 <property name="usewrc" value="false"/>
24 <property name="WINEBUILD_FLAGS" value="--kill-at"/>
25
26 <group compilerset="gcc">
27 <if property="OPTIMIZE" value="1">
28 <compilerflag>-ftracer</compilerflag>
29 <compilerflag>-momit-leaf-frame-pointer</compilerflag>
30 </if>
31 <compilerflag>-fms-extensions</compilerflag>
32 <compilerflag>-mpreferred-stack-boundary=4</compilerflag>
33 <compilerflag compiler="midl">-m64 --win64</compilerflag>
34 <!-- compilerflag compiler="cc,cxx">-gstabs+</compilerflag -->
35 <!-- compilerflag compiler="as">-gstabs+</compilerflag -->
36 <compilerflag>-U_X86_</compilerflag>
37 <compilerflag>-Wno-format</compilerflag>
38 <compilerflag>-fno-leading-underscore</compilerflag>
39 </group>
40
41 <group linkerset="ld">
42 <linkerflag>-disable-stdcall-fixup</linkerflag>
43 <linkerflag>-file-alignment=0x1000</linkerflag>
44 <linkerflag>-section-alignment=0x1000</linkerflag>
45 <linkerflag>--unique=.eh_frame</linkerflag>
46 <linkerflag>-static</linkerflag>
47 <linkerflag>-fno-leading-underscore</linkerflag>
48 <linkerflag>-shared</linkerflag>
49 <linkerflag>--exclude-all-symbols</linkerflag>
50 </group>
51
52 <if property="USERMODE" value="1">
53 <directory name="base">
54 <xi:include href="base/base.rbuild" />
55 </directory>
56 <directory name="dll">
57 <xi:include href="dll/dll.rbuild" />
58 </directory>
59 </if>
60
61 <directory name="boot">
62 <xi:include href="boot/boot.rbuild" />
63 </directory>
64 <directory name="drivers">
65 <xi:include href="drivers/drivers.rbuild" />
66 </directory>
67 <directory name="hal">
68 <xi:include href="hal/hal.rbuild" />
69 </directory>
70 <directory name="include">
71 <xi:include href="include/directory.rbuild" />
72 </directory>
73 <directory name="lib">
74 <xi:include href="lib/lib.rbuild" />
75 </directory>
76 <directory name="media">
77 <xi:include href="media/media.rbuild" />
78 </directory>
79 <directory name="modules">
80 <xi:include href="modules/directory.rbuild" />
81 </directory>
82 <directory name="ntoskrnl">
83 <xi:include href="ntoskrnl/ntoskrnl.rbuild" />
84 <if property="BUILD_MP" value="1">
85 <xi:include href="ntoskrnl/ntkrnlmp.rbuild" />
86 </if>
87 </directory>
88 <directory name="subsystems">
89 <xi:include href="subsystems/subsystems.rbuild" />
90 </directory>
91 <directory name="tools">
92 <xi:include href="tools/tools.rbuild" />
93 </directory>
94
95 </project>