Add GYP_CHROMIUM_NO_ACTION environment variable to gyp_chromium

This is inorder to allow non-standard bots to run gclient runhooks without
running gyp_chromium.

See also: https://codereview.chromium.org/69173006/

R=brettw@chromium.org, mkosiba@chromium.org
BUG=

Review URL: https://codereview.chromium.org/76403005

git-svn-id: http://src.chromium.org/svn/trunk/src/build@236300 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
iannucci@chromium.org 2013-11-20 21:30:30 +00:00
Родитель 840475656a
Коммит 7ed047c46b
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -82,6 +82,10 @@ def additional_include_files(args=[]):
if __name__ == '__main__':
args = sys.argv[1:]
if int(os.environ.get('GYP_CHROMIUM_NO_ACTION', 0)):
print 'Skipping gyp_chromium due to GYP_CHROMIUM_NO_ACTION env var.'
sys.exit(0)
# Use the Psyco JIT if available.
if psyco:
psyco.profile()