Bug 1292463 - Add MOZ_AUTOMATION to python configure. r?chmanchester draft
authorMike Hommey <mh+mozilla@glandium.org>
Tue, 09 Aug 2016 07:43:27 +0900
changeset 398342 a496bd4e58675c83f06a3981702c94951f7e9611
parent 398341 93b95b2f092eb07c185e3e9297b8493b682dd2c2
child 398343 d974371c9312fe95281c41925931e8a02c9ad15c
push id25498
push userbmo:mh+mozilla@glandium.org
push dateTue, 09 Aug 2016 00:16:15 +0000
reviewerschmanchester
bugs1292463
milestone51.0a1
Bug 1292463 - Add MOZ_AUTOMATION to python configure. r?chmanchester
build/moz.configure/init.configure
--- a/build/moz.configure/init.configure
+++ b/build/moz.configure/init.configure
@@ -66,16 +66,20 @@ def check_build_environment(help, dist):
 
 set_config('TOPSRCDIR', delayed_getattr(check_build_environment, 'topsrcdir'))
 set_config('TOPOBJDIR', delayed_getattr(check_build_environment, 'topobjdir'))
 set_config('MOZ_BUILD_ROOT', delayed_getattr(check_build_environment,
                                              'topobjdir'))
 set_config('DIST', delayed_getattr(check_build_environment, 'dist'))
 
 
+option(env='MOZ_AUTOMATION', help='Enable options for automated builds')
+set_config('MOZ_AUTOMATION', depends_if('MOZ_AUTOMATION')(lambda x: True))
+
+
 option(env='OLD_CONFIGURE', nargs=1, help='Path to the old configure script')
 
 option(env='MOZ_CURRENT_PROJECT', nargs=1, help='Current build project')
 option(env='MOZCONFIG', nargs=1, help='Mozconfig location')
 
 # Read user mozconfig
 # ==============================================================
 # Note: the dependency on --help is only there to always read the mozconfig,