author | yiluzhu |
Tue, 25 May 2010 10:23:35 +0100 | |
branch | fix |
changeset 570 | 971d2c670e06 |
parent 502 | b4aaa46b1beb |
permissions | -rw-r--r-- |
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"> |
|
400
554cc189839f
Support for resolving, on Windows only, <env/> 'tool' and 'toolchain' type paths with spaces.
Jon Chatten
parents:
3
diff
changeset
|
3 |
<!-- build variants for GCC toolchains --> |
3 | 4 |
<var name="tools2_base" extends="root"> |
5 |
<varRef ref="default.interfaces"/> |
|
6 |
<varRef ref="default.locations"/> |
|
400
554cc189839f
Support for resolving, on Windows only, <env/> 'tool' and 'toolchain' type paths with spaces.
Jon Chatten
parents:
3
diff
changeset
|
7 |
|
554cc189839f
Support for resolving, on Windows only, <env/> 'tool' and 'toolchain' type paths with spaces.
Jon Chatten
parents:
3
diff
changeset
|
8 |
<!-- toolchain tools --> |
3 | 9 |
<env name='RANLIB' default='$(GCCPREFIX)ranlib$(DOTEXE)' type='tool'/> |
10 |
<env name='GCC' default='$(GCCPREFIX)g++$(DOTEXE)' type='tool'/> |
|
11 |
<env name='AR' default='$(GCCPREFIX)ar$(DOTEXE)' type='tool'/> |
|
400
554cc189839f
Support for resolving, on Windows only, <env/> 'tool' and 'toolchain' type paths with spaces.
Jon Chatten
parents:
3
diff
changeset
|
12 |
|
554cc189839f
Support for resolving, on Windows only, <env/> 'tool' and 'toolchain' type paths with spaces.
Jon Chatten
parents:
3
diff
changeset
|
13 |
<set name='COMPILER' value='$(GCC) -c' type='tool' versionCommand='$(GCC) -v' versionResult='gcc version (3.[456])|(4.[0-9])'/> |
554cc189839f
Support for resolving, on Windows only, <env/> 'tool' and 'toolchain' type paths with spaces.
Jon Chatten
parents:
3
diff
changeset
|
14 |
<set name='LINKER' value='$(GCC)'/> |
554cc189839f
Support for resolving, on Windows only, <env/> 'tool' and 'toolchain' type paths with spaces.
Jon Chatten
parents:
3
diff
changeset
|
15 |
|
554cc189839f
Support for resolving, on Windows only, <env/> 'tool' and 'toolchain' type paths with spaces.
Jon Chatten
parents:
3
diff
changeset
|
16 |
<!-- tools and scripts --> |
554cc189839f
Support for resolving, on Windows only, <env/> 'tool' and 'toolchain' type paths with spaces.
Jon Chatten
parents:
3
diff
changeset
|
17 |
<env name='JAVATC' default='$(JAVA_HOME)/bin/java' type='tool'/> <!-- Java used by Trace Compiler --> |
3 | 18 |
|
19 |
<!-- interfaces --> |
|
20 |
<set name="INTERFACE.exe" value="Tools.exe"/> |
|
21 |
<set name="INTERFACE.lib" value="Tools.lib"/> |
|
22 |
||
23 |
<!-- link to bld.inf and mmp platform names --> |
|
24 |
<set name='TRADITIONAL_PLATFORM' value='TOOLS2'/> |
|
400
554cc189839f
Support for resolving, on Windows only, <env/> 'tool' and 'toolchain' type paths with spaces.
Jon Chatten
parents:
3
diff
changeset
|
25 |
|
554cc189839f
Support for resolving, on Windows only, <env/> 'tool' and 'toolchain' type paths with spaces.
Jon Chatten
parents:
3
diff
changeset
|
26 |
<!-- Java used by Trace Compiler --> |
554cc189839f
Support for resolving, on Windows only, <env/> 'tool' and 'toolchain' type paths with spaces.
Jon Chatten
parents:
3
diff
changeset
|
27 |
<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'/> |
554cc189839f
Support for resolving, on Windows only, <env/> 'tool' and 'toolchain' type paths with spaces.
Jon Chatten
parents:
3
diff
changeset
|
28 |
<env name='JAVA_HOME' default='' type='path'/> |
3 | 29 |
<set name='VARIANTPLATFORM' value='tools2'/> |
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 |
<set name='CDEFS.DEFAULT' value='__SYMBIAN32__ __TOOLS__ __TOOLS2__ __EXE__ __SUPPORT_CPP_EXCEPTIONS__ __PRODUCT_INCLUDE__="$(PRODUCT_INCLUDE)"'/> |
|
43 |
<set name='CDEFS.WIN32' value='$(CDEFS.DEFAULT) _WIN32 WIN32 _WINDOWS __TOOLS2_WINDOWS__'/> |
|
44 |
<set name='CDEFS.LINUX' value='$(CDEFS.DEFAULT) __LINUX__ __TOOLS2_LINUX__'/> |
|
45 |
||
46 |
<set name='INC.COMPILER' value='$(EPOCINCLUDE)/gcc_mingw/gcc_mingw_3_4_2.h'/> |
|
47 |
||
48 |
<set name='OPT.D' value='-D'/> |
|
49 |
<set name='OPT.L' value='-L'/> |
|
50 |
<set name='OPT.l' value='-l'/> |
|
51 |
<set name='OPT.O' value='-o '/> |
|
52 |
<set name='OPT.PREINCLUDE' value='-include '/> |
|
53 |
<set name='OPT.SYSTEMINCLUDE' value='-isystem '/> |
|
54 |
<set name='OPT.USERINCLUDE' value='-I '/> |
|
55 |
||
56 |
<!-- always use stlport headers --> |
|
57 |
<set name='SYSTEMINCLUDE' value='$(EPOCINCLUDE)/tools/stlport'/> |
|
58 |
||
59 |
<set name='LFLAGS' value=''/> |
|
60 |
<set name='STATICLIBRARY' value='stlport.5.1'/> |
|
61 |
<set name='LIBS' value=''/> |
|
62 |
<set name='LIBS.WIN32' value='$(LIBS)'/> |
|
63 |
<set name='LIBS.LINUX' value='$(LIBS) pthread'/> |
|
64 |
||
65 |
<set name='PLATMACROS.WINDOWS' value='GCC32 TOOLS2 TOOLS2_WINDOWS'/> |
|
66 |
<set name='PLATMACROS.LINUX' value='GCC32 TOOLS2 TOOLS2_LINUX'/> |
|
67 |
||
68 |
<set name='ARCHIVER' value='$(AR)'/> |
|
69 |
<set name='AFLAGS' value='cr'/> |
|
70 |
||
71 |
<set name='MMPDEFS' value=''/> |
|
72 |
<set name='TARGET' value=''/> |
|
73 |
<set name='TARGETTYPE' value=''/> |
|
74 |
<set name='BLDINF_OUTPUTPATH' value='$(SBS_BUILD_DIR)'/> |
|
75 |
||
76 |
<set name='OUTPUTPATH' value='$(SBS_BUILD_DIR)'/> |
|
502
b4aaa46b1beb
refactor tools2 for --query
Richard Taylor <richard.i.taylor@nokia.com>
parents:
499
diff
changeset
|
77 |
<set name='RELEASEPATH' value='$(EPOCROOT)/epoc32/release/tools2' host='win.*'/> |
b4aaa46b1beb
refactor tools2 for --query
Richard Taylor <richard.i.taylor@nokia.com>
parents:
499
diff
changeset
|
78 |
<set name='RELEASEPATH' value='$(EPOCROOT)/epoc32/release/tools2/$(HOSTPLATFORM_DIR)' host='lin.*'/> |
3 | 79 |
</var> |
80 |
||
499
cad3b96a4fb1
refactoring for --query
Richard Taylor <richard.i.taylor@nokia.com>
parents:
400
diff
changeset
|
81 |
<var name="t_deb"> |
3 | 82 |
<set name='TOOLSPATH' value=''/> <!-- do not install --> |
83 |
<set name='VARIANTTYPE' value='deb'/> |
|
84 |
||
85 |
<append name='CFLAGS' value='-g'/> |
|
86 |
<append name='CDEFS' value='_DEBUG'/> |
|
87 |
<append name='RELEASEPATH' value='/deb' separator=''/> |
|
88 |
</var> |
|
499
cad3b96a4fb1
refactoring for --query
Richard Taylor <richard.i.taylor@nokia.com>
parents:
400
diff
changeset
|
89 |
<alias name="tools2_deb" meaning="tools2_base.t_deb"/> |
cad3b96a4fb1
refactoring for --query
Richard Taylor <richard.i.taylor@nokia.com>
parents:
400
diff
changeset
|
90 |
|
cad3b96a4fb1
refactoring for --query
Richard Taylor <richard.i.taylor@nokia.com>
parents:
400
diff
changeset
|
91 |
<var name="t_rel"> |
3 | 92 |
<set name='TOOLSPATH' value='$(EPOCTOOLS)'/> <!-- install --> |
93 |
<set name='VARIANTTYPE' value='rel'/> |
|
94 |
||
95 |
<append name='CFLAGS' value='-s'/> |
|
96 |
<append name='CDEFS' value='NDEBUG'/> |
|
97 |
<append name='RELEASEPATH' value='/rel' separator=''/> |
|
98 |
</var> |
|
499
cad3b96a4fb1
refactoring for --query
Richard Taylor <richard.i.taylor@nokia.com>
parents:
400
diff
changeset
|
99 |
<alias name="tools2_rel" meaning="tools2_base.t_rel"/> |
cad3b96a4fb1
refactoring for --query
Richard Taylor <richard.i.taylor@nokia.com>
parents:
400
diff
changeset
|
100 |
|
3 | 101 |
<group name="tools2"> |
499
cad3b96a4fb1
refactoring for --query
Richard Taylor <richard.i.taylor@nokia.com>
parents:
400
diff
changeset
|
102 |
<aliasRef ref='tools2_rel'/> |
cad3b96a4fb1
refactoring for --query
Richard Taylor <richard.i.taylor@nokia.com>
parents:
400
diff
changeset
|
103 |
<aliasRef ref='tools2_deb'/> |
3 | 104 |
</group> |
105 |
||
106 |
</build> |