Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: build/gyp_chromium.py

Issue 1952033002: [Android] Disable build/gyp_chromium hook. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """This script is wrapper for Chromium that adds some support for how GYP 5 """This script is wrapper for Chromium that adds some support for how GYP
6 is invoked by Chromium beyond what can be done in the gclient hooks. 6 is invoked by Chromium beyond what can be done in the gclient hooks.
7 """ 7 """
8 8
9 import argparse 9 import argparse
10 import gc 10 import gc
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 mac_toolchain_dir = mac_toolchain.GetToolchainDirectory() 319 mac_toolchain_dir = mac_toolchain.GetToolchainDirectory()
320 if mac_toolchain_dir: 320 if mac_toolchain_dir:
321 args.append('-Gmac_toolchain_dir=' + mac_toolchain_dir) 321 args.append('-Gmac_toolchain_dir=' + mac_toolchain_dir)
322 322
323 # TODO(crbug.com/432967) - We are eventually going to switch GYP off 323 # TODO(crbug.com/432967) - We are eventually going to switch GYP off
324 # by default for all Chromium builds, so this list of configurations 324 # by default for all Chromium builds, so this list of configurations
325 # will get broader and broader. 325 # will get broader and broader.
326 running_as_hook = '--running-as-hook' 326 running_as_hook = '--running-as-hook'
327 if (running_as_hook in args and 327 if (running_as_hook in args and
328 os.environ.get('GYP_CHROMIUM_NO_ACTION', None) != '0' and 328 os.environ.get('GYP_CHROMIUM_NO_ACTION', None) != '0' and
329 (sys.platform.startswith('linux') and not gyp_vars_dict)): 329 ((sys.platform.startswith('linux') and not gyp_vars_dict)) or
330 (gyp_vars_dict.get('OS') == 'android')):
330 print 'GYP is now disabled in this configuration by default in runhooks.\n' 331 print 'GYP is now disabled in this configuration by default in runhooks.\n'
331 print 'If you really want to run this, either run ' 332 print 'If you really want to run this, either run '
332 print '`python build/gyp_chromium.py` explicitly by hand' 333 print '`python build/gyp_chromium.py` explicitly by hand'
333 print 'or set the environment variable GYP_CHROMIUM_NO_ACTION=0.' 334 print 'or set the environment variable GYP_CHROMIUM_NO_ACTION=0.'
rmistry 2016/05/05 14:20:58 These messages are no longer correct.
334 sys.exit(0) 335 sys.exit(0)
335 336
336 if running_as_hook in args: 337 if running_as_hook in args:
337 args.remove(running_as_hook) 338 args.remove(running_as_hook)
338 339
339 if not use_analyzer: 340 if not use_analyzer:
340 print 'Updating projects from gyp files...' 341 print 'Updating projects from gyp files...'
341 sys.stdout.flush() 342 sys.stdout.flush()
342 343
343 # Off we go... 344 # Off we go...
344 gyp_rc = gyp.main(args) 345 gyp_rc = gyp.main(args)
345 346
346 if gyp_rc == 0 and not use_analyzer: 347 if gyp_rc == 0 and not use_analyzer:
347 vs2013_runtime_dll_dirs = vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs() 348 vs2013_runtime_dll_dirs = vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs()
348 if vs2013_runtime_dll_dirs: 349 if vs2013_runtime_dll_dirs:
349 x64_runtime, x86_runtime = vs2013_runtime_dll_dirs 350 x64_runtime, x86_runtime = vs2013_runtime_dll_dirs
350 vs_toolchain.CopyVsRuntimeDlls( 351 vs_toolchain.CopyVsRuntimeDlls(
351 os.path.join(chrome_src, GetOutputDirectory()), 352 os.path.join(chrome_src, GetOutputDirectory()),
352 (x86_runtime, x64_runtime)) 353 (x86_runtime, x64_runtime))
353 354
354 sys.exit(gyp_rc) 355 sys.exit(gyp_rc)
355 356
356 if __name__ == '__main__': 357 if __name__ == '__main__':
357 sys.exit(main()) 358 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698