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 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 853 'enable_plugins%': 0, | 853 'enable_plugins%': 0, |
| 854 }, { | 854 }, { |
| 855 'enable_plugins%': 1, | 855 'enable_plugins%': 1, |
| 856 }], | 856 }], |
| 857 | 857 |
| 858 # linux_use_bundled_gold: whether to use the gold linker binary checked | 858 # linux_use_bundled_gold: whether to use the gold linker binary checked |
| 859 # into third_party/binutils. Force this off via GYP_DEFINES when you | 859 # into third_party/binutils. Force this off via GYP_DEFINES when you |
| 860 # are using a custom toolchain and need to control -B in ldflags. | 860 # are using a custom toolchain and need to control -B in ldflags. |
| 861 # Do not use 32-bit gold on 32-bit hosts as it runs out address space | 861 # Do not use 32-bit gold on 32-bit hosts as it runs out address space |
| 862 # for component=static_library builds. | 862 # for component=static_library builds. |
| 863 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm")', { | 863 ['(OS=="linux" or OS=="android") and (target_arch=="x64" or target_arch= ="arm")', { |
|
pasko
2015/04/15 17:28:42
since it is now also used for android, shall we re
pcc1
2015/04/15 21:19:01
I'll see if I can rename it in a follow-up change
| |
| 864 'linux_use_bundled_gold%': 1, | 864 'linux_use_bundled_gold%': 1, |
| 865 }, { | 865 }, { |
| 866 'linux_use_bundled_gold%': 0, | 866 'linux_use_bundled_gold%': 0, |
| 867 }], | 867 }], |
| 868 | 868 |
| 869 # linux_use_bundled_binutils: whether to use the binary binutils | 869 # linux_use_bundled_binutils: whether to use the binary binutils |
| 870 # checked into third_party/binutils. These are not multi-arch so cannot | 870 # checked into third_party/binutils. These are not multi-arch so cannot |
| 871 # be used except on x86 and x86-64 (the only two architectures which | 871 # be used except on x86 and x86-64 (the only two architectures which |
| 872 # are currently checke in). Force this off via GYP_DEFINES when you | 872 # are currently checke in). Force this off via GYP_DEFINES when you |
| 873 # are using a custom toolchain and need to control -B in cflags. | 873 # are using a custom toolchain and need to control -B in cflags. |
| (...skipping 3136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4010 '-finline-limit=64', | 4010 '-finline-limit=64', |
| 4011 '-fno-tree-sra', | 4011 '-fno-tree-sra', |
| 4012 '-fno-caller-saves', | 4012 '-fno-caller-saves', |
| 4013 '-Wno-psabi', | 4013 '-Wno-psabi', |
| 4014 ], | 4014 ], |
| 4015 'cflags': [ | 4015 'cflags': [ |
| 4016 # TODO(hans) Enable integrated-as (crbug.com/124610). | 4016 # TODO(hans) Enable integrated-as (crbug.com/124610). |
| 4017 '-no-integrated-as', | 4017 '-no-integrated-as', |
| 4018 '-B<(android_toolchain)', # Else /usr/bin/as gets pic ked up. | 4018 '-B<(android_toolchain)', # Else /usr/bin/as gets pic ked up. |
| 4019 ], | 4019 ], |
| 4020 }], | |
| 4021 ['clang==1 and linux_use_bundled_gold==0', { | |
| 4020 'ldflags': [ | 4022 'ldflags': [ |
| 4021 # Let clang find the ld.gold in the NDK. | 4023 # Let clang find the ld.gold in the NDK. |
| 4022 '--gcc-toolchain=<(android_toolchain)/..', | 4024 '--gcc-toolchain=<(android_toolchain)/..', |
| 4023 ], | 4025 ], |
| 4024 }], | 4026 }], |
| 4025 ['asan==1', { | 4027 ['asan==1', { |
| 4026 'cflags': [ | 4028 'cflags': [ |
| 4027 '-marm', # Required for frame pointer based stack trac es. | 4029 '-marm', # Required for frame pointer based stack trac es. |
| 4028 ], | 4030 ], |
| 4029 }], | 4031 }], |
| (...skipping 2070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6100 # settings in target dicts. SYMROOT is a special case, because many other | 6102 # settings in target dicts. SYMROOT is a special case, because many other |
| 6101 # Xcode variables depend on it, including variables such as | 6103 # Xcode variables depend on it, including variables such as |
| 6102 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6104 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 6103 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6105 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 6104 # files to appear (when present) in the UI as actual files and not red | 6106 # files to appear (when present) in the UI as actual files and not red |
| 6105 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6107 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 6106 # and therefore SYMROOT, needs to be set at the project level. | 6108 # and therefore SYMROOT, needs to be set at the project level. |
| 6107 'SYMROOT': '<(DEPTH)/xcodebuild', | 6109 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 6108 }, | 6110 }, |
| 6109 } | 6111 } |
| OLD | NEW |