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

Side by Side Diff: build/common.gypi

Issue 9316002: linux: use an in-tree copy of gold by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: new gold Created 8 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 | « DEPS ('k') | tools/licenses.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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 # Turn precompiled headers on by default for VS 2010. 369 # Turn precompiled headers on by default for VS 2010.
370 ['OS=="win" and MSVS_VERSION=="2010"', { 370 ['OS=="win" and MSVS_VERSION=="2010"', {
371 'chromium_win_pch%': 1 371 'chromium_win_pch%': 1
372 }], 372 }],
373 373
374 ['use_aura==1 or chromeos==1', { 374 ['use_aura==1 or chromeos==1', {
375 'enable_plugin_installation%': 0, 375 'enable_plugin_installation%': 0,
376 }, { 376 }, {
377 'enable_plugin_installation%': 1, 377 'enable_plugin_installation%': 1,
378 }], 378 }],
379
380 # Set to 0 to not use third_party/gold as the linker.
381 # On by default for x64 Linux. Off for ChromeOS as cross-compiling
382 # makes things complicated.
383 ['chromeos==0 and host_arch=="x64"', {
384 'linux_use_gold_binary%': 1,
385 }, {
386 'linux_use_gold_binary%': 0,
387 }],
379 ], 388 ],
380 }, 389 },
381 390
382 # Copy conditionally-set variables out one scope. 391 # Copy conditionally-set variables out one scope.
383 'branding%': '<(branding)', 392 'branding%': '<(branding)',
384 'buildtype%': '<(buildtype)', 393 'buildtype%': '<(buildtype)',
385 'target_arch%': '<(target_arch)', 394 'target_arch%': '<(target_arch)',
386 'host_arch%': '<(host_arch)', 395 'host_arch%': '<(host_arch)',
387 'library%': 'static_library', 396 'library%': 'static_library',
388 'toolkit_views%': '<(toolkit_views)', 397 'toolkit_views%': '<(toolkit_views)',
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 'safe_browsing%': '<(safe_browsing)', 436 'safe_browsing%': '<(safe_browsing)',
428 'input_speech%': '<(input_speech)', 437 'input_speech%': '<(input_speech)',
429 'notifications%': '<(notifications)', 438 'notifications%': '<(notifications)',
430 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', 439 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)',
431 'asan%': '<(asan)', 440 'asan%': '<(asan)',
432 'order_text_section%': '<(order_text_section)', 441 'order_text_section%': '<(order_text_section)',
433 'enable_register_protocol_handler%': '<(enable_register_protocol_handler)', 442 'enable_register_protocol_handler%': '<(enable_register_protocol_handler)',
434 'enable_web_intents%': '<(enable_web_intents)', 443 'enable_web_intents%': '<(enable_web_intents)',
435 'enable_web_intents_tag%': '<(enable_web_intents_tag)', 444 'enable_web_intents_tag%': '<(enable_web_intents_tag)',
436 'enable_plugin_installation%': '<(enable_plugin_installation)', 445 'enable_plugin_installation%': '<(enable_plugin_installation)',
446 'linux_use_gold_binary%': '<(linux_use_gold_binary)',
437 'use_canvas_skia_skia%': '<(use_canvas_skia_skia)', 447 'use_canvas_skia_skia%': '<(use_canvas_skia_skia)',
438 # Whether to build for Wayland display server 448 # Whether to build for Wayland display server
439 'use_wayland%': 0, 449 'use_wayland%': 0,
440 450
441 # Use system yasm instead of bundled one. 451 # Use system yasm instead of bundled one.
442 'use_system_yasm%': 0, 452 'use_system_yasm%': 0,
443 453
444 # Default to enabled PIE; this is important for ASLR but we need to be 454 # Default to enabled PIE; this is important for ASLR but we need to be
445 # able to turn it off for remote debugging on Chromium OS 455 # able to turn it off for remote debugging on Chromium OS
446 'linux_disable_pie%': 0, 456 'linux_disable_pie%': 0,
(...skipping 1527 matching lines...) Expand 10 before | Expand all | Expand 10 after
1974 'variables': {'linux_use_tcmalloc%': 1}, 1984 'variables': {'linux_use_tcmalloc%': 1},
1975 'defines': ['USE_HEAPCHECKER'], 1985 'defines': ['USE_HEAPCHECKER'],
1976 }], 1986 }],
1977 ['linux_use_tcmalloc==0', { 1987 ['linux_use_tcmalloc==0', {
1978 'defines': ['NO_TCMALLOC'], 1988 'defines': ['NO_TCMALLOC'],
1979 }], 1989 }],
1980 ['linux_keep_shadow_stacks==1', { 1990 ['linux_keep_shadow_stacks==1', {
1981 'defines': ['KEEP_SHADOW_STACKS'], 1991 'defines': ['KEEP_SHADOW_STACKS'],
1982 'cflags': ['-finstrument-functions'], 1992 'cflags': ['-finstrument-functions'],
1983 }], 1993 }],
1994 ['linux_use_gold_binary==1', {
1995 'variables': {
1996 # We pass the path to gold to the compiler. gyp leaves
1997 # unspecified what the cwd is when running the compiler,
1998 # so the normal gyp path-munging fails us. This hack
1999 # gets the right path.
2000 'gold_path': '<(PRODUCT_DIR)/../../third_party/gold',
2001 },
2002 'ldflags': [
2003 # Put our gold binary in the search path for the linker.
2004 '-B<(gold_path)',
2005 ],
2006 }],
1984 ], 2007 ],
1985 }, 2008 },
1986 }], 2009 }],
1987 # FreeBSD-specific options; note that most FreeBSD options are set above, 2010 # FreeBSD-specific options; note that most FreeBSD options are set above,
1988 # with Linux. 2011 # with Linux.
1989 ['OS=="freebsd"', { 2012 ['OS=="freebsd"', {
1990 'target_defaults': { 2013 'target_defaults': {
1991 'ldflags': [ 2014 'ldflags': [
1992 '-Wl,--no-keep-memory', 2015 '-Wl,--no-keep-memory',
1993 ], 2016 ],
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
2738 # settings in target dicts. SYMROOT is a special case, because many other 2761 # settings in target dicts. SYMROOT is a special case, because many other
2739 # Xcode variables depend on it, including variables such as 2762 # Xcode variables depend on it, including variables such as
2740 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 2763 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
2741 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 2764 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
2742 # files to appear (when present) in the UI as actual files and not red 2765 # files to appear (when present) in the UI as actual files and not red
2743 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 2766 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
2744 # and therefore SYMROOT, needs to be set at the project level. 2767 # and therefore SYMROOT, needs to be set at the project level.
2745 'SYMROOT': '<(DEPTH)/xcodebuild', 2768 'SYMROOT': '<(DEPTH)/xcodebuild',
2746 }, 2769 },
2747 } 2770 }
OLDNEW
« no previous file with comments | « DEPS ('k') | tools/licenses.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698