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 1334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1345 # Set to 1 to compile with MSE support for MPEG2 TS | 1345 # Set to 1 to compile with MSE support for MPEG2 TS |
1346 'enable_mpeg2ts_stream_parser%': 0, | 1346 'enable_mpeg2ts_stream_parser%': 0, |
1347 | 1347 |
1348 'conditions': [ | 1348 'conditions': [ |
1349 # Enable the Syzygy optimization step for the official builds. | 1349 # Enable the Syzygy optimization step for the official builds. |
1350 ['OS=="win" and buildtype=="Official" and syzyasan!=1', { | 1350 ['OS=="win" and buildtype=="Official" and syzyasan!=1', { |
1351 'syzygy_optimize%': 1, | 1351 'syzygy_optimize%': 1, |
1352 }, { | 1352 }, { |
1353 'syzygy_optimize%': 0, | 1353 'syzygy_optimize%': 0, |
1354 }], | 1354 }], |
1355 | 1355 # Get binutils version so we can enable debug fission if we can. |
1356 ['os_posix==1 and OS!="mac" and OS!="ios"', { | |
1357 'conditions': [ | |
1358 # compiler_version doesn't work with clang | |
1359 # TODO(mithro): Land https://codereview.chromium.org/199793014/ so | |
1360 # compiler_version works with clang. | |
1361 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so | |
1362 # that it takes effect here. | |
1363 ['clang==0 and asan==0 and lsan==0 and tsan==0 and msan==0', { | |
mithro-old
2014/04/04 18:19:52
This fix copied from https://code.google.com/p/chr
| |
1364 'binutils_version%': '<!(python <(DEPTH)/build/compiler_version.py a ssembler)', | |
1365 }], | |
1366 # On Android we know the binutils version in the toolchain. | |
1367 ['OS=="android"', { | |
1368 'binutils_version%': 222, | |
1369 }], | |
1370 # Our version of binutils in third_party/binutils | |
1371 ['linux_use_gold_binary==1', { | |
1372 'binutils_version%': 224, | |
1373 'conditions': [ | |
1374 ['host_arch=="x64"', { | |
1375 'binutils_dir%': 'third_party/binutils/Linux_x64/Release/bin', | |
1376 }], | |
1377 ['host_arch=="ia32"', { | |
1378 'binutils_dir%': 'third_party/binutils/Linux_ia32/Release/bin', | |
1379 }], | |
1380 ], | |
1381 }], | |
1382 ], | |
1383 }, { | |
1384 'binutils_version%': 0, | |
1385 }], | |
1356 # The version of GCC in use, set later in platforms that use GCC and have | 1386 # The version of GCC in use, set later in platforms that use GCC and have |
1357 # not explicitly chosen to build with clang. Currently, this means all | 1387 # not explicitly chosen to build with clang. Currently, this means all |
1358 # platforms except Windows, Mac and iOS. | 1388 # platforms except Windows, Mac and iOS. |
1359 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so that | 1389 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so that |
1360 # it takes effect here. | 1390 # it takes effect here. |
1361 ['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', { | 1391 ['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', { |
1362 'conditions': [ | 1392 'conditions': [ |
1363 ['OS=="android"', { | 1393 ['OS=="android"', { |
1364 # We directly set the gcc_version since we know what we use. | 1394 # We directly set the gcc_version since we know what we use. |
1365 'conditions': [ | 1395 'conditions': [ |
1366 ['target_arch=="x64" or target_arch=="arm64"', { | 1396 ['target_arch=="x64" or target_arch=="arm64"', { |
1367 'gcc_version%': 48, | 1397 'gcc_version%': 48, |
1368 }, { | 1398 }, { |
1369 'gcc_version%': 46, | 1399 'gcc_version%': 46, |
1370 }], | 1400 }], |
1371 ], | 1401 ], |
1372 'binutils_version%': 222, | |
1373 }, { | 1402 }, { |
1374 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', | 1403 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', |
1375 'binutils_version%': '<!(python <(DEPTH)/build/compiler_version.py a ssembler)', | |
1376 }], | 1404 }], |
1377 ], | 1405 ], |
1378 }, { | 1406 }, { |
1379 'gcc_version%': 0, | 1407 'gcc_version%': 0, |
1380 'binutils_version%': 0, | |
1381 }], | 1408 }], |
1382 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', { | 1409 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', { |
1383 'windows_sdk_path%': '<(windows_sdk_default_path)', | 1410 'windows_sdk_path%': '<(windows_sdk_default_path)', |
1384 }, { | 1411 }, { |
1385 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0', | 1412 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0', |
1386 }], | 1413 }], |
1387 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(directx_sdk_defa ult_path))"=="True"', { | 1414 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(directx_sdk_defa ult_path))"=="True"', { |
1388 'directx_sdk_path%': '<(directx_sdk_default_path)', | 1415 'directx_sdk_path%': '<(directx_sdk_default_path)', |
1389 }, { | 1416 }, { |
1390 'directx_sdk_path%': '$(DXSDK_DIR)', | 1417 'directx_sdk_path%': '$(DXSDK_DIR)', |
(...skipping 1789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3180 '-Wl,--no-as-needed', | 3207 '-Wl,--no-as-needed', |
3181 ], | 3208 ], |
3182 }], | 3209 }], |
3183 ['debug_unwind_tables==1', { | 3210 ['debug_unwind_tables==1', { |
3184 'cflags': ['-funwind-tables'], | 3211 'cflags': ['-funwind-tables'], |
3185 }, { | 3212 }, { |
3186 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'], | 3213 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'], |
3187 }], | 3214 }], |
3188 # http://gcc.gnu.org/wiki/DebugFission | 3215 # http://gcc.gnu.org/wiki/DebugFission |
3189 # Requires gold and gcc >= 4.8 or clang. | 3216 # Requires gold and gcc >= 4.8 or clang. |
3190 ['linux_use_gold_flags==1 and (clang==1 or gcc_version>=48) and bi nutils_version>=223', { | 3217 ['linux_use_gold_flags==1 and (clang==1 or gcc_version>=48) and bi nutils_version>=223 and use_goma==0', { |
3191 'cflags': ['-gsplit-dwarf'], | 3218 'cflags': ['-gsplit-dwarf'], |
3192 'ldflags': ['-Wl,--gdb-index'], | 3219 'ldflags': ['-Wl,--gdb-index'], |
3193 }], | 3220 }], |
3194 ], | 3221 ], |
3195 }, | 3222 }, |
3196 'Release_Base': { | 3223 'Release_Base': { |
3197 'variables': { | 3224 'variables': { |
3198 'release_optimize%': '2', | 3225 'release_optimize%': '2', |
3199 # Binaries become big and gold is unable to perform GC | 3226 # Binaries become big and gold is unable to perform GC |
3200 # and remove unused sections for some of test targets | 3227 # and remove unused sections for some of test targets |
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3850 # now. | 3877 # now. |
3851 #'-Wl,--icf=safe', | 3878 #'-Wl,--icf=safe', |
3852 '-Wl,--icf=none', | 3879 '-Wl,--icf=none', |
3853 ], | 3880 ], |
3854 }], | 3881 }], |
3855 ], | 3882 ], |
3856 }], | 3883 }], |
3857 ], | 3884 ], |
3858 }], | 3885 }], |
3859 ['linux_use_gold_binary==1', { | 3886 ['linux_use_gold_binary==1', { |
3887 # Put our binutils, which contains gold in the search path. We pass | |
3888 # the path to gold to the compiler. gyp leaves unspecified what the | |
3889 # cwd is when running the compiler, so the normal gyp path-munging | |
3890 # fails us. This hack gets the right path. | |
3891 'cflags': [ | |
3892 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_dir)', | |
3893 ], | |
3860 'ldflags': [ | 3894 'ldflags': [ |
3861 # Put our gold binary in the search path for the linker. | 3895 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_dir)', |
3862 # We pass the path to gold to the compiler. gyp leaves | |
3863 # unspecified what the cwd is when running the compiler, | |
3864 # so the normal gyp path-munging fails us. This hack | |
3865 # gets the right path. | |
3866 '-B<!(cd <(DEPTH) && pwd -P)/third_party/gold', | |
3867 ], | 3896 ], |
3868 }], | 3897 }], |
3869 ], | 3898 ], |
3870 }, | 3899 }, |
3871 }], | 3900 }], |
3872 # FreeBSD-specific options; note that most FreeBSD options are set above, | 3901 # FreeBSD-specific options; note that most FreeBSD options are set above, |
3873 # with Linux. | 3902 # with Linux. |
3874 ['OS=="freebsd"', { | 3903 ['OS=="freebsd"', { |
3875 'target_defaults': { | 3904 'target_defaults': { |
3876 'ldflags': [ | 3905 'ldflags': [ |
(...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5217 # settings in target dicts. SYMROOT is a special case, because many other | 5246 # settings in target dicts. SYMROOT is a special case, because many other |
5218 # Xcode variables depend on it, including variables such as | 5247 # Xcode variables depend on it, including variables such as |
5219 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5248 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5220 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5249 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5221 # files to appear (when present) in the UI as actual files and not red | 5250 # files to appear (when present) in the UI as actual files and not red |
5222 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5251 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5223 # and therefore SYMROOT, needs to be set at the project level. | 5252 # and therefore SYMROOT, needs to be set at the project level. |
5224 'SYMROOT': '<(DEPTH)/xcodebuild', | 5253 'SYMROOT': '<(DEPTH)/xcodebuild', |
5225 }, | 5254 }, |
5226 } | 5255 } |
OLD | NEW |