Bug 1288450 - Add min sdk version to mozinfo.json; r=ahal
authorGeoff Brown <gbrown@mozilla.com>
Fri, 22 Jul 2016 14:31:36 -0600
changeset 346448 c7a461e12223126b0c03c8037e896e26cc0bb6f0
parent 346447 df0a5c25f8ab0731aada9d50a9bc68379c45dfd0
child 346449 06d44cf3896ac44f50af9ca28983e9a26b6fa456
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1288450
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1288450 - Add min sdk version to mozinfo.json; r=ahal
python/mozbuild/mozbuild/mozinfo.py
--- a/python/mozbuild/mozbuild/mozinfo.py
+++ b/python/mozbuild/mozbuild/mozinfo.py
@@ -135,16 +135,19 @@ def build_dict(config, env=os.environ):
         return 'opt'
 
     # if buildapp or bits are unknown, we don't have a configuration similar to
     # any in automation and the guesses are useless.
     if 'buildapp' in d and (d['os'] == 'mac' or 'bits' in d):
         d['platform_guess'] = guess_platform()
         d['buildtype_guess'] = guess_buildtype()
 
+    if 'buildapp' in d and d['buildapp'] == 'mobile/android' and 'MOZ_ANDROID_MIN_SDK_VERSION' in substs:
+        d['android_min_sdk'] = substs['MOZ_ANDROID_MIN_SDK_VERSION']
+
     return d
 
 
 def write_mozinfo(file, config, env=os.environ):
     """Write JSON data about the configuration specified in config and an
     environment variable dict to |file|, which may be a filename or file-like
     object.
     See build_dict for information about what  environment variables are used,