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

Side by Side Diff: build/gyp_environment.py

Issue 1840323002: Add mac toolchain script support to find_sdk script. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Create SetToolchainEnvironment method Created 4 years, 8 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 | build/mac/find_sdk.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 """ 5 """
6 Sets up various automatic gyp environment variables. These are used by 6 Sets up various automatic gyp environment variables. These are used by
7 gyp_chromium and landmines.py which run at different stages of runhooks. To 7 gyp_chromium and landmines.py which run at different stages of runhooks. To
8 make sure settings are consistent between them, all setup should happen here. 8 make sure settings are consistent between them, all setup should happen here.
9 """ 9 """
10 10
(...skipping 14 matching lines...) Expand all
25 # . set the env var only if it hasn't been set yet 25 # . set the env var only if it hasn't been set yet
26 # . chromium.gyp_env has been applied to os.environ at this point already 26 # . chromium.gyp_env has been applied to os.environ at this point already
27 if sys.platform.startswith(('linux', 'win', 'freebsd')) and \ 27 if sys.platform.startswith(('linux', 'win', 'freebsd')) and \
28 not os.environ.get('GYP_GENERATORS'): 28 not os.environ.get('GYP_GENERATORS'):
29 os.environ['GYP_GENERATORS'] = 'ninja' 29 os.environ['GYP_GENERATORS'] = 'ninja'
30 elif sys.platform == 'darwin' and not os.environ.get('GYP_GENERATORS') and \ 30 elif sys.platform == 'darwin' and not os.environ.get('GYP_GENERATORS') and \
31 not 'OS=ios' in os.environ.get('GYP_DEFINES', []): 31 not 'OS=ios' in os.environ.get('GYP_DEFINES', []):
32 os.environ['GYP_GENERATORS'] = 'ninja' 32 os.environ['GYP_GENERATORS'] = 'ninja'
33 33
34 vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs() 34 vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs()
35 mac_toolchain_dir = mac_toolchain.GetToolchainDirectory() 35 mac_toolchain.SetToolchainEnvironment()
36 if mac_toolchain_dir:
37 os.environ['DEVELOPER_DIR'] = mac_toolchain_dir
OLDNEW
« no previous file with comments | « no previous file | build/mac/find_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698