sbsv2/raptor/lib/config/gcc.xml
changeset 713 7b7f0409fc00
parent 674 37ee82a83d43
equal deleted inserted replaced
712:df89378e9223 713:7b7f0409fc00
    13 		<set name='COMPILER' value='$(GCC) -c' type='tool' versionCommand='$(GCC) -v' versionResult='gcc version (3.[456])|(4.[0-9])'/>
    13 		<set name='COMPILER' value='$(GCC) -c' type='tool' versionCommand='$(GCC) -v' versionResult='gcc version (3.[456])|(4.[0-9])'/>
    14 		<set name='LINKER' value='$(GCC)'/>
    14 		<set name='LINKER' value='$(GCC)'/>
    15 
    15 
    16 		<!-- tools and scripts -->
    16 		<!-- tools and scripts -->
    17 		<env name='JAVATC' default='$(JAVA_HOME)/bin/java' type='tool'/> <!-- Java used by Trace Compiler -->
    17 		<env name='JAVATC' default='$(JAVA_HOME)/bin/java' type='tool'/> <!-- Java used by Trace Compiler -->
       
    18 		<env name='JAVA_HOME' default='' type='path'/>		
    18 
    19 
    19 		<!-- targettypes -->
    20 		<!-- targettypes -->
    20 		<set name="TARGET_TYPES" value="exe lib"/>
    21 		<set name="TARGET_TYPES" value="exe lib"/>
    21 
    22 
    22 		<!-- interfaces -->
    23 		<!-- interfaces -->
    26 		<set name="INTERFACE.lib" value="Tools.lib"/>
    27 		<set name="INTERFACE.lib" value="Tools.lib"/>
    27 
    28 
    28 		<!-- link to bld.inf and mmp platform names -->
    29 		<!-- link to bld.inf and mmp platform names -->
    29 		<set name='TRADITIONAL_PLATFORM' value='TOOLS2'/>
    30 		<set name='TRADITIONAL_PLATFORM' value='TOOLS2'/>
    30 
    31 
    31 		<!-- Java used by Trace Compiler -->
       
    32 		<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'/>
    32 		<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'/>
    33 		<env name='JAVA_HOME' default='' type='path'/>		
    33 		
    34 		<set name='VARIANTPLATFORM' value='tools2'/>
    34 		<set name='VARIANTPLATFORM' value='tools2'/>
    35 
    35 
    36 		<!-- msys based programs sometimes don't search the path properly.
    36 		<!-- COMPILER_PATH can be set to tell gcc where to find as.exe (sometimes it doesn't and a build step fails). -->
    37 		COMPILER_PATH can be set to tell gcc where to find
       
    38 		as.exe (sometimes it doesn't and a build step fails).
       
    39 		-->
       
    40 		<set name='COMPILER_PATH.WIN32' value='$(SBS_HOME)/win32/mingw/bin'/>
    37 		<set name='COMPILER_PATH.WIN32' value='$(SBS_HOME)/win32/mingw/bin'/>
    41 		<set name='COMPILER_PATH.LINUX' value=''/>
    38 		<set name='COMPILER_PATH.LINUX' value=''/>
    42 
    39 
    43 		<set name='CFLAGS.WIN32' value=''/>
    40 		<set name='CFLAGS.WIN32' value=''/>
    44 
    41 
    57 		<set name='OPT.PREINCLUDE' value='-include '/>
    54 		<set name='OPT.PREINCLUDE' value='-include '/>
    58 		<set name='OPT.SYSTEMINCLUDE' value='-isystem '/>
    55 		<set name='OPT.SYSTEMINCLUDE' value='-isystem '/>
    59 		<set name='OPT.USERINCLUDE' value='-I '/>
    56 		<set name='OPT.USERINCLUDE' value='-I '/>
    60 
    57 
    61 		<!-- always use stlport headers -->
    58 		<!-- always use stlport headers -->
    62 		<set name='SYSTEMINCLUDE' value='$(EPOCINCLUDE)/tools/stlport'/>
    59 		<env name='SBS_STLPORTINCDIR' default='$(EPOCINCLUDE)/tools/stlport' type='path'/>
       
    60 		<set name='SYSTEMINCLUDE' value='$(SBS_STLPORTINCDIR)'/>
    63 
    61 
    64 		<set name='LFLAGS' value=''/>
    62 		<set name='LFLAGS' value=''/>
    65 		<set name='STATICLIBRARY' value='stlport.5.1'/>
    63 		<set name='STATICLIBRARY' value=''/>
    66 		<set name='LIBS' value=''/>
    64 		<set name='LIBS' value=''/>
    67 		<set name='LIBS.WIN32' value='$(LIBS)'/>
    65 		<set name='LIBS.WIN32' value='$(LIBS)'/>
    68 		<set name='LIBS.LINUX' value='$(LIBS) pthread'/>
    66 		<set name='LIBS.LINUX' value='$(LIBS) pthread'/>
    69 
    67 
    70 		<set name='PLATMACROS.WINDOWS' value='GCC32 TOOLS2 TOOLS2_WINDOWS'/>
    68 		<set name='PLATMACROS.WINDOWS' value='GCC32 TOOLS2 TOOLS2_WINDOWS'/>
    77 		<set name='TARGET' value=''/>
    75 		<set name='TARGET' value=''/>
    78 		<set name='TARGETTYPE' value=''/>
    76 		<set name='TARGETTYPE' value=''/>
    79 		<set name='BLDINF_OUTPUTPATH' value='$(SBS_BUILD_DIR)'/>
    77 		<set name='BLDINF_OUTPUTPATH' value='$(SBS_BUILD_DIR)'/>
    80 
    78 
    81 		<set name='OUTPUTPATH' value='$(SBS_BUILD_DIR)'/>
    79 		<set name='OUTPUTPATH' value='$(SBS_BUILD_DIR)'/>
    82 		<set name='RELEASEPATH' value='$(EPOCROOT)/epoc32/release/tools2' host='win.*'/>
    80 		<env name='SBS_STLPORTBINDIR' default='$(EPOCROOT)/epoc32/release/tools2' host='win.*' type='path'/>
    83 		<set name='RELEASEPATH' value='$(EPOCROOT)/epoc32/release/tools2/$(HOSTPLATFORM_DIR)' host='lin.*'/>
    81 		<env name='SBS_STLPORTBINDIR' default='$(EPOCROOT)/epoc32/release/tools2/$(HOSTPLATFORM32_DIR)' host='lin.*' type='path'/>
       
    82 		<set name='STLPORTBINDIR' value='$(SBS_STLPORTBINDIR)'/>
       
    83 		<set name='STLPORTLIBRARY' value='stlport.5.1'/>
       
    84 		<set name='RELEASEPATH' value='$(EPOCROOT)/epoc32/release/tools2' host='win.*' type='path'/>
       
    85 		<!-- Tools are 32-bit at the moment, so use the 32-bit directory -->
       
    86 		<set name='RELEASEPATH' value='$(EPOCROOT)/epoc32/release/tools2/$(HOSTPLATFORM32_DIR)' host='lin.*' type='path'/>
    84 	</var>
    87 	</var>
    85 
    88 
    86 	<var name="t_deb">
    89 	<var name="t_deb">
    87 		<set name='TOOLSPATH' value=''/> <!-- do not install -->
    90 		<set name='TOOLSPATH' value=''/> <!-- do not install -->
    88 		<set name='VARIANTTYPE' value='deb'/>
    91 		<set name='VARIANTTYPE' value='deb'/>
    89 
    92 
    90 		<append name='CFLAGS' value='-g'/>
    93 		<append name='CFLAGS' value='-g'/>
    91 		<append name='CDEFS' value='_DEBUG'/>
    94 		<append name='CDEFS' value='_DEBUG'/>
    92 		<append name='RELEASEPATH' value='/deb' separator=''/>
    95 		<append name='RELEASEPATH' value='/deb' separator=''/>
       
    96 		<append name='STLPORTBINDIR' value='/deb' separator=''/>		
    93 	</var>
    97 	</var>
    94 	<alias name="tools2_deb" meaning="tools2_base.t_deb"/>
    98 	<alias name="tools2_deb" meaning="tools2_base.t_deb"/>
    95 	
    99 	
    96 	<var name="t_rel">
   100 	<var name="t_rel">
    97 		<set name='TOOLSPATH' value='$(EPOCROOT)/epoc32/tools'/> <!-- install -->
   101 		<set name='TOOLSPATH' value='$(EPOCROOT)/epoc32/tools'/> <!-- install -->
    98 		<set name='VARIANTTYPE' value='rel'/>
   102 		<set name='VARIANTTYPE' value='rel'/>
    99 
   103 
   100 		<append name='CFLAGS' value='-s'/>
   104 		<append name='CFLAGS' value='-s'/>
   101 		<append name='CDEFS' value='NDEBUG'/>
   105 		<append name='CDEFS' value='NDEBUG'/>
   102 		<append name='RELEASEPATH' value='/rel' separator=''/>
   106 		<append name='RELEASEPATH' value='/rel' separator=''/>
       
   107 		<append name='STLPORTBINDIR' value='/rel' separator=''/>		
   103 	</var>
   108 	</var>
   104 	<alias name="tools2_rel" meaning="tools2_base.t_rel"/>
   109 	<alias name="tools2_rel" meaning="tools2_base.t_rel"/>
   105 	
   110 	
   106 	<group name="tools2">
   111 	<group name="tools2">
   107 		<aliasRef ref='tools2_rel'/>
   112 		<aliasRef ref='tools2_rel'/>