build-android.sh (1350B)
1 #!/bin/sh 2 3 set -e 4 set -x 5 6 mozconfig=$(mktemp) 7 cat > $mozconfig <<EOF 8 # the corresponding geckoview's mozconfig, to pick up its config options 9 . $MOZCONFIG 10 # no-compile because we don't need to build native code here 11 . $GECKO_PATH/build/mozconfig.no-compile 12 13 # Disable Keyfile Loading (and checks) 14 # This overrides the settings in the common android mozconfig 15 ac_add_options --without-mozilla-api-keyfile 16 ac_add_options --without-google-location-service-api-keyfile 17 ac_add_options --without-google-safebrowsing-api-keyfile 18 19 ac_add_options --disable-nodejs 20 unset NODEJS 21 22 export GRADLE_MAVEN_REPOSITORIES="file://$MOZ_FETCHES_DIR/geckoview","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" 23 EOF 24 export MOZCONFIG=$mozconfig 25 GRADLE=$MOZ_FETCHES_DIR/android-gradle-dependencies/gradle-dist/bin/gradle 26 27 export MOZ_OBJDIR=/builds/worker/workspace/obj-build 28 29 ./mach configure 30 31 # Partial build ensures that `moz.build` generated code is in place. 32 ./mach build pre-export export -v 33 34 eval $PRE_GRADLEW 35 36 eval $GET_SECRETS 37 38 $GRADLE listRepositories $GRADLEW_ARGS 39 40 eval $POST_GRADLEW