Bug 1257958 - Move MOZ_ANDROID_BEAM to Python configure. draft
authorChris Manchester <cmanchester@mozilla.com>
Fri, 18 Mar 2016 13:26:46 -0700
changeset 342316 55a3c614f7fd25590a7b86bb65e482743baedb3b
parent 342315 fdb7fe80d4bc112cfedb1a9358e765712faa7507
child 342317 2dcad02104902b5c63862c06dfeed4a692e157d0
push id13388
push usercmanchester@mozilla.com
push dateFri, 18 Mar 2016 20:27:05 +0000
bugs1257958
milestone48.0a1
Bug 1257958 - Move MOZ_ANDROID_BEAM to Python configure. And do not port the subst, its value is not used. MozReview-Commit-ID: DrJSWZwaC5d
build/moz.configure/init.configure
mobile/android/confvars.sh
mobile/android/moz.configure
old-configure.in
--- a/build/moz.configure/init.configure
+++ b/build/moz.configure/init.configure
@@ -252,16 +252,17 @@ def wanted_mozconfig_variables(help):
          'DISABLE_EXPORT_JS',
          'DISABLE_SHARED_JS',
          'DOXYGEN',
          'DSYMUTIL',
          'EXTERNAL_SOURCE_DIR',
          'GENISOIMAGE',
          'L10NBASEDIR',
          'MOZILLABUILD',
+         'MOZ_ANDROID_BEAM',
          'MOZ_ANDROID_DOWNLOADS_INTEGRATION',
          'MOZ_ARTIFACT_BUILDS',
          'MOZ_BUILD_APP',
          'MOZ_CALLGRIND',
          'MOZ_DMD',
          'MOZ_FMP4',
          'MOZ_INSTRUMENT_EVENT_LOOP',
          'MOZ_INSTRUMENTS',
--- a/mobile/android/confvars.sh
+++ b/mobile/android/confvars.sh
@@ -25,19 +25,16 @@ MOZ_ANDROID_SEARCH_INTENT_CLASS=org.mozi
 
 MOZ_SAFE_BROWSING=1
 
 MOZ_NO_SMART_CARDS=1
 
 # Enable getUserMedia
 MOZ_MEDIA_NAVIGATOR=1
 
-# Enable NFC permission
-MOZ_ANDROID_BEAM=1
-
 MOZ_XULRUNNER=
 
 MOZ_CAPTURE=1
 MOZ_RAW=1
 MOZ_PLACES=
 MOZ_SOCIAL=
 MOZ_ANDROID_HISTORY=1
 
--- a/mobile/android/moz.configure
+++ b/mobile/android/moz.configure
@@ -10,16 +10,19 @@
 def enabled_define(name, help):
     opt = option(env=name, default='1', help=help)
 
     @depends(opt.option)
     def enabled_option(value):
         if value:
             set_define(name, '1')
 
+enabled_define('MOZ_ANDROID_BEAM',
+               help='Enable NFC permission on Android')
+
 enabled_define('MOZ_ANDROID_DOWNLOADS_INTEGRATION',
                help='Enable system download manager on Android')
 
 enabled_define('MOZ_LOCALE_SWITCHER',
                help='Enable runtime locale switching on Android')
 
 option('--enable-android-apz',
        help='Enable the C++ async pan/zoom code instead of the Java version')
--- a/old-configure.in
+++ b/old-configure.in
@@ -2920,17 +2920,16 @@ NECKO_PROTOCOLS_DEFAULT="about app data 
 if test -n "$MOZ_RTSP"; then
   NECKO_PROTOCOLS_DEFAULT="$NECKO_PROTOCOLS_DEFAULT rtsp"
 fi
 USE_ARM_KUSER=
 BUILD_CTYPES=1
 MOZ_USE_NATIVE_POPUP_WINDOWS=
 MOZ_ANDROID_HISTORY=
 MOZ_WEBSMS_BACKEND=
-MOZ_ANDROID_BEAM=
 MOZ_ANDROID_SEARCH_ACTIVITY=
 MOZ_ANDROID_MLS_STUMBLER=
 MOZ_EXCLUDE_HYPHENATION_DICTIONARIES=
 MOZ_INSTALL_TRACKING=
 MOZ_SWITCHBOARD=
 ACCESSIBILITY=1
 MOZ_TIME_MANAGER=
 MOZ_SIMPLEPUSH=
@@ -3780,23 +3779,16 @@ MOZ_ARG_DISABLE_BOOL(websms-backend,
     MOZ_WEBSMS_BACKEND=,
     MOZ_WEBSMS_BACKEND=1)
 
 if test -n "$MOZ_WEBSMS_BACKEND"; then
     AC_DEFINE(MOZ_WEBSMS_BACKEND)
 fi
 
 dnl ========================================================
-dnl = Enable NFC permission on Android
-dnl ========================================================
-if test -n "$MOZ_ANDROID_BEAM"; then
-    AC_DEFINE(MOZ_ANDROID_BEAM)
-fi
-
-dnl ========================================================
 dnl = Include Search Activity on Android
 dnl ========================================================
 if test -n "$MOZ_ANDROID_SEARCH_ACTIVITY"; then
     AC_DEFINE(MOZ_ANDROID_SEARCH_ACTIVITY)
 fi
 
 dnl ========================================================
 dnl = Include Mozilla Location Service Stumbler on Android
@@ -7302,17 +7294,16 @@ AC_SUBST(MOZ_HAS_WINSDK_WITH_D3D)
 AC_SUBST(MOZ_D3DCOMPILER_VISTA_DLL)
 AC_SUBST(MOZ_D3DCOMPILER_VISTA_DLL_PATH)
 AC_SUBST(MOZ_DIRECTX_SDK_PATH)
 AC_SUBST(MOZ_D3DCOMPILER_XP_DLL)
 AC_SUBST(MOZ_D3DCOMPILER_XP_CAB)
 
 AC_SUBST(MOZ_ANDROID_HISTORY)
 AC_SUBST(MOZ_WEBSMS_BACKEND)
-AC_SUBST(MOZ_ANDROID_BEAM)
 AC_SUBST(MOZ_DISABLE_GECKOVIEW)
 AC_SUBST(MOZ_ANDROID_GCM)
 AC_SUBST(MOZ_ANDROID_GECKOLIBS_AAR)
 AC_SUBST(MOZ_ANDROID_SEARCH_ACTIVITY)
 AC_SUBST(MOZ_ANDROID_PACKAGE_INSTALL_BOUNCER)
 AC_SUBST(MOZ_ANDROID_MLS_STUMBLER)
 AC_SUBST(MOZ_ANDROID_APPLICATION_CLASS)
 AC_SUBST(MOZ_ANDROID_BROWSER_INTENT_CLASS)