OLD | NEW |
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 Loading... |
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 }], | |
388 ], | 379 ], |
389 }, | 380 }, |
390 | 381 |
391 # Copy conditionally-set variables out one scope. | 382 # Copy conditionally-set variables out one scope. |
392 'branding%': '<(branding)', | 383 'branding%': '<(branding)', |
393 'buildtype%': '<(buildtype)', | 384 'buildtype%': '<(buildtype)', |
394 'target_arch%': '<(target_arch)', | 385 'target_arch%': '<(target_arch)', |
395 'host_arch%': '<(host_arch)', | 386 'host_arch%': '<(host_arch)', |
396 'library%': 'static_library', | 387 'library%': 'static_library', |
397 'toolkit_views%': '<(toolkit_views)', | 388 'toolkit_views%': '<(toolkit_views)', |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 'safe_browsing%': '<(safe_browsing)', | 427 'safe_browsing%': '<(safe_browsing)', |
437 'input_speech%': '<(input_speech)', | 428 'input_speech%': '<(input_speech)', |
438 'notifications%': '<(notifications)', | 429 'notifications%': '<(notifications)', |
439 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', | 430 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', |
440 'asan%': '<(asan)', | 431 'asan%': '<(asan)', |
441 'order_text_section%': '<(order_text_section)', | 432 'order_text_section%': '<(order_text_section)', |
442 'enable_register_protocol_handler%': '<(enable_register_protocol_handler)', | 433 'enable_register_protocol_handler%': '<(enable_register_protocol_handler)', |
443 'enable_web_intents%': '<(enable_web_intents)', | 434 'enable_web_intents%': '<(enable_web_intents)', |
444 'enable_web_intents_tag%': '<(enable_web_intents_tag)', | 435 'enable_web_intents_tag%': '<(enable_web_intents_tag)', |
445 'enable_plugin_installation%': '<(enable_plugin_installation)', | 436 'enable_plugin_installation%': '<(enable_plugin_installation)', |
446 'linux_use_gold_binary%': '<(linux_use_gold_binary)', | |
447 'use_canvas_skia_skia%': '<(use_canvas_skia_skia)', | 437 'use_canvas_skia_skia%': '<(use_canvas_skia_skia)', |
448 # Whether to build for Wayland display server | 438 # Whether to build for Wayland display server |
449 'use_wayland%': 0, | 439 'use_wayland%': 0, |
450 | 440 |
451 # Use system yasm instead of bundled one. | 441 # Use system yasm instead of bundled one. |
452 'use_system_yasm%': 0, | 442 'use_system_yasm%': 0, |
453 | 443 |
454 # Default to enabled PIE; this is important for ASLR but we need to be | 444 # Default to enabled PIE; this is important for ASLR but we need to be |
455 # able to turn it off for remote debugging on Chromium OS | 445 # able to turn it off for remote debugging on Chromium OS |
456 'linux_disable_pie%': 0, | 446 'linux_disable_pie%': 0, |
(...skipping 1527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1984 'variables': {'linux_use_tcmalloc%': 1}, | 1974 'variables': {'linux_use_tcmalloc%': 1}, |
1985 'defines': ['USE_HEAPCHECKER'], | 1975 'defines': ['USE_HEAPCHECKER'], |
1986 }], | 1976 }], |
1987 ['linux_use_tcmalloc==0', { | 1977 ['linux_use_tcmalloc==0', { |
1988 'defines': ['NO_TCMALLOC'], | 1978 'defines': ['NO_TCMALLOC'], |
1989 }], | 1979 }], |
1990 ['linux_keep_shadow_stacks==1', { | 1980 ['linux_keep_shadow_stacks==1', { |
1991 'defines': ['KEEP_SHADOW_STACKS'], | 1981 'defines': ['KEEP_SHADOW_STACKS'], |
1992 'cflags': ['-finstrument-functions'], | 1982 'cflags': ['-finstrument-functions'], |
1993 }], | 1983 }], |
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 }], | |
2007 ], | 1984 ], |
2008 }, | 1985 }, |
2009 }], | 1986 }], |
2010 # FreeBSD-specific options; note that most FreeBSD options are set above, | 1987 # FreeBSD-specific options; note that most FreeBSD options are set above, |
2011 # with Linux. | 1988 # with Linux. |
2012 ['OS=="freebsd"', { | 1989 ['OS=="freebsd"', { |
2013 'target_defaults': { | 1990 'target_defaults': { |
2014 'ldflags': [ | 1991 'ldflags': [ |
2015 '-Wl,--no-keep-memory', | 1992 '-Wl,--no-keep-memory', |
2016 ], | 1993 ], |
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2761 # settings in target dicts. SYMROOT is a special case, because many other | 2738 # settings in target dicts. SYMROOT is a special case, because many other |
2762 # Xcode variables depend on it, including variables such as | 2739 # Xcode variables depend on it, including variables such as |
2763 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 2740 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
2764 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 2741 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
2765 # files to appear (when present) in the UI as actual files and not red | 2742 # files to appear (when present) in the UI as actual files and not red |
2766 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 2743 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
2767 # and therefore SYMROOT, needs to be set at the project level. | 2744 # and therefore SYMROOT, needs to be set at the project level. |
2768 'SYMROOT': '<(DEPTH)/xcodebuild', | 2745 'SYMROOT': '<(DEPTH)/xcodebuild', |
2769 }, | 2746 }, |
2770 } | 2747 } |
OLD | NEW |