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