Bug 1220500 - Set ANDROID_PACKAGE_NAME correctly from MOZ_APP_NAME. r?glandium draft
authorNick Alexander <nalexander@mozilla.com>
Mon, 21 Dec 2015 20:07:30 -0800
changeset 316793 aa99e9a072ac91bc84ed5b60b270be33f6f435aa
parent 316792 2d32fc196c40dec8a3dd04dd616652c8228e2790
child 512219 373580d044ff74f58a67c01089cc75f80e32bf9c
push id8612
push usernalexander@mozilla.com
push dateTue, 22 Dec 2015 04:07:58 +0000
reviewersglandium
bugs1220500
milestone46.0a1
Bug 1220500 - Set ANDROID_PACKAGE_NAME correctly from MOZ_APP_NAME. r?glandium
configure.in
--- a/configure.in
+++ b/configure.in
@@ -323,19 +323,16 @@ if test -n "$gonkdir" ; then
     android_cxx_stl=mozstlport
 else
     if test "$COMPILE_ENVIRONMENT"; then
         MOZ_ANDROID_NDK
     fi # COMPILE_ENVIRONMENT
 
     case "$target" in
     *-android*|*-linuxandroid*)
-        if test -z "$ANDROID_PACKAGE_NAME" ; then
-            ANDROID_PACKAGE_NAME='org.mozilla.$(MOZ_APP_NAME)'
-        fi
         MOZ_CHROME_FILE_FORMAT=omni
         ZLIB_DIR=yes
         AC_DEFINE(ANDROID)
         ;;
     *-linux*)
         AC_PATH_PROG(OBJCOPY,objcopy)
         ;;
     esac
@@ -8743,16 +8740,20 @@ fi
 if test -z "$MOZ_APP_REMOTINGNAME"; then
    MOZ_APP_REMOTINGNAME=$MOZ_APP_NAME
 fi
 
 if test -z "$MOZ_APP_VERSION_DISPLAY"; then
    MOZ_APP_VERSION_DISPLAY=$MOZ_APP_VERSION
 fi
 
+if test -z "$ANDROID_PACKAGE_NAME" ; then
+   ANDROID_PACKAGE_NAME="org.mozilla.$MOZ_APP_NAME"
+fi
+
 # For extensions and langpacks, we require a max version that is compatible
 # across security releases. MOZ_APP_MAXVERSION is our method for doing that.
 # 24.0a1 and 24.0a2 aren't affected
 # 24.0 becomes 24.*
 # 24.1.1 becomes 24.*
 IS_ALPHA=`echo $MOZ_APP_VERSION | grep a`
 if test -z "$IS_ALPHA"; then
   changequote(,)