3 <!-- GCCE build variant for ARM compilers --> |
3 <!-- GCCE build variant for ARM compilers --> |
4 <!-- This is called gcce_base in case someone wants to use "gcce" as a configuration name --> |
4 <!-- This is called gcce_base in case someone wants to use "gcce" as a configuration name --> |
5 <var name="gcce_base"> |
5 <var name="gcce_base"> |
6 <set name="TOOLCHAIN" value="GCCE"/> |
6 <set name="TOOLCHAIN" value="GCCE"/> |
7 <set name="PLATMACROS.TOOLCHAIN" value="GCCE"/> |
7 <set name="PLATMACROS.TOOLCHAIN" value="GCCE"/> |
8 <set name="CC" value="$(GCCECC)"/> |
8 |
9 <set name="LD" value="$(GCCELD)"/> |
|
10 <set name="ASM" value="$(GCCEASM)"/> |
|
11 <set name="AR" value="$(GCCEAR)"/> |
|
12 <set name="GCCECC" value="$(GCCEBIN)/arm-none-symbianelf-g++$(DOTEXE)"/> |
9 <set name="GCCECC" value="$(GCCEBIN)/arm-none-symbianelf-g++$(DOTEXE)"/> |
13 <set name="GCCELD" value="$(GCCEBIN)/arm-none-symbianelf-g++$(DOTEXE)"/> |
10 <set name="GCCELD" value="$(GCCEBIN)/arm-none-symbianelf-g++$(DOTEXE)"/> |
14 <set name="GCCEASM" value="$(GCCEBIN)/arm-none-symbianelf-as$(DOTEXE)"/> |
11 <set name="GCCEASM" value="$(GCCEBIN)/arm-none-symbianelf-as$(DOTEXE)"/> |
15 <set name="GCCEAR" value="$(GCCEBIN)/arm-none-symbianelf-ar$(DOTEXE)"/> |
12 <set name="GCCEAR" value="$(GCCEBIN)/arm-none-symbianelf-ar$(DOTEXE)"/> |
16 <set name="FROMELF" value="$(GCCEBIN)/arm-none-symbianelf-readelf$(DOTEXE)"/> |
13 <set name="FROMELF" value="$(GCCEBIN)/arm-none-symbianelf-readelf$(DOTEXE)"/> |
|
14 |
|
15 <set name="CC" value="$(GCCECC)"/> |
|
16 <set name="LD" value="$(GCCELD)"/> |
|
17 <set name="ASM" value="$(GCCEASM)"/> |
|
18 <set name="AR" value="$(GCCEAR)"/> |
|
19 |
17 <set name="AAPCS_OPTION" value="-mapcs -mthumb-interwork"/> |
20 <set name="AAPCS_OPTION" value="-mapcs -mthumb-interwork"/> |
18 <set name="ARCHIVER_CREATE_OPTION" value="cr"/> |
21 <set name="ARCHIVER_CREATE_OPTION" value="cr"/> |
19 <set name="ARM_INSTRUCTION_SET" value="-marm"/> |
22 <set name="ARM_INSTRUCTION_SET" value="-marm"/> |
|
23 <set name="ARMLIBS" value=""/> |
20 <set name="ASM_OUTPUT_OPTION" value="-o"/> |
24 <set name="ASM_OUTPUT_OPTION" value="-o"/> |
21 <set name="ASSEMBLER_LISTING_OPTION" value="-S"/> |
25 <set name="ASSEMBLER_LISTING_OPTION" value="-S"/> |
22 <set name="BPABI_OPTION" value=""/> |
26 <set name="BPABI_OPTION" value=""/> |
23 <set name="CC_ERRORS_CONTROL_OPTION" value=""/> |
|
24 <set name="CC_WARNINGS_CONTROL_OPTION" value="-Wall -Wno-unknown-pragmas"/> |
|
25 <set name="C_LANG_OPTION" value="-x c"/> |
27 <set name="C_LANG_OPTION" value="-x c"/> |
26 <set name="COMMANDFILE_OPTION" value="@"/> |
28 <set name="CC.ARMV5" value="-march=armv5t"/> |
27 <set name="COMPILE_ONLY_OPTION" value="-c"/> |
29 <set name="CC.ARMV6" value="-march=armv6t2"/> |
28 <set name="CPP_LANG_OPTION" value="-x c++ -Wno-ctor-dtor-privacy"/> |
30 <set name="CC.ARMV7" value="-march=armv7"/> |
29 <set name="DEBUG_OPTIMISATION" value="-O0"/> |
|
30 <set name="DEPEND_OPTION" value="-MD -MF"/> |
|
31 <set name="ENUM_OPTION" value=""/> |
|
32 <set name="EXPORT_VTBL_OPTION" value=""/> |
|
33 <set name="EXTRA_LD_OPTION" value=""/> |
|
34 <set name="FPMODE_OPTION" value=""/> |
|
35 <set name="LD_ERRORS_CONTROL_OPTION" value=""/> |
|
36 <set name="LD_WARNINGS_CONTROL_OPTION" value="-Wl,--no-undefined"/> |
|
37 <set name="LISTING_OPTION" value="-S"/> |
|
38 <set name="EXCEPTIONS" value="-fexceptions"/> |
|
39 <set name="NO_EXCEPTIONS" value="-fno-exceptions"/> |
|
40 <set name="PREINCLUDE_OPTION" value="-include"/> |
|
41 <set name="PREPROCESSOR_OPTION" value="-E"/> |
|
42 <set name="REL_OPTIMISATION" value="-O2"/> |
|
43 <set name="STDLIB_OPTION" value="-nodefaultlibs"/> |
|
44 <set name="RUNTIME_SYMBOL_VISIBILITY_OPTION" value=""/> |
|
45 <set name="RW_BASE_OPTION" value="-Wl,-Tdata,"/> |
|
46 <set name="RW_BASE" value="$(RW_BASE_OPTION)0x400000"/> |
|
47 <set name="CODE_SEGMENT_START" value="-Ttext"/> |
|
48 <set name="PREINCLUDE" value="$(EPOCINCLUDE)/gcce/gcce.h"/> |
|
49 <!-- From the GCC manual: "With this option, GCC uses features of DWARF version 3 when they are useful; ..." --> |
31 <!-- From the GCC manual: "With this option, GCC uses features of DWARF version 3 when they are useful; ..." --> |
50 <!-- There is no -gdwarf-3 option; hence CC.DWARF2 and CC.DWARF3 have the same value. --> |
32 <!-- There is no -gdwarf-3 option; hence CC.DWARF2 and CC.DWARF3 have the same value. --> |
51 <set name="CC.DWARF2" value="-gdwarf-2"/> |
33 <set name="CC.DWARF2" value="-gdwarf-2"/> |
52 <set name="CC.DWARF3" value="-gdwarf-2"/> |
34 <set name="CC.DWARF3" value="-gdwarf-2"/> |
53 <set name="LD.ARMV5" value=""/> |
35 <set name="CC.NO_UNALIGNED_ACCESS" value=""/> |
54 <set name="LD.ARMV6" value=""/> |
36 <set name="CC.SOFTVFP_MAYBE_VFPV2" value="soft"/> |
55 <set name="LD.ARMV7" value=""/> |
37 <set name="CC.SOFTVFP_MAYBE_VFPV3" value="soft"/> |
|
38 <set name="CC_ERRORS_CONTROL_OPTION" value=""/> |
|
39 <set name="CC_WARNINGS_CONTROL_OPTION" value="-Wall -Wno-unknown-pragmas"/> |
56 <set name="CFLAGS" value=""/> |
40 <set name="CFLAGS" value=""/> |
57 <set name="CIADEFS" value="__CIA__"/> |
41 <set name="CIADEFS" value="__CIA__"/> |
58 <append name="CDEFS" value='__SUPPORT_CPP_EXCEPTIONS__ _UNICODE __SYMBIAN32__ __GCCE__ __EPOC32__ __MARM__ __EABI__ __PRODUCT_INCLUDE__="$(PRODUCT_INCLUDE)" $(MMPDEFS) $(ARMMACROS)'/> |
42 <set name="CODE_SEGMENT_START" value="-Ttext"/> |
59 <!-- Note that the intention of ABLD for CIA compilation seems to be "-S -Wa,-adln", although this doesn't work --> |
43 <set name="COMMANDFILE_OPTION" value="@"/> |
|
44 <set name="COMPILE_ONLY_OPTION" value="-c"/> |
60 <set name="COMPILER_CIA_FLAGS" value="-marm"/> |
45 <set name="COMPILER_CIA_FLAGS" value="-marm"/> |
61 <set name="COMPILER_DEFINES" value="-D__GCCE__"/> |
46 <set name="COMPILER_DEFINES" value="-D__GCCE__"/> |
62 <set name="COMPILER_FPU_OPTION" value="-mfloat-abi="/> |
47 <set name="COMPILER_FPU_OPTION" value="-mfloat-abi="/> |
63 <set name="COMPILER_INTERWORK_DEFINES" value="__MARM_INTERWORK__"/> |
48 <set name="COMPILER_INTERWORK_DEFINES" value="__MARM_INTERWORK__"/> |
64 <set name="COMPILER_SYSTEM_INCLUDE_OPTION" value="-I"/> |
49 <set name="COMPILER_SYSTEM_INCLUDE_OPTION" value="-I"/> |
65 <set name="COMPILER_THUMB_DEFINES" value="__MARM_THUMB__"/> |
50 <set name="COMPILER_THUMB_DEFINES" value="__MARM_THUMB__"/> |
|
51 <set name="CPP_LANG_OPTION" value="-x c++ -Wno-ctor-dtor-privacy"/> |
66 <set name="DATA_SEGMENT_START" value="$(SPLIT_OPTION) $(RW_BASE_OPTION)"/> |
52 <set name="DATA_SEGMENT_START" value="$(SPLIT_OPTION) $(RW_BASE_OPTION)"/> |
|
53 <set name="DEBUG_OPTIMISATION" value="-O0"/> |
|
54 <set name="DEPEND_OPTION" value="-MD -MF"/> |
|
55 <set name="ENUM_OPTION" value=""/> |
|
56 <set name="EXCEPTIONS" value="-fexceptions"/> |
|
57 <set name="EXPORT_VTBL_OPTION" value=""/> |
67 <set name="EXTRA_CC_OPTION" value=""/> |
58 <set name="EXTRA_CC_OPTION" value=""/> |
|
59 <set name="EXTRA_LD_OPTION" value=""/> |
|
60 <set name="FPMODE_OPTION" value=""/> |
68 <set name="HEADER_FILES_CONTROL_OPTION" value=""/> |
61 <set name="HEADER_FILES_CONTROL_OPTION" value=""/> |
|
62 <set name="INSTRUCTION_SET" value=""/> |
|
63 <set name="KERNEL_STATIC_RUNTIME_LIB" value="ksrt3_1.lib"/> |
|
64 <set name="LD.ARMV5" value=""/> |
|
65 <set name="LD.ARMV6" value=""/> |
|
66 <set name="LD.ARMV7" value=""/> |
|
67 <set name="LD_ERRORS_CONTROL_OPTION" value=""/> |
|
68 <set name="LD_WARNINGS_CONTROL_OPTION" value="-Wl,--no-undefined"/> |
69 <set name="LIBPATH" value=""/> |
69 <set name="LIBPATH" value=""/> |
70 <set name="LIBRARY" value=""/> |
70 <set name="LIBRARY" value=""/> |
71 <set name="LICENSERETRY_OPTION" value=""/> |
71 <set name="LICENSERETRY_OPTION" value=""/> |
72 <set name="LINKER_ADD_STATIC_RUNTIME" value="1"/> |
72 <set name="LINKER_ADD_STATIC_RUNTIME" value="1"/> |
73 <set name="LINKER_DEBUG_OPTION" value=""/> |
73 <set name="LINKER_DEBUG_OPTION" value=""/> |
74 <!-- Clearly the linker libs stuff following isn't right - need to use ARMLIBS (or reinvent this a bit) --> |
74 <set name="LINKER_DEFAULT_LIB_PATHS" value=""/> |
75 <set name="LINKER_DEFAULT_LIBS" value="-lsupc++ -lgcc"/> |
75 <set name="LINKER_DEFAULT_LIBS" value="-lsupc++ -lgcc"/> |
76 <set name="LINKER_DEFAULT_LIB_PATHS" value=""/> |
|
77 <set name="LINKER_ENTRY_OPTION" value="-Wl,--entry"/> |
76 <set name="LINKER_ENTRY_OPTION" value="-Wl,--entry"/> |
|
77 <set name="LINKER_GROUP_END_OPTION" value="--end-group"/> |
78 <set name="LINKER_GROUP_START_OPTION" value="--start-group"/> |
78 <set name="LINKER_GROUP_START_OPTION" value="--start-group"/> |
79 <set name="LINKER_GROUP_END_OPTION" value="--end-group"/> |
|
80 <set name="LINKER_MISC_FLAGS" value="-Wl,$(CODE_SEGMENT_START),0x8000"/> |
79 <set name="LINKER_MISC_FLAGS" value="-Wl,$(CODE_SEGMENT_START),0x8000"/> |
81 <set name="LINKER_NODEBUG_OPTION" value = "-Wl,--strip-debug"/> |
80 <set name="LINKER_NODEBUG_OPTION" value = "-Wl,--strip-debug"/> |
82 <set name="LINKER_SCRIPT_FILE_OPTION" value="-T"/> |
81 <set name="LINKER_SCRIPT_FILE_OPTION" value="-T"/> |
|
82 <set name="LINKER_SYMBOLS_FILE_OPTION" value="-Wl,-Map"/> |
83 <set name="LINKER_SYMBOLS_OPTION" value=""/> |
83 <set name="LINKER_SYMBOLS_OPTION" value=""/> |
84 <set name="LINKER_SYMBOLS_FILE_OPTION" value="-Wl,-Map"/> |
84 <set name="LISTING_OPTION" value="-S"/> |
|
85 <set name="NEED_ENTRYPOINT_LIBRARY" value="" /> |
|
86 <set name="NEED_ENTRYPOINT_LIBRARY" value=""/> |
|
87 <set name="NO_EXCEPTIONS" value="-fno-exceptions"/> |
|
88 <set name="NO_UNALIGNED_ACCESS" value="$(CC.NO_UNALIGNED_ACCESS)"/> |
|
89 <set name="OWN_LIBRARY_OPTION" value=""/> |
|
90 <set name="PL.SOFTVFP_MAYBE_VFPV2" value="softvfp"/> |
|
91 <set name="PL.SOFTVFP_MAYBE_VFPV3" value="softvfp"/> |
|
92 <set name="PREINCLUDE" value="$(EPOCINCLUDE)/gcce/gcce.h"/> |
|
93 <set name="PREINCLUDE_OPTION" value="-include"/> |
|
94 <set name="PREPROCESSOR_OPTION" value="-E"/> |
|
95 <set name="REL_OPTIMISATION" value="-O2"/> |
|
96 <set name="RELOCATABLE_IMAGE_OPTION" value=""/> |
|
97 <set name="RUNTIME_SYMBOL_VISIBILITY_OPTION" value=""/> |
|
98 <set name="RVCTBIN" value="" /> |
|
99 <set name="RVCTINC" value="" /> |
|
100 <set name="RVCTLIB" value=""/> |
|
101 <set name="RW_BASE" value="$(RW_BASE_OPTION)0x400000"/> |
|
102 <set name="RW_BASE_OPTION" value="-Wl,-Tdata,"/> |
85 <set name="SHARED_OBJECT_OPTION" value="-Wl,-shared"/> |
103 <set name="SHARED_OBJECT_OPTION" value="-Wl,-shared"/> |
86 <set name="SID" value=""/> |
104 <set name="SID" value=""/> |
87 <set name="SO_NAME_OPTION" value="-Wl,-soname"/> |
105 <set name="SO_NAME_OPTION" value="-Wl,-soname"/> |
|
106 <set name="SPLIT_OPTION" value=""/> |
|
107 <set name="STATIC_LIBS_LIST" value=""/> |
88 <set name="STATIC_LIBS_PATH" value="" /> |
108 <set name="STATIC_LIBS_PATH" value="" /> |
89 <set name="STDCPP_INCLUDE" value="$(EPOCINCLUDE)/stdapis"/> |
109 <set name="STDCPP_INCLUDE" value="$(EPOCINCLUDE)/stdapis"/> |
|
110 <set name="STDLIB_OPTION" value="-nodefaultlibs"/> |
90 <set name="SUPPORTS_ABIV1_IMPLIBS" value=""/> |
111 <set name="SUPPORTS_ABIV1_IMPLIBS" value=""/> |
91 <set name="SYMBIAN_LD_MESSAGE_OPTION" value="$(LD_WARNINGS_CONTROL_OPTION) $(LD_ERRORS_CONTROL_OPTION)"/> |
112 <set name="SYMBIAN_LD_MESSAGE_OPTION" value="$(LD_WARNINGS_CONTROL_OPTION) $(LD_ERRORS_CONTROL_OPTION)"/> |
|
113 <set name="SYMVER_OPTION" value="-Wl,--default-symver"/> |
92 <set name="TARGET_RELOCATION_OPTION" value="--target1-rel" /> |
114 <set name="TARGET_RELOCATION_OPTION" value="--target1-rel" /> |
93 <set name="SYMVER_OPTION" value="-Wl,--default-symver"/> |
|
94 <set name="TEMP_FILES_OPTION" value="-pipe"/> |
115 <set name="TEMP_FILES_OPTION" value="-pipe"/> |
95 <set name="THUMB_INSTRUCTION_SET" value="-mthumb"/> |
116 <set name="THUMB_INSTRUCTION_SET" value="-mthumb"/> |
96 <set name="TRANSFORM_CIA" value=""/> |
117 <set name="TRANSFORM_CIA" value=""/> |
97 <set name="INSTRUCTION_SET" value=""/> |
|
98 <set name="UNDEFINED_SYMBOL_REF_OPTION" value="-u"/> |
118 <set name="UNDEFINED_SYMBOL_REF_OPTION" value="-u"/> |
99 <set name="UNRESOLVED_SYMBOL_REF_OPTION" value=""/> |
119 <set name="UNRESOLVED_SYMBOL_REF_OPTION" value=""/> |
|
120 <set name="USER_LIBS_PATH_OPTION" value="--userlibpath"/> |
|
121 <set name="USER_STATIC_RUNTIME_LIB" value="usrt3_1.lib"/> |
100 <set name="USERINCLUDE" value=""/> |
122 <set name="USERINCLUDE" value=""/> |
101 <set name="USER_LIBS_PATH_OPTION" value="--userlibpath"/> |
|
102 <set name="VFE_OPTION" value=""/> |
123 <set name="VFE_OPTION" value=""/> |
103 <set name="NO_UNALIGNED_ACCESS" value="$(CC.NO_UNALIGNED_ACCESS)"/> |
124 |
104 <set name="OWN_LIBRARY_OPTION" value=""/> |
125 <append name="CDEFS" value='__SUPPORT_CPP_EXCEPTIONS__ _UNICODE __SYMBIAN32__ __GCCE__ __EPOC32__ __MARM__ __EABI__ __PRODUCT_INCLUDE__="$(PRODUCT_INCLUDE)" $(MMPDEFS) $(ARMMACROS)'/> |
105 <set name="STATIC_LIBS_LIST" value=""/> |
|
106 <set name="ARMLIBS" value=""/> |
|
107 <set name="CC.SOFTVFP_MAYBE_VFPV2" value="soft"/> |
|
108 <set name="PL.SOFTVFP_MAYBE_VFPV2" value="softvfp"/> |
|
109 <set name="CC.SOFTVFP_MAYBE_VFPV3" value="soft"/> |
|
110 <set name="PL.SOFTVFP_MAYBE_VFPV3" value="softvfp"/> |
|
111 <set name="CC.ARMV5" value="-march=armv5t"/> |
|
112 <set name="CC.ARMV6" value="-march=armv6t2"/> |
|
113 <set name="CC.ARMV7" value="-march=armv7"/> |
|
114 <set name="RELOCATABLE_IMAGE_OPTION" value=""/> |
|
115 <set name="RVCTLIB" value=""/> |
|
116 <set name="CC.NO_UNALIGNED_ACCESS" value=""/> |
|
117 <set name="SPLIT_OPTION" value=""/> |
|
118 <set name="NEED_ENTRYPOINT_LIBRARY" value=""/> |
|
119 <set name="RVCTBIN" value="" /> |
|
120 <set name="RVCTINC" value="" /> |
|
121 <set name="USER_STATIC_RUNTIME_LIB" value="usrt3_1.lib"/> |
|
122 <set name="KERNEL_STATIC_RUNTIME_LIB" value="ksrt3_1.lib"/> |
|
123 <set name="NEED_ENTRYPOINT_LIBRARY" value="" /> |
|
124 </var> |
126 </var> |
125 </build> |
127 </build> |