common (1806B)
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 . "$topsrcdir/build/mozconfig.common" 6 7 # Build Fennec 8 ac_add_options --enable-project=mobile/android 9 10 ac_add_options --with-gradle="$MOZ_FETCHES_DIR/android-gradle-dependencies/gradle-dist/bin/gradle" 11 export GRADLE_MAVEN_REPOSITORIES="file://$MOZ_FETCHES_DIR/android-gradle-dependencies/mozilla","file://$MOZ_FETCHES_DIR/android-gradle-dependencies/google","file://$MOZ_FETCHES_DIR/android-gradle-dependencies/central","file://$MOZ_FETCHES_DIR/android-gradle-dependencies/gradle-plugins","file:///$MOZ_FETCHES_DIR/android-gradle-dependencies/plugins.gradle.org/m2" 12 13 if [ -z "$NO_NDK" -a -z "$USE_ARTIFACT" ]; then 14 CFLAGS="$CFLAGS -fcrash-diagnostics-dir=${UPLOAD_PATH}" 15 CXXFLAGS="$CXXFLAGS -fcrash-diagnostics-dir=${UPLOAD_PATH}" 16 # Make sure that any host binaries we build use whatever libraries clang 17 # linked against, rather than what's on the system. 18 mk_add_options "export LD_LIBRARY_PATH=$MOZ_FETCHES_DIR/clang/lib" 19 # Enable static analysis plugin 20 export ENABLE_CLANG_PLUGIN=1 21 fi 22 23 ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL} 24 25 ac_add_options --with-google-safebrowsing-api-keyfile=/builds/sb-gapi.data 26 ac_add_options --with-google-location-service-api-keyfile=/builds/gls-gapi.data 27 ac_add_options --with-mozilla-api-keyfile=/builds/mozilla-fennec-geoloc-api.key 28 29 # Package js shell. 30 export MOZ_PACKAGE_JSSHELL=1 31 32 if [ -d "$MOZ_FETCHES_DIR/binutils/bin" ]; then 33 mk_add_options "export PATH=$MOZ_FETCHES_DIR/binutils/bin:$PATH" 34 export LDFLAGS="$LDFLAGS -B $MOZ_FETCHES_DIR/binutils/bin" 35 fi 36 37 JS_BINARY="$topsrcdir/mobile/android/config/js_wrapper.sh"