OLD | NEW |
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 15 matching lines...) Expand all Loading... |
26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 # Definitions to be used when building stand-alone V8 binaries. | 28 # Definitions to be used when building stand-alone V8 binaries. |
29 | 29 |
30 { | 30 { |
31 # We need to include toolchain.gypi here for third-party sources that don't | 31 # We need to include toolchain.gypi here for third-party sources that don't |
32 # directly include it themselves. | 32 # directly include it themselves. |
33 'includes': ['toolchain.gypi'], | 33 'includes': ['toolchain.gypi'], |
34 'variables': { | 34 'variables': { |
35 'component%': 'static_library', | 35 'component%': 'static_library', |
36 'clang%': 0, | |
37 'asan%': 0, | 36 'asan%': 0, |
38 'tsan%': 0, | 37 'tsan%': 0, |
39 'visibility%': 'hidden', | 38 'visibility%': 'hidden', |
40 'v8_enable_backtrace%': 0, | 39 'v8_enable_backtrace%': 0, |
41 'v8_enable_i18n_support%': 1, | 40 'v8_enable_i18n_support%': 1, |
42 'v8_deprecation_warnings': 1, | 41 'v8_deprecation_warnings': 1, |
43 'msvs_multi_core_compile%': '1', | 42 'msvs_multi_core_compile%': '1', |
44 'mac_deployment_target%': '10.5', | 43 'mac_deployment_target%': '10.5', |
45 'variables': { | 44 'variables': { |
46 'variables': { | 45 'variables': { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 'os_posix%': 0, | 109 'os_posix%': 0, |
111 }, { | 110 }, { |
112 'os_posix%': 1, | 111 'os_posix%': 1, |
113 }], | 112 }], |
114 ['(v8_target_arch=="ia32" or v8_target_arch=="x64" or v8_target_arch=="x87
") and \ | 113 ['(v8_target_arch=="ia32" or v8_target_arch=="x64" or v8_target_arch=="x87
") and \ |
115 (OS=="linux" or OS=="mac")', { | 114 (OS=="linux" or OS=="mac")', { |
116 'v8_enable_gdbjit%': 1, | 115 'v8_enable_gdbjit%': 1, |
117 }, { | 116 }, { |
118 'v8_enable_gdbjit%': 0, | 117 'v8_enable_gdbjit%': 0, |
119 }], | 118 }], |
| 119 ['OS=="mac"', { |
| 120 'clang%': 1, |
| 121 }, { |
| 122 'clang%': 0, |
| 123 }], |
120 ], | 124 ], |
121 # Default ARM variable settings. | 125 # Default ARM variable settings. |
122 'arm_version%': 'default', | 126 'arm_version%': 'default', |
123 'arm_fpu%': 'vfpv3', | 127 'arm_fpu%': 'vfpv3', |
124 'arm_float_abi%': 'default', | 128 'arm_float_abi%': 'default', |
125 'arm_thumb': 'default', | 129 'arm_thumb': 'default', |
126 }, | 130 }, |
127 'target_defaults': { | 131 'target_defaults': { |
128 'variables': { | 132 'variables': { |
129 'v8_code%': '<(v8_code)', | 133 'v8_code%': '<(v8_code)', |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 'THREAD_SANITIZER', | 211 'THREAD_SANITIZER', |
208 ], | 212 ], |
209 }, | 213 }, |
210 }], | 214 }], |
211 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 215 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
212 or OS=="netbsd"', { | 216 or OS=="netbsd"', { |
213 'target_defaults': { | 217 'target_defaults': { |
214 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', | 218 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', |
215 '-Wno-long-long', '-pthread', '-fno-exceptions', | 219 '-Wno-long-long', '-pthread', '-fno-exceptions', |
216 '-pedantic' ], | 220 '-pedantic' ], |
217 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti' ], | 221 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ], |
218 'ldflags': [ '-pthread', ], | 222 'ldflags': [ '-pthread', ], |
219 'conditions': [ | 223 'conditions': [ |
220 [ 'OS=="linux"', { | |
221 'cflags': [ '-ansi' ], | |
222 }], | |
223 [ 'visibility=="hidden" and v8_enable_backtrace==0', { | 224 [ 'visibility=="hidden" and v8_enable_backtrace==0', { |
224 'cflags': [ '-fvisibility=hidden' ], | 225 'cflags': [ '-fvisibility=hidden' ], |
225 }], | 226 }], |
226 [ 'component=="shared_library"', { | 227 [ 'component=="shared_library"', { |
227 'cflags': [ '-fPIC', ], | 228 'cflags': [ '-fPIC', ], |
228 }], | 229 }], |
229 ], | 230 ], |
230 }, | 231 }, |
231 }], | 232 }], |
232 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" | 233 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" |
233 # or OS=="netbsd"' | 234 # or OS=="netbsd"' |
234 ['OS=="qnx"', { | 235 ['OS=="qnx"', { |
235 'target_defaults': { | 236 'target_defaults': { |
236 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', | 237 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', |
237 '-fno-exceptions' ], | 238 '-fno-exceptions' ], |
238 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti' ], | 239 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ], |
239 'conditions': [ | 240 'conditions': [ |
240 [ 'visibility=="hidden"', { | 241 [ 'visibility=="hidden"', { |
241 'cflags': [ '-fvisibility=hidden' ], | 242 'cflags': [ '-fvisibility=hidden' ], |
242 }], | 243 }], |
243 [ 'component=="shared_library"', { | 244 [ 'component=="shared_library"', { |
244 'cflags': [ '-fPIC' ], | 245 'cflags': [ '-fPIC' ], |
245 }], | 246 }], |
246 ], | 247 ], |
247 'target_conditions': [ | 248 'target_conditions': [ |
248 [ '_toolset=="host" and host_os=="linux"', { | 249 [ '_toolset=="host" and host_os=="linux"', { |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 }, | 327 }, |
327 }, | 328 }, |
328 }], # OS=="win" | 329 }], # OS=="win" |
329 ['OS=="mac"', { | 330 ['OS=="mac"', { |
330 'xcode_settings': { | 331 'xcode_settings': { |
331 'SYMROOT': '<(DEPTH)/xcodebuild', | 332 'SYMROOT': '<(DEPTH)/xcodebuild', |
332 }, | 333 }, |
333 'target_defaults': { | 334 'target_defaults': { |
334 'xcode_settings': { | 335 'xcode_settings': { |
335 'ALWAYS_SEARCH_USER_PATHS': 'NO', | 336 'ALWAYS_SEARCH_USER_PATHS': 'NO', |
336 'GCC_C_LANGUAGE_STANDARD': 'ansi', # -ansi | 337 'GCC_C_LANGUAGE_STANDARD': 'c99', # -std=c99 |
337 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks | 338 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks |
338 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic | 339 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic |
339 # (Equivalent to -fPIC) | 340 # (Equivalent to -fPIC) |
340 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions | 341 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions |
341 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti | 342 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti |
342 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings | 343 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings |
343 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden | 344 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden |
344 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', | 345 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', |
345 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden | 346 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden |
346 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics | 347 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics |
(...skipping 15 matching lines...) Expand all Loading... |
362 }, | 363 }, |
363 'conditions': [ | 364 'conditions': [ |
364 ['werror==""', { | 365 ['werror==""', { |
365 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO'}, | 366 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO'}, |
366 }, { | 367 }, { |
367 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES'}, | 368 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES'}, |
368 }], | 369 }], |
369 ['clang==1', { | 370 ['clang==1', { |
370 'xcode_settings': { | 371 'xcode_settings': { |
371 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', | 372 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', |
372 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++11', # -std=gnu++11 | 373 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++0x', # -std=gnu++0x |
373 }, | 374 }, |
374 }], | 375 }], |
375 ], | 376 ], |
376 'target_conditions': [ | 377 'target_conditions': [ |
377 ['_type!="static_library"', { | 378 ['_type!="static_library"', { |
378 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 379 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
379 }], | 380 }], |
380 ], # target_conditions | 381 ], # target_conditions |
381 }, # target_defaults | 382 }, # target_defaults |
382 }], # OS=="mac" | 383 }], # OS=="mac" |
383 ], | 384 ], |
384 } | 385 } |
OLD | NEW |