Bug 1288450 - Add min sdk version to mozinfo.json; r=ahal
☠☠ backed out by 6d5aca780e2d ☠ ☠
authorGeoff Brown <gbrown@mozilla.com>
Fri, 22 Jul 2016 08:18:49 -0600
changeset 348468 69094e855e270437ad3429ed539e8cac23c529ac
parent 348467 2b1ddc2f0919755078ed3ea190d263f97609870b
child 348469 aae88d41fd422d6708e39d160abb0a55894bcb8f
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [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 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,