3
|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
2 |
<build xmlns="http://symbian.com/xml/build" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symbian.com/xml/build ../../schema/build/2_0.xsd">
|
|
3 |
|
|
4 |
<!-- build configurations for GCC compilers -->
|
|
5 |
<var name="tools2_base" extends="root">
|
|
6 |
|
|
7 |
<varRef ref="default.interfaces"/>
|
|
8 |
<varRef ref="default.locations"/>
|
|
9 |
<!-- picked up from the Environment -->
|
|
10 |
<env name='RANLIB' default='$(GCCPREFIX)ranlib$(DOTEXE)' type='tool'/>
|
|
11 |
<env name='GCC' default='$(GCCPREFIX)g++$(DOTEXE)' type='tool'/>
|
|
12 |
<env name='AR' default='$(GCCPREFIX)ar$(DOTEXE)' type='tool'/>
|
|
13 |
|
|
14 |
<!-- interfaces -->
|
|
15 |
<set name="INTERFACE.exe" value="Tools.exe"/>
|
|
16 |
<set name="INTERFACE.lib" value="Tools.lib"/>
|
|
17 |
|
|
18 |
<!-- Java used by Trace Compiler -->
|
|
19 |
<env name='JAVA_HOME' default='' type='path'/>
|
|
20 |
<env name='JAVATC' default='$(JAVA_HOME)/bin/java' type='tool'/>
|
|
21 |
|
|
22 |
<!-- link to bld.inf and mmp platform names -->
|
|
23 |
<set name='TRADITIONAL_PLATFORM' value='TOOLS2'/>
|
|
24 |
<set name='VARIANTPLATFORM' value='tools2'/>
|
|
25 |
|
|
26 |
<!-- used by FLM code -->
|
|
27 |
<set name='COMPILER' value='$(GCC) -c' type='tool' versionCommand='$(GCC) -v' versionResult='gcc version (3.[456])|(4.[0-9])'/>
|
|
28 |
|
|
29 |
<set name='CFLAGS' value='-fdefer-pop -fmerge-constants -fthread-jumps -floop-optimize -fif-conversion -fif-conversion2 -fguess-branch-probability -fcprop-registers -foptimize-sibling-calls -fstrength-reduce -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop -frerun-loop-opt -fgcse -fgcse-lm -fgcse-sm -fgcse-las -fdelete-null-pointer-checks -fexpensive-optimizations -fregmove -fschedule-insns -fschedule-insns2 -fsched-interblock -fsched-spec -fcaller-saves -fpeephole2 -freorder-blocks -freorder-functions -fstrict-aliasing -funit-at-a-time -falign-functions -falign-jumps -falign-loops -falign-labels -fcrossjumping -pipe -Wall -Wno-ctor-dtor-privacy -Wno-unknown-pragmas -m32'/>
|
|
30 |
|
|
31 |
<!-- msys based programs sometimes don't search the path properly.
|
|
32 |
COMPILER_PATH can be set to tell gcc where to find
|
|
33 |
as.exe (sometimes it doesn't and a build step fails).
|
|
34 |
-->
|
|
35 |
<set name='COMPILER_PATH.WIN32' value='$(SBS_HOME)/win32/mingw/bin'/>
|
|
36 |
<set name='COMPILER_PATH.LINUX' value=''/>
|
|
37 |
|
|
38 |
<set name='CFLAGS.WIN32' value=''/>
|
|
39 |
|
|
40 |
<!-- macro definitions set by mmps etc -->
|
|
41 |
<set name='CDEFS' value='$(MMPDEFS)'/>
|
|
42 |
|
|
43 |
|
|
44 |
<set name='CDEFS.DEFAULT' value='__SYMBIAN32__ __TOOLS__ __TOOLS2__ __EXE__ __SUPPORT_CPP_EXCEPTIONS__ __PRODUCT_INCLUDE__="$(PRODUCT_INCLUDE)"'/>
|
|
45 |
<set name='CDEFS.WIN32' value='$(CDEFS.DEFAULT) _WIN32 WIN32 _WINDOWS __TOOLS2_WINDOWS__'/>
|
|
46 |
<set name='CDEFS.LINUX' value='$(CDEFS.DEFAULT) __LINUX__ __TOOLS2_LINUX__'/>
|
|
47 |
|
|
48 |
<set name='INC.COMPILER' value='$(EPOCINCLUDE)/gcc_mingw/gcc_mingw_3_4_2.h'/>
|
|
49 |
|
|
50 |
<set name='OPT.D' value='-D'/>
|
|
51 |
<set name='OPT.L' value='-L'/>
|
|
52 |
<set name='OPT.l' value='-l'/>
|
|
53 |
<set name='OPT.O' value='-o '/>
|
|
54 |
<set name='OPT.PREINCLUDE' value='-include '/>
|
|
55 |
<set name='OPT.SYSTEMINCLUDE' value='-isystem '/>
|
|
56 |
<set name='OPT.USERINCLUDE' value='-I '/>
|
|
57 |
|
|
58 |
<!-- always use stlport headers -->
|
|
59 |
<set name='SYSTEMINCLUDE' value='$(EPOCINCLUDE)/tools/stlport'/>
|
|
60 |
|
|
61 |
<set name='LINKER' value='$(GCC)'/>
|
|
62 |
<set name='LFLAGS' value=''/>
|
|
63 |
<set name='STATICLIBRARY' value='stlport.5.1'/>
|
|
64 |
<set name='LIBS' value=''/>
|
|
65 |
<set name='LIBS.WIN32' value='$(LIBS)'/>
|
|
66 |
<set name='LIBS.LINUX' value='$(LIBS) pthread'/>
|
|
67 |
|
|
68 |
<set name='PLATMACROS.WINDOWS' value='GCC32 TOOLS2 TOOLS2_WINDOWS'/>
|
|
69 |
<set name='PLATMACROS.LINUX' value='GCC32 TOOLS2 TOOLS2_LINUX'/>
|
|
70 |
|
|
71 |
<set name='ARCHIVER' value='$(AR)'/>
|
|
72 |
<set name='AFLAGS' value='cr'/>
|
|
73 |
|
|
74 |
<set name='MMPDEFS' value=''/>
|
|
75 |
<set name='TARGET' value=''/>
|
|
76 |
<set name='TARGETTYPE' value=''/>
|
|
77 |
<set name='BLDINF_OUTPUTPATH' value='$(SBS_BUILD_DIR)'/>
|
|
78 |
|
|
79 |
<set name='OUTPUTPATH' value='$(SBS_BUILD_DIR)'/>
|
|
80 |
<set name='RELEASEPATH' value='$(EPOCROOT)/epoc32/release/tools2$$(TOOLPLATFORMDIR)'/>
|
|
81 |
</var>
|
|
82 |
|
|
83 |
<var name="tools2_deb" extends="tools2_base">
|
|
84 |
<set name='TOOLSPATH' value=''/> <!-- do not install -->
|
|
85 |
<set name='VARIANTTYPE' value='deb'/>
|
|
86 |
|
|
87 |
<append name='CFLAGS' value='-g'/>
|
|
88 |
<append name='CDEFS' value='_DEBUG'/>
|
|
89 |
<append name='RELEASEPATH' value='/deb' separator=''/>
|
|
90 |
</var>
|
|
91 |
|
|
92 |
<var name="tools2_rel" extends="tools2_base">
|
|
93 |
<set name='TOOLSPATH' value='$(EPOCTOOLS)'/> <!-- install -->
|
|
94 |
<set name='VARIANTTYPE' value='rel'/>
|
|
95 |
|
|
96 |
<append name='CFLAGS' value='-s'/>
|
|
97 |
<append name='CDEFS' value='NDEBUG'/>
|
|
98 |
<append name='RELEASEPATH' value='/rel' separator=''/>
|
|
99 |
</var>
|
|
100 |
|
|
101 |
<group name="tools2">
|
|
102 |
<varRef ref='tools2_rel'/>
|
|
103 |
<varRef ref='tools2_deb'/>
|
|
104 |
</group>
|
|
105 |
|
|
106 |
</build>
|