-
Notifications
You must be signed in to change notification settings - Fork 194
/
Copy pathtizen-toolchain.xml
121 lines (105 loc) · 3.87 KB
/
tizen-toolchain.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<xml>
<section unless="HXCPP_CLEAN_ONLY" >
<error value="TIZEN_SDK must be defined to build for Tizen" unless="TIZEN_SDK" />
</section>
<set name="HXCPP_X86" value="1" if="simulator" />
<section if="HXCPP_X86">
<set name="ARCH" value="-x86" />
<set name="PLATFORM_TYPE" value="emulator" />
<set name="EXEPREFIX" value="i386-linux-gnueabi" />
</section>
<section unless="HXCPP_X86">
<set name="ARCH" value="-v7" />
<set name="PLATFORM_TYPE" value="device" />
<set name="EXEPREFIX" value="arm-linux-gnueabi" />
</section>
<section if="TIZEN_22" >
<set name="TIZEN_PLATFORM" value="${TIZEN_SDK}/platforms/tizen2.2/rootstraps/tizen-${PLATFORM_TYPE}-2.2.native" />
<path name="${TIZEN_SDK}/tools/${EXEPREFIX}-gcc-4.5/bin" />
</section>
<section unless="TIZEN_22" >
<set name="TIZEN_PLATFORM" value="${TIZEN_SDK}/platforms/mobile-2.3/rootstraps/mobile-2.3-${PLATFORM_TYPE}.core" />
<path name="${TIZEN_SDK}/tools/${EXEPREFIX}-gcc-4.8/bin" />
</section>
<include name="toolchain/gcc-toolchain.xml"/>
<!-- TIZEN TOOLS -------------------------------------------------->
<compiler id="tizen" exe="${EXEPREFIX}-g++" if="tizen">
<flag value="-c"/>
<flag value="-g" if="debug"/>
<flag value="-O2" unless="debug"/>
<flag value="-I${HXCPP}/include"/>
<flag value="-I${TIZEN_PLATFORM}/usr/include"/>
<flag value="-DTIZEN=TIZEN"/>
<flag value="-D_APP_LOG"/>
<flag value="-march=armv7-a" unless="HXCPP_X86"/>
<flag value="-mfloat-abi=softfp" unless="HXCPP_X86"/>
<flag value="-mfpu=vfpv3-d16" unless="HXCPP_X86"/>
<flag value="-mtune=cortex-a8" unless="HXCPP_X86"/>
<include name="toolchain/common-defines.xml" />
<flag value="-fvisibility=hidden"/>
<flag value="-fdollars-in-identifiers"/>
<flag value="-fpic"/>
<flag value="-fPIC"/>
<cppflag value="-frtti"/>
<!-- <flag value="-fPIE" /> -->
<flag value="--sysroot=${TIZEN_PLATFORM}" />
<outflag value="-o"/>
<objdir value="./obj/tizen${OBJEXT}${ARCH}" />
</compiler>
<linker id="exe" exe="${EXEPREFIX}-g++" if="tizen">
<flag value="-g" if="debug"/>
<flag value="-O2" unless="debug"/>
<flag value="-s" unless="debug"/>
<!-- <flag value="-rdynamic"/> -->
<flag value="-pie" />
<lib name="-lpthread" />
<flag value="-march=armv7-a" unless="HXCPP_X86"/>
<flag value="-mfloat-abi=softfp" unless="HXCPP_X86"/>
<flag value="-mfpu=vfpv3-d16" unless="HXCPP_X86"/>
<flag value="-mtune=cortex-a8" unless="HXCPP_X86"/>
<flag value="-Xlinker" />
<flag value="--as-needed" />
<flag value="-Xlinker" />
<flag value="-rpath=/opt/usr/apps/${APP_ID}/lib" />
<flag value="-Xlinker" />
<flag value="-rpath=/home/developer/sdk_tools/lib" />
<flag value="--sysroot=${TIZEN_PLATFORM}" />
<flag value="-L${TIZEN_PLATFORM}/usr/lib" />
<flag value="-L${TIZEN_PLATFORM}/usr/lib/osp" />
<lib name="-losp-appfw" />
<lib name="-lrt" />
<!-- <flag value="-fpic"/>
<flag value="-fPIC"/> -->
<ext value=".exe"/>
<outflag value="-o"/>
<lib name="-ldl"/>
</linker>
<linker id="dll" exe="${EXEPREFIX}-g++" if="tizen">
<flag value="-shared"/>
<flag value="-g" if="debug"/>
<flag value="-O2" unless="debug"/>
<flag value="-s" unless="debug"/>
<!-- <flag value="-pie" /> -->
<lib name="-lpthread" />
<flag value="-march=armv7-a" unless="HXCPP_X86"/>
<flag value="-mfloat-abi=softfp" unless="HXCPP_X86"/>
<flag value="-mfpu=vfpv3-d16" unless="HXCPP_X86"/>
<flag value="-mtune=cortex-a8" unless="HXCPP_X86"/>
<flag value="-Xlinker" />
<flag value="--as-needed" />
<!--<flag value="-Xlinker" />
<flag value="-rpath=/opt/usr/apps/DugJgh8Hxl/lib" /> -->
<flag value="-Xlinker" />
<flag value="-rpath=/home/developer/sdk_tools/lib" />
<flag value="--sysroot=${TIZEN_PLATFORM}" />
<flag value="-L${TIZEN_PLATFORM}/usr/lib" />
<flag value="-L${TIZEN_PLATFORM}/usr/lib/osp" />
<cppflag value="-frtti"/>
<!-- <flag value="-fpic"/>
<flag value="-fPIC"/> -->
<!-- <flag value="-pie" /> -->
<lib name="-ldl"/>
<ext value=".so"/>
<outflag value="-o"/>
</linker>
</xml>