|
1 # This Source Code Form is subject to the terms of the Mozilla Public |
|
2 # License, v. 2.0. If a copy of the MPL was not distributed with this |
|
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
4 |
|
5 # This file is included at the top of all native android mozconfigs |
|
6 |
|
7 . "$topsrcdir/build/mozconfig.common" |
|
8 |
|
9 # Set the most aggressive settings for szip. Not the default because it's |
|
10 # much slower and we didn't want to slow down developers builds. |
|
11 # Has no effect when MOZ_ENABLE_SZIP is not set in mobile/android/confvars.sh. |
|
12 MOZ_SZIP_FLAGS="-D auto -f auto" |
|
13 |
|
14 ac_add_options --enable-elf-hack |
|
15 |
|
16 ANDROID_NDK_VERSION="r8e" |
|
17 ANDROID_NDK_VERSION_32BIT="r8c" |
|
18 ANDROID_SDK_VERSION="17" |
|
19 |
|
20 # Build Fennec |
|
21 ac_add_options --enable-application=mobile/android |
|
22 |
|
23 if test `uname -m` = 'x86_64'; then |
|
24 ac_add_options --with-android-ndk="$topsrcdir/android-ndk" |
|
25 ac_add_options --with-android-sdk="$topsrcdir/android-sdk-linux/platforms/android-$ANDROID_SDK_VERSION" |
|
26 else |
|
27 ac_add_options --with-android-ndk="/tools/android-ndk-$ANDROID_NDK_VERSION_32BIT" |
|
28 ac_add_options --with-android-sdk="/tools/android-sdk-r$ANDROID_SDK_VERSION/platforms/android-$ANDROID_SDK_VERSION" |
|
29 fi |
|
30 |
|
31 ac_add_options --with-android-gnu-compiler-version=4.7 |
|
32 ac_add_options --with-android-version=9 |
|
33 ac_add_options --with-system-zlib |
|
34 ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL} |
|
35 |
|
36 # Treat warnings as errors in directories with FAIL_ON_WARNINGS. |
|
37 ac_add_options --enable-warnings-as-errors |
|
38 |
|
39 # Package js shell. |
|
40 export MOZ_PACKAGE_JSSHELL=1 |
|
41 |
|
42 # Use ccache |
|
43 . "$topsrcdir/build/mozconfig.cache" |
|
44 |
|
45 HOST_CC="/tools/gcc-4.7.2-0moz1/bin/gcc" |
|
46 HOST_CXX="/tools/gcc-4.7.2-0moz1/bin/g++" |
|
47 |
|
48 # Avoid dependency on libstdc++ 4.7 |
|
49 ac_add_options --enable-stdcxx-compat |
|
50 |
|
51 mk_add_options "export ANT_HOME=$topsrcdir/apache-ant" |
|
52 |
|
53 mk_add_options "export PATH=$topsrcdir/apache-ant/bin:$PATH" |