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

Side by Side Diff: build/gyp_chromium

Issue 170533003: GN: Work on Linux build defines (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Created 6 years, 10 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/ui.gni ('k') | tools/gn/command_help.cc » ('j') | 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 remap_cases = [ 200 remap_cases = [
201 ('android_webview_build', '1', 'is_android_webview_build=true'), 201 ('android_webview_build', '1', 'is_android_webview_build=true'),
202 ('branding', 'Chrome', 'is_chrome_branded=true'), 202 ('branding', 'Chrome', 'is_chrome_branded=true'),
203 ('build_for_tool', 'drmemory', 'disable_iterator_debugging=true'), 203 ('build_for_tool', 'drmemory', 'disable_iterator_debugging=true'),
204 ('build_for_tool', 'tsan', 'disable_iterator_debugging=true'), 204 ('build_for_tool', 'tsan', 'disable_iterator_debugging=true'),
205 ('buildtype', 'Official', 'is_official_build=true'), 205 ('buildtype', 'Official', 'is_official_build=true'),
206 ('component', 'shared_library', 'is_component_build=true'), 206 ('component', 'shared_library', 'is_component_build=true'),
207 ('clang', '1', 'is_clang=true'), 207 ('clang', '1', 'is_clang=true'),
208 ('clang_use_chrome_plugins', '0', 'clang_use_chrome_plugins=false'), 208 ('clang_use_chrome_plugins', '0', 'clang_use_chrome_plugins=false'),
209 ('disable_glibcxx_debug', '1', 'disable_iterator_debugging=true'), 209 ('disable_glibcxx_debug', '1', 'disable_iterator_debugging=true'),
210 ('enable_mdns', '0', 'enable_mdns=false'),
211 ('enable_mdns', '1', 'enable_mdns=true'),
212 ('enable_plugins', '0', 'enable_plugins=false'),
213 ('enable_plugins', '1', 'enable_plugins=true'),
210 ('target_arch', 'ia32', 'cpu_arch="x86"'), 214 ('target_arch', 'ia32', 'cpu_arch="x86"'),
211 ('target_arch', 'x64', 'cpu_arch="x64" force_win64=true'), 215 ('target_arch', 'x64', 'cpu_arch="x64" force_win64=true'),
212 ('target_arch', 'arm', 'cpu_arch="arm"'), 216 ('target_arch', 'arm', 'cpu_arch="arm"'),
213 ('target_arch', 'mipsel', 'cpu_arch="mipsel"'), 217 ('target_arch', 'mipsel', 'cpu_arch="mipsel"'),
214 ('fastbuild', '0', 'symbol_level=2'), 218 ('fastbuild', '0', 'symbol_level=2'),
215 ('fastbuild', '1', 'symbol_level=1'), 219 ('fastbuild', '1', 'symbol_level=1'),
216 ('fastbuild', '2', 'symbol_level=0'), 220 ('fastbuild', '2', 'symbol_level=0'),
217 ('OS', 'ios', 'os="ios"'), 221 ('OS', 'ios', 'os="ios"'),
218 ('OS', 'android', 'os="android"'), 222 ('OS', 'android', 'os="android"'),
219 ('chromeos', '1', 'os="chromeos"'), 223 ('chromeos', '1', 'os="chromeos"'),
220 ('use_aura', '1', 'use_aura=true'), 224 ('use_aura', '1', 'use_aura=true'),
221 ('use_goma', '1', 'use_goma=true'), 225 ('use_goma', '1', 'use_goma=true'),
226 ('use_openssl', '0', 'use_openssl=false'),
227 ('use_openssl', '1', 'use_openssl=true'),
222 ('asan', '1', 'is_asan=true'), 228 ('asan', '1', 'is_asan=true'),
223 ('lsan', '1', 'is_lsan=true'), 229 ('lsan', '1', 'is_lsan=true'),
224 ('msan', '1', 'is_msan=true'), 230 ('msan', '1', 'is_msan=true'),
225 ('tsan', '1', 'is_tsan=true'), 231 ('tsan', '1', 'is_tsan=true'),
226 ] 232 ]
227 for i in remap_cases: 233 for i in remap_cases:
228 if i[0] in vars_dict and vars_dict[i[0]] == i[1]: 234 if i[0] in vars_dict and vars_dict[i[0]] == i[1]:
229 gn_args += ' ' + i[2] 235 gn_args += ' ' + i[2]
230 236
231 # These string arguments get passed directly as GN strings. 237 # These string arguments get passed directly as GN strings.
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 # rather than a separate runhooks step so that any environment modifications 502 # rather than a separate runhooks step so that any environment modifications
497 # from above are picked up. 503 # from above are picked up.
498 print 'Running build/landmines.py...' 504 print 'Running build/landmines.py...'
499 subprocess.check_call( 505 subprocess.check_call(
500 [sys.executable, os.path.join(script_dir, 'landmines.py')]) 506 [sys.executable, os.path.join(script_dir, 'landmines.py')])
501 507
502 if vs2013_runtime_dll_dirs: 508 if vs2013_runtime_dll_dirs:
503 CopyVsRuntimeDlls(GetOutputDirectory(), vs2013_runtime_dll_dirs) 509 CopyVsRuntimeDlls(GetOutputDirectory(), vs2013_runtime_dll_dirs)
504 510
505 sys.exit(gyp_rc) 511 sys.exit(gyp_rc)
OLDNEW
« no previous file with comments | « build/config/ui.gni ('k') | tools/gn/command_help.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698