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

Side by Side Diff: build/gyp_chromium

Issue 142053002: Hook up clang_use_chrome_plugins to the GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « build/config/clang/BUILD.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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 vars_dict = GetGypVarsForGN(supplemental_files) 157 vars_dict = GetGypVarsForGN(supplemental_files)
158 gn_args = '' 158 gn_args = ''
159 159
160 # Note: These are the additional flags passed to various builds by builders 160 # Note: These are the additional flags passed to various builds by builders
161 # on the main waterfall. We'll probably need to add these at some point: 161 # on the main waterfall. We'll probably need to add these at some point:
162 # mac_strip_release=1 http://crbug.com/330301 162 # mac_strip_release=1 http://crbug.com/330301
163 # linux_dump_symbols=0 http://crbug.com/330300 163 # linux_dump_symbols=0 http://crbug.com/330300
164 # host_os=linux Probably can skip, GN knows the host OS. 164 # host_os=linux Probably can skip, GN knows the host OS.
165 # order_text_section=<path> http://crbug.com/330299 165 # order_text_section=<path> http://crbug.com/330299
166 # chromium_win_pch=0 http://crbug.com/297678 166 # chromium_win_pch=0 http://crbug.com/297678
167 # clang_use_chrome_plugins=1 http://crbug.com/330298
168 # chromium_ios_signing=0 http://crbug.com/330302 167 # chromium_ios_signing=0 http://crbug.com/330302
169 # linux_use_tcmalloc=0 http://crbug.com/330303 168 # linux_use_tcmalloc=0 http://crbug.com/330303
170 # release_extra_flags=... http://crbug.com/330305 169 # release_extra_flags=... http://crbug.com/330305
171 170
172 # These tuples of (key, value, gn_arg_string) use the gn_arg_string for 171 # These tuples of (key, value, gn_arg_string) use the gn_arg_string for
173 # gn when the key is set to the given value in the GYP arguments. 172 # gn when the key is set to the given value in the GYP arguments.
174 remap_cases = [ 173 remap_cases = [
175 ('android_webview_build', '1', 'is_android_webview_build=true'), 174 ('android_webview_build', '1', 'is_android_webview_build=true'),
176 ('branding', 'Chrome', 'is_chrome_branded=true'), 175 ('branding', 'Chrome', 'is_chrome_branded=true'),
177 ('buildtype', 'Official', 'is_official_build=true'), 176 ('buildtype', 'Official', 'is_official_build=true'),
178 ('component', 'shared_library', 'is_component_build=true'), 177 ('component', 'shared_library', 'is_component_build=true'),
179 ('clang', '1', 'is_clang=true'), 178 ('clang', '1', 'is_clang=true'),
179 ('clang_use_chrome_plugins', '0', 'clang_use_chrome_plugins=false'),
180 ('disable_glibcxx_debug', '1', 'disable_glibcxx_debug=true'), 180 ('disable_glibcxx_debug', '1', 'disable_glibcxx_debug=true'),
181 ('target_arch', 'ia32', 'cpu_arch="x86"'), 181 ('target_arch', 'ia32', 'cpu_arch="x86"'),
182 ('target_arch', 'x64', 'cpu_arch="x64" force_win64=true'), 182 ('target_arch', 'x64', 'cpu_arch="x64" force_win64=true'),
183 ('target_arch', 'arm', 'cpu_arch="arm"'), 183 ('target_arch', 'arm', 'cpu_arch="arm"'),
184 ('target_arch', 'mipsel', 'cpu_arch="mipsel"'), 184 ('target_arch', 'mipsel', 'cpu_arch="mipsel"'),
185 ('fastbuild', '0', 'symbol_level=2'), 185 ('fastbuild', '0', 'symbol_level=2'),
186 ('fastbuild', '1', 'symbol_level=1'), 186 ('fastbuild', '1', 'symbol_level=1'),
187 ('fastbuild', '2', 'symbol_level=0'), 187 ('fastbuild', '2', 'symbol_level=0'),
188 ('OS', 'ios', 'os="ios"'), 188 ('OS', 'ios', 'os="ios"'),
189 ('OS', 'android', 'os="android"'), 189 ('OS', 'android', 'os="android"'),
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 if not RunGN(supplemental_includes): 395 if not RunGN(supplemental_includes):
396 sys.exit(1) 396 sys.exit(1)
397 args.extend( 397 args.extend(
398 ['-I' + i for i in additional_include_files(supplemental_includes, args)]) 398 ['-I' + i for i in additional_include_files(supplemental_includes, args)])
399 399
400 print 'Updating projects from gyp files...' 400 print 'Updating projects from gyp files...'
401 sys.stdout.flush() 401 sys.stdout.flush()
402 402
403 # Off we go... 403 # Off we go...
404 sys.exit(gyp.main(args)) 404 sys.exit(gyp.main(args))
OLDNEW
« no previous file with comments | « build/config/clang/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698