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 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1301 # The version of GCC in use, set later in platforms that use GCC and have | 1301 # The version of GCC in use, set later in platforms that use GCC and have |
1302 # not explicitly chosen to build with clang. Currently, this means all | 1302 # not explicitly chosen to build with clang. Currently, this means all |
1303 # platforms except Windows, Mac and iOS. | 1303 # platforms except Windows, Mac and iOS. |
1304 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so that | 1304 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so that |
1305 # it takes effect here. | 1305 # it takes effect here. |
1306 ['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', { | 1306 ['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', { |
1307 'conditions': [ | 1307 'conditions': [ |
1308 ['OS=="android"', { | 1308 ['OS=="android"', { |
1309 # We directly set the gcc_version since we know what we use. | 1309 # We directly set the gcc_version since we know what we use. |
1310 'gcc_version%': 46, | 1310 'gcc_version%': 46, |
1311 'binutils_version%': 222, | |
1312 }, { | 1311 }, { |
1313 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', | 1312 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', |
1314 'binutils_version%': '<!(python <(DEPTH)/build/compiler_version.py a ssembler)', | |
1315 }], | 1313 }], |
1316 ], | 1314 ], |
1317 }, { | 1315 }, { |
1318 'gcc_version%': 0, | 1316 'gcc_version%': 0, |
1319 'binutils_version%': 0, | |
1320 }], | 1317 }], |
1321 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', { | 1318 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', { |
1322 'windows_sdk_path%': '<(windows_sdk_default_path)', | 1319 'windows_sdk_path%': '<(windows_sdk_default_path)', |
1323 }, { | 1320 }, { |
1324 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0', | 1321 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0', |
1325 }], | 1322 }], |
1326 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(directx_sdk_defa ult_path))"=="True"', { | 1323 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(directx_sdk_defa ult_path))"=="True"', { |
1327 'directx_sdk_path%': '<(directx_sdk_default_path)', | 1324 'directx_sdk_path%': '<(directx_sdk_default_path)', |
1328 }, { | 1325 }, { |
1329 'directx_sdk_path%': '$(DXSDK_DIR)', | 1326 'directx_sdk_path%': '$(DXSDK_DIR)', |
1330 }], | 1327 }], |
1331 ['OS=="win"', { | 1328 ['OS=="win"', { |
1332 'windows_driver_kit_path%': '$(WDK_DIR)', | 1329 'windows_driver_kit_path%': '$(WDK_DIR)', |
1333 }], | 1330 }], |
1334 ['os_posix==1 and OS!="mac" and OS!="ios"', { | 1331 ['os_posix==1 and OS!="mac" and OS!="ios"', { |
1335 'conditions': [ | 1332 'conditions': [ |
1333 ['host_arch=="x64"', { | |
1334 'binutils_directory%': 'third_party/binutils/x86_64-unknown-linux-gn u/bin', | |
1335 }], | |
1336 ['host_arch=="ia32"', { | |
1337 'binutils_directory%': 'third_party/binutils/i686-pc-linux-gnu/bin', | |
1338 }], | |
1336 ['target_arch=="mipsel"', { | 1339 ['target_arch=="mipsel"', { |
1337 'werror%': '', | 1340 'werror%': '', |
1338 'disable_nacl%': 1, | 1341 'disable_nacl%': 1, |
1339 'nacl_untrusted_build%': 0, | 1342 'nacl_untrusted_build%': 0, |
1340 # TODO(dmikurube): Change the default of use_allocator to "none". | 1343 # TODO(dmikurube): Change the default of use_allocator to "none". |
1341 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 | 1344 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
1342 'linux_use_tcmalloc%': 0, | 1345 'linux_use_tcmalloc%': 0, |
1343 'use_allocator%': 'see_use_tcmalloc', | 1346 'use_allocator%': 'see_use_tcmalloc', |
1344 }], | 1347 }], |
1345 ['OS=="linux" and target_arch=="mipsel"', { | 1348 ['OS=="linux" and target_arch=="mipsel"', { |
(...skipping 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3043 'ldflags': [ | 3046 'ldflags': [ |
3044 '-pthread', '-Wl,-z,noexecstack', | 3047 '-pthread', '-Wl,-z,noexecstack', |
3045 ], | 3048 ], |
3046 'libraries' : [ | 3049 'libraries' : [ |
3047 '<(libraries_for_target)', | 3050 '<(libraries_for_target)', |
3048 ], | 3051 ], |
3049 'configurations': { | 3052 'configurations': { |
3050 'Debug_Base': { | 3053 'Debug_Base': { |
3051 'variables': { | 3054 'variables': { |
3052 'debug_optimize%': '0', | 3055 'debug_optimize%': '0', |
3056 'binutils_version%': '<!(python <(DEPTH)/build/compiler_version.py assembler)', | |
mithro-old
2014/03/19 08:36:28
I think this line needs to have the -B from below
| |
3053 }, | 3057 }, |
3054 'defines': [ | 3058 'defines': [ |
3055 '_DEBUG', | 3059 '_DEBUG', |
3056 ], | 3060 ], |
3057 'cflags': [ | 3061 'cflags': [ |
3058 '-O>(debug_optimize)', | 3062 '-O>(debug_optimize)', |
3059 '-g', | 3063 '-g', |
3064 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_directory)', | |
3065 ], | |
3066 'ldflags': [ | |
3067 # Put our binutils in the search path. gyp leaves | |
3068 # unspecified what the cwd is when running the compiler, | |
3069 # so the normal gyp path-munging fails us. This hack | |
3070 # gets the right path. | |
3071 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_directory)', | |
3060 ], | 3072 ], |
3061 'conditions' : [ | 3073 'conditions' : [ |
3062 ['OS=="android"', { | 3074 ['OS=="android"', { |
3063 'ldflags': [ | 3075 'ldflags': [ |
3064 # Only link with needed input sections. This is to avoid | 3076 # Only link with needed input sections. This is to avoid |
3065 # getting undefined reference to __cxa_bad_typeid in the CDU | 3077 # getting undefined reference to __cxa_bad_typeid in the CDU |
3066 # library. | 3078 # library. |
3067 '-Wl,--gc-sections', | 3079 '-Wl,--gc-sections', |
3068 # Warn in case of text relocations. | 3080 # Warn in case of text relocations. |
3069 '-Wl,--warn-shared-textrel', | 3081 '-Wl,--warn-shared-textrel', |
(...skipping 20 matching lines...) Expand all Loading... | |
3090 '-Wl,--no-as-needed', | 3102 '-Wl,--no-as-needed', |
3091 ], | 3103 ], |
3092 }], | 3104 }], |
3093 ['debug_unwind_tables==1', { | 3105 ['debug_unwind_tables==1', { |
3094 'cflags': ['-funwind-tables'], | 3106 'cflags': ['-funwind-tables'], |
3095 }, { | 3107 }, { |
3096 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'], | 3108 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'], |
3097 }], | 3109 }], |
3098 # http://gcc.gnu.org/wiki/DebugFission | 3110 # http://gcc.gnu.org/wiki/DebugFission |
3099 # Requires gold and gcc >= 4.7 or clang. | 3111 # Requires gold and gcc >= 4.7 or clang. |
3100 ['linux_use_gold_flags==1 and (clang==1 or gcc_version>=47) and bi nutils_version>=223', { | 3112 ['linux_use_gold_flags==1 and (clang==1 or gcc_version>=47)', { |
3101 'cflags': ['-gsplit-dwarf'], | 3113 'cflags': ['-gsplit-dwarf'], |
3102 'ldflags': ['-Wl,--gdb-index'], | 3114 'ldflags': ['-Wl,--gdb-index'], |
3103 }], | 3115 }], |
3104 ], | 3116 ], |
3105 }, | 3117 }, |
3106 'Release_Base': { | 3118 'Release_Base': { |
3107 'variables': { | 3119 'variables': { |
3108 'release_optimize%': '2', | 3120 'release_optimize%': '2', |
3109 # Binaries become big and gold is unable to perform GC | 3121 # Binaries become big and gold is unable to perform GC |
3110 # and remove unused sections for some of test targets | 3122 # and remove unused sections for some of test targets |
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3725 }], | 3737 }], |
3726 ], | 3738 ], |
3727 }], | 3739 }], |
3728 ['linux_use_gold_binary==1', { | 3740 ['linux_use_gold_binary==1', { |
3729 'ldflags': [ | 3741 'ldflags': [ |
3730 # Put our gold binary in the search path for the linker. | 3742 # Put our gold binary in the search path for the linker. |
3731 # We pass the path to gold to the compiler. gyp leaves | 3743 # We pass the path to gold to the compiler. gyp leaves |
3732 # unspecified what the cwd is when running the compiler, | 3744 # unspecified what the cwd is when running the compiler, |
3733 # so the normal gyp path-munging fails us. This hack | 3745 # so the normal gyp path-munging fails us. This hack |
3734 # gets the right path. | 3746 # gets the right path. |
3735 '-B<!(cd <(DEPTH) && pwd -P)/third_party/gold', | 3747 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_directory)', |
3736 ], | 3748 ], |
3737 }], | 3749 }], |
3738 ], | 3750 ], |
3739 }, | 3751 }, |
3740 }], | 3752 }], |
3741 # FreeBSD-specific options; note that most FreeBSD options are set above, | 3753 # FreeBSD-specific options; note that most FreeBSD options are set above, |
3742 # with Linux. | 3754 # with Linux. |
3743 ['OS=="freebsd"', { | 3755 ['OS=="freebsd"', { |
3744 'target_defaults': { | 3756 'target_defaults': { |
3745 'ldflags': [ | 3757 'ldflags': [ |
(...skipping 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5058 # settings in target dicts. SYMROOT is a special case, because many other | 5070 # settings in target dicts. SYMROOT is a special case, because many other |
5059 # Xcode variables depend on it, including variables such as | 5071 # Xcode variables depend on it, including variables such as |
5060 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5072 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5061 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5073 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5062 # files to appear (when present) in the UI as actual files and not red | 5074 # files to appear (when present) in the UI as actual files and not red |
5063 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5075 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5064 # and therefore SYMROOT, needs to be set at the project level. | 5076 # and therefore SYMROOT, needs to be set at the project level. |
5065 'SYMROOT': '<(DEPTH)/xcodebuild', | 5077 'SYMROOT': '<(DEPTH)/xcodebuild', |
5066 }, | 5078 }, |
5067 } | 5079 } |
OLD | NEW |