author | Dean Draper <dean.draper@nokia.com> |
Fri, 30 Apr 2010 10:19:33 +0100 | |
branch | fix |
changeset 491 | f60c4282816c |
parent 400 | 554cc189839f |
child 499 | cad3b96a4fb1 |
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)'/> |
|
77 |
<set name='RELEASEPATH' value='$(EPOCROOT)/epoc32/release/tools2$$(TOOLPLATFORMDIR)'/> |
|
78 |
</var> |
|
79 |
||
80 |
<var name="tools2_deb" extends="tools2_base"> |
|
81 |
<set name='TOOLSPATH' value=''/> <!-- do not install --> |
|
82 |
<set name='VARIANTTYPE' value='deb'/> |
|
83 |
||
84 |
<append name='CFLAGS' value='-g'/> |
|
85 |
<append name='CDEFS' value='_DEBUG'/> |
|
86 |
<append name='RELEASEPATH' value='/deb' separator=''/> |
|
87 |
</var> |
|
88 |
||
89 |
<var name="tools2_rel" extends="tools2_base"> |
|
90 |
<set name='TOOLSPATH' value='$(EPOCTOOLS)'/> <!-- install --> |
|
91 |
<set name='VARIANTTYPE' value='rel'/> |
|
92 |
||
93 |
<append name='CFLAGS' value='-s'/> |
|
94 |
<append name='CDEFS' value='NDEBUG'/> |
|
95 |
<append name='RELEASEPATH' value='/rel' separator=''/> |
|
96 |
</var> |
|
97 |
||
98 |
<group name="tools2"> |
|
99 |
<varRef ref='tools2_rel'/> |
|
100 |
<varRef ref='tools2_deb'/> |
|
101 |
</group> |
|
102 |
||
103 |
</build> |