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

Side by Side Diff: build/gyp_chromium

Issue 108513014: Convert clang=1 to the GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # This script is wrapper for Chromium that adds some support for how GYP 7 # This script is wrapper for Chromium that adds some support for how GYP
8 # is invoked by Chromium beyond what can be done in the gclient hooks. 8 # is invoked by Chromium beyond what can be done in the gclient hooks.
9 9
10 import glob 10 import glob
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 vars_dict = GetGypVarsForGN(supplemental_files) 115 vars_dict = GetGypVarsForGN(supplemental_files)
116 gn_args = '' 116 gn_args = ''
117 117
118 # These tuples of (key, value, gn_arg_string) use the gn_arg_string for 118 # These tuples of (key, value, gn_arg_string) use the gn_arg_string for
119 # gn when the key is set to the given value in the GYP arguments. 119 # gn when the key is set to the given value in the GYP arguments.
120 remap_cases = [ 120 remap_cases = [
121 ('branding', 'Chrome', 'is_chrome_branded=true'), 121 ('branding', 'Chrome', 'is_chrome_branded=true'),
122 ('buildtype', 'Official', 'is_official_build=true'), 122 ('buildtype', 'Official', 'is_official_build=true'),
123 ('component', 'shared_library', 'is_component_build=true'), 123 ('component', 'shared_library', 'is_component_build=true'),
124 ('clang', '1', 'is_clang=true'),
124 ] 125 ]
125 for i in remap_cases: 126 for i in remap_cases:
126 if i[0] in vars_dict and vars_dict[i[0]] == i[1]: 127 if i[0] in vars_dict and vars_dict[i[0]] == i[1]:
127 gn_args += ' ' + i[2] 128 gn_args += ' ' + i[2]
128 129
129 # These string arguments get passed directly. 130 # These string arguments get passed directly.
130 for v in ['windows_sdk_path']: 131 for v in ['windows_sdk_path']:
131 if v in vars_dict: 132 if v in vars_dict:
132 gn_args += ' ' + v + '=' + EscapeStringForGN(vars_dict[v]) 133 gn_args += ' ' + v + '=' + EscapeStringForGN(vars_dict[v])
133 134
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 # to enfore syntax checking. 313 # to enfore syntax checking.
313 syntax_check = os.environ.get('CHROMIUM_GYP_SYNTAX_CHECK') 314 syntax_check = os.environ.get('CHROMIUM_GYP_SYNTAX_CHECK')
314 if syntax_check and int(syntax_check): 315 if syntax_check and int(syntax_check):
315 args.append('--check') 316 args.append('--check')
316 317
317 print 'Updating projects from gyp files...' 318 print 'Updating projects from gyp files...'
318 sys.stdout.flush() 319 sys.stdout.flush()
319 320
320 # Off we go... 321 # Off we go...
321 sys.exit(gyp.main(args)) 322 sys.exit(gyp.main(args))
OLDNEW
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698