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 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1294 # The version of GCC in use, set later in platforms that use GCC and have | 1294 # The version of GCC in use, set later in platforms that use GCC and have |
1295 # not explicitly chosen to build with clang. Currently, this means all | 1295 # not explicitly chosen to build with clang. Currently, this means all |
1296 # platforms except Windows, Mac and iOS. | 1296 # platforms except Windows, Mac and iOS. |
1297 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so that | 1297 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so that |
1298 # it takes effect here. | 1298 # it takes effect here. |
1299 ['os_posix==1 and OS!="mac" and OS!="ios" and clang==0 and asan==0 and lsa n==0 and tsan==0 and msan==0', { | 1299 ['os_posix==1 and OS!="mac" and OS!="ios" and clang==0 and asan==0 and lsa n==0 and tsan==0 and msan==0', { |
1300 'conditions': [ | 1300 'conditions': [ |
1301 ['OS=="android"', { | 1301 ['OS=="android"', { |
1302 # We directly set the gcc_version since we know what we use. | 1302 # We directly set the gcc_version since we know what we use. |
1303 'gcc_version%': 46, | 1303 'gcc_version%': 46, |
1304 'binutils_version%': 222, | |
1304 }, { | 1305 }, { |
1305 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', | 1306 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', |
1307 'binutils_version%': '<!(python <(DEPTH)/build/compiler_version.py a ssembler)', | |
1306 }], | 1308 }], |
1307 ], | 1309 ], |
1308 }, { | 1310 }, { |
1309 'gcc_version%': 0, | 1311 'gcc_version%': 0, |
1312 'binutils_version%': 0, | |
1310 }], | 1313 }], |
1311 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', { | 1314 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', { |
1312 'windows_sdk_path%': '<(windows_sdk_default_path)', | 1315 'windows_sdk_path%': '<(windows_sdk_default_path)', |
1313 }, { | 1316 }, { |
1314 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0', | 1317 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0', |
1315 }], | 1318 }], |
1316 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(directx_sdk_defa ult_path))"=="True"', { | 1319 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(directx_sdk_defa ult_path))"=="True"', { |
1317 'directx_sdk_path%': '<(directx_sdk_default_path)', | 1320 'directx_sdk_path%': '<(directx_sdk_default_path)', |
1318 }, { | 1321 }, { |
1319 'directx_sdk_path%': '$(DXSDK_DIR)', | 1322 'directx_sdk_path%': '$(DXSDK_DIR)', |
(...skipping 1757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3077 ['OS=="linux" and target_arch=="ia32"', { | 3080 ['OS=="linux" and target_arch=="ia32"', { |
3078 'ldflags': [ | 3081 'ldflags': [ |
3079 '-Wl,--no-as-needed', | 3082 '-Wl,--no-as-needed', |
3080 ], | 3083 ], |
3081 }], | 3084 }], |
3082 ['debug_unwind_tables==1', { | 3085 ['debug_unwind_tables==1', { |
3083 'cflags': ['-funwind-tables'], | 3086 'cflags': ['-funwind-tables'], |
3084 }, { | 3087 }, { |
3085 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'], | 3088 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'], |
3086 }], | 3089 }], |
3090 # http://gcc.gnu.org/wiki/DebugFission | |
3091 # Requires gold and gcc >= 4.7 or clang. | |
3092 ['linux_use_gold_flags==1 and (clang==1 or gcc_version>=47) and bi nutils_version>=223', { | |
ostap
2014/03/18 16:00:06
I have gold 1.11, binutils 2.23.2 and gcc 4.7.3 on
| |
3093 'cflags': ['-gsplit-dwarf'], | |
3094 'ldflags': ['-Wl,--gdb-index'], | |
3095 }], | |
3087 ], | 3096 ], |
3088 }, | 3097 }, |
3089 'Release_Base': { | 3098 'Release_Base': { |
3090 'variables': { | 3099 'variables': { |
3091 'release_optimize%': '2', | 3100 'release_optimize%': '2', |
3092 # Binaries become big and gold is unable to perform GC | 3101 # Binaries become big and gold is unable to perform GC |
3093 # and remove unused sections for some of test targets | 3102 # and remove unused sections for some of test targets |
3094 # on 32 bit platform. | 3103 # on 32 bit platform. |
3095 # (This is currently observed only in chromeos valgrind bots) | 3104 # (This is currently observed only in chromeos valgrind bots) |
3096 # The following flag is to disable --gc-sections linker | 3105 # The following flag is to disable --gc-sections linker |
(...skipping 1945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5042 # settings in target dicts. SYMROOT is a special case, because many other | 5051 # settings in target dicts. SYMROOT is a special case, because many other |
5043 # Xcode variables depend on it, including variables such as | 5052 # Xcode variables depend on it, including variables such as |
5044 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5053 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5045 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5054 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5046 # files to appear (when present) in the UI as actual files and not red | 5055 # files to appear (when present) in the UI as actual files and not red |
5047 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5056 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5048 # and therefore SYMROOT, needs to be set at the project level. | 5057 # and therefore SYMROOT, needs to be set at the project level. |
5049 'SYMROOT': '<(DEPTH)/xcodebuild', | 5058 'SYMROOT': '<(DEPTH)/xcodebuild', |
5050 }, | 5059 }, |
5051 } | 5060 } |
OLD | NEW |