Chromium Code Reviews| 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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 682 # $DYLD_LIBRARY_PATH to pick up the right version of the linker plugin. | 682 # $DYLD_LIBRARY_PATH to pick up the right version of the linker plugin. |
| 683 # TODO(pcc): Teach build system to use -lto_library flag to specify path | 683 # TODO(pcc): Teach build system to use -lto_library flag to specify path |
| 684 # to linker plugin on Mac. | 684 # to linker plugin on Mac. |
| 685 # | 685 # |
| 686 # On Android/GCC, the variables must *not* be enabled at the same time. | 686 # On Android/GCC, the variables must *not* be enabled at the same time. |
| 687 # In this case LTO would 'merge' the optimization flags at link-time | 687 # In this case LTO would 'merge' the optimization flags at link-time |
| 688 # which would lead to all code be optimized with -O2. See crbug.com/407544 | 688 # which would lead to all code be optimized with -O2. See crbug.com/407544 |
| 689 'use_lto%': 0, | 689 'use_lto%': 0, |
| 690 'use_lto_o2%': 0, | 690 'use_lto_o2%': 0, |
| 691 | 691 |
| 692 # Allowed level of identical code folding in the gold linker. | |
| 693 'gold_icf_level%': 'all', | |
| 694 | |
| 695 # Libxkbcommon usage. | 692 # Libxkbcommon usage. |
| 696 'use_xkbcommon%': 0, | 693 'use_xkbcommon%': 0, |
| 697 | 694 |
| 698 # Whether we use GTKv3 on linux. | 695 # Whether we use GTKv3 on linux. |
| 699 'use_gtk3%': 0, | 696 'use_gtk3%': 0, |
| 700 | 697 |
| 701 # Control Flow Integrity for virtual calls and casts. | 698 # Control Flow Integrity for virtual calls and casts. |
| 702 # See http://clang.llvm.org/docs/ControlFlowIntegrity.html | 699 # See http://clang.llvm.org/docs/ControlFlowIntegrity.html |
| 703 'cfi_vptr%': 0, | 700 'cfi_vptr%': 0, |
| 704 'cfi_diag%': 0, | 701 'cfi_diag%': 0, |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 910 # Whether PPAPI is enabled. | 907 # Whether PPAPI is enabled. |
| 911 ['OS=="android" or OS=="ios" or (embedded==1 and chromecast==0)', { | 908 ['OS=="android" or OS=="ios" or (embedded==1 and chromecast==0)', { |
| 912 'enable_plugins%': 0, | 909 'enable_plugins%': 0, |
| 913 }, { | 910 }, { |
| 914 'enable_plugins%': 1, | 911 'enable_plugins%': 1, |
| 915 }], | 912 }], |
| 916 | 913 |
| 917 # linux_use_bundled_gold: whether to use the gold linker binary checked | 914 # linux_use_bundled_gold: whether to use the gold linker binary checked |
| 918 # into third_party/binutils. Force this off via GYP_DEFINES when you | 915 # into third_party/binutils. Force this off via GYP_DEFINES when you |
| 919 # are using a custom toolchain and need to control -B in ldflags. | 916 # are using a custom toolchain and need to control -B in ldflags. |
| 920 # Do not use 32-bit gold on 32-bit hosts as it runs out address space | 917 ['(OS=="linux" or OS=="android") and (target_arch=="x64" or target_arch= ="arm" or target_arch=="ia32")', { |
| 921 # for component=static_library builds. | |
|
Nico
2016/05/05 16:25:21
This comment is obsolete, we switched to 64-bit ho
| |
| 922 ['(OS=="linux" or OS=="android") and (target_arch=="x64" or target_arch= ="arm" or (target_arch=="ia32" and host_arch=="x64"))', { | |
| 923 'linux_use_bundled_gold%': 1, | 918 'linux_use_bundled_gold%': 1, |
| 924 }, { | 919 }, { |
| 925 'linux_use_bundled_gold%': 0, | 920 'linux_use_bundled_gold%': 0, |
| 926 }], | 921 }], |
| 927 | 922 |
| 923 # Allowed level of identical code folding in the gold linker. | |
| 924 # icf=all is buggy on ia32, so disabled by default. | |
|
Nico
2016/05/05 16:25:21
Where is this from? I can't see evidence of this,
| |
| 925 ['(OS=="linux" and (target_arch=="ia32"))', { | |
| 926 'gold_icf_level%': 'none', | |
| 927 }, { | |
| 928 'gold_icf_level%': 'all', | |
| 929 }], | |
| 930 | |
| 928 # linux_use_bundled_binutils: whether to use the binary binutils | 931 # linux_use_bundled_binutils: whether to use the binary binutils |
| 929 # checked into third_party/binutils. These are not multi-arch so cannot | 932 # checked into third_party/binutils. These are not multi-arch so cannot |
| 930 # be used except on x86 and x86-64 (the only two architectures which | 933 # be used except on x86 and x86-64 (the only two architectures which |
| 931 # are currently checke in). Force this off via GYP_DEFINES when you | 934 # are currently checke in). Force this off via GYP_DEFINES when you |
| 932 # are using a custom toolchain and need to control -B in cflags. | 935 # are using a custom toolchain and need to control -B in cflags. |
| 933 ['OS=="linux" and (target_arch=="x64")', { | 936 ['OS=="linux" and (target_arch=="x64")', { |
| 934 'linux_use_bundled_binutils%': 1, | 937 'linux_use_bundled_binutils%': 1, |
| 935 }, { | 938 }, { |
| 936 'linux_use_bundled_binutils%': 0, | 939 'linux_use_bundled_binutils%': 0, |
| 937 }], | 940 }], |
| 938 | 941 |
| 939 # linux_use_gold_flags: whether to use build flags that rely on gold. | 942 # linux_use_gold_flags: whether to use build flags that rely on gold. |
| 940 # On by default for x64 Linux. | 943 ['OS=="linux" and (target_arch=="x64" or target_arch=="ia32" or target_a rch=="arm")', { |
| 941 ['OS=="linux" and target_arch=="x64"', { | |
| 942 'linux_use_gold_flags%': 1, | 944 'linux_use_gold_flags%': 1, |
| 943 }, { | 945 }, { |
| 944 'linux_use_gold_flags%': 0, | 946 'linux_use_gold_flags%': 0, |
| 945 }], | 947 }], |
| 946 | 948 |
| 947 # linux_use_debug_fission: whether to use split DWARF debug info | 949 # linux_use_debug_fission: whether to use split DWARF debug info |
| 948 # files. This can reduce link time significantly, but is incompatible | 950 # files. This can reduce link time significantly, but is incompatible |
| 949 # with some utilities such as icecc and ccache. Requires gold and | 951 # with some utilities such as icecc and ccache. Requires gold and |
| 950 # gcc >= 4.8 or clang. | 952 # gcc >= 4.8 or clang. |
| 951 # http://gcc.gnu.org/wiki/DebugFission | 953 # http://gcc.gnu.org/wiki/DebugFission |
| (...skipping 5372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6324 # settings in target dicts. SYMROOT is a special case, because many other | 6326 # settings in target dicts. SYMROOT is a special case, because many other |
| 6325 # Xcode variables depend on it, including variables such as | 6327 # Xcode variables depend on it, including variables such as |
| 6326 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6328 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 6327 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6329 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 6328 # files to appear (when present) in the UI as actual files and not red | 6330 # files to appear (when present) in the UI as actual files and not red |
| 6329 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6331 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 6330 # and therefore SYMROOT, needs to be set at the project level. | 6332 # and therefore SYMROOT, needs to be set at the project level. |
| 6331 'SYMROOT': '<(DEPTH)/xcodebuild', | 6333 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 6332 }, | 6334 }, |
| 6333 } | 6335 } |
| OLD | NEW |