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

Side by Side Diff: build/gyp_chromium

Issue 139783012: Add support for Dr memory in 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
« build/config/BUILD.gn ('K') | « build/config/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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 # chromium_win_pch=0 http://crbug.com/297678 166 # chromium_win_pch=0 http://crbug.com/297678
167 # chromium_ios_signing=0 http://crbug.com/330302 167 # chromium_ios_signing=0 http://crbug.com/330302
168 # linux_use_tcmalloc=0 http://crbug.com/330303 168 # linux_use_tcmalloc=0 http://crbug.com/330303
169 # release_extra_flags=... http://crbug.com/330305 169 # release_extra_flags=... http://crbug.com/330305
170 170
171 # 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
172 # 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.
173 remap_cases = [ 173 remap_cases = [
174 ('android_webview_build', '1', 'is_android_webview_build=true'), 174 ('android_webview_build', '1', 'is_android_webview_build=true'),
175 ('branding', 'Chrome', 'is_chrome_branded=true'), 175 ('branding', 'Chrome', 'is_chrome_branded=true'),
176 ('build_for_tool', 'drmemory', 'disable_iterator_debugging=true'),
177 ('build_for_tool', 'tsan', 'disable_iterator_debugging=true'),
176 ('buildtype', 'Official', 'is_official_build=true'), 178 ('buildtype', 'Official', 'is_official_build=true'),
177 ('component', 'shared_library', 'is_component_build=true'), 179 ('component', 'shared_library', 'is_component_build=true'),
178 ('clang', '1', 'is_clang=true'), 180 ('clang', '1', 'is_clang=true'),
179 ('clang_use_chrome_plugins', '0', 'clang_use_chrome_plugins=false'), 181 ('clang_use_chrome_plugins', '0', 'clang_use_chrome_plugins=false'),
180 ('disable_glibcxx_debug', '1', 'disable_glibcxx_debug=true'), 182 ('disable_glibcxx_debug', '1', 'disable_iterator_debugging=true'),
181 ('target_arch', 'ia32', 'cpu_arch="x86"'), 183 ('target_arch', 'ia32', 'cpu_arch="x86"'),
182 ('target_arch', 'x64', 'cpu_arch="x64" force_win64=true'), 184 ('target_arch', 'x64', 'cpu_arch="x64" force_win64=true'),
183 ('target_arch', 'arm', 'cpu_arch="arm"'), 185 ('target_arch', 'arm', 'cpu_arch="arm"'),
184 ('target_arch', 'mipsel', 'cpu_arch="mipsel"'), 186 ('target_arch', 'mipsel', 'cpu_arch="mipsel"'),
185 ('fastbuild', '0', 'symbol_level=2'), 187 ('fastbuild', '0', 'symbol_level=2'),
186 ('fastbuild', '1', 'symbol_level=1'), 188 ('fastbuild', '1', 'symbol_level=1'),
187 ('fastbuild', '2', 'symbol_level=0'), 189 ('fastbuild', '2', 'symbol_level=0'),
188 ('OS', 'ios', 'os="ios"'), 190 ('OS', 'ios', 'os="ios"'),
189 ('OS', 'android', 'os="android"'), 191 ('OS', 'android', 'os="android"'),
190 ('chromeos', '1', 'os="chromeos"'), 192 ('chromeos', '1', 'os="chromeos"'),
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 if not RunGN(supplemental_includes): 397 if not RunGN(supplemental_includes):
396 sys.exit(1) 398 sys.exit(1)
397 args.extend( 399 args.extend(
398 ['-I' + i for i in additional_include_files(supplemental_includes, args)]) 400 ['-I' + i for i in additional_include_files(supplemental_includes, args)])
399 401
400 print 'Updating projects from gyp files...' 402 print 'Updating projects from gyp files...'
401 sys.stdout.flush() 403 sys.stdout.flush()
402 404
403 # Off we go... 405 # Off we go...
404 sys.exit(gyp.main(args)) 406 sys.exit(gyp.main(args))
OLDNEW
« build/config/BUILD.gn ('K') | « build/config/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698