| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 'variables': { | 45 'variables': { |
| 46 'conditions': [ | 46 'conditions': [ |
| 47 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or \ | 47 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or \ |
| 48 OS=="netbsd" or OS=="mac" or OS=="qnx"', { | 48 OS=="netbsd" or OS=="mac" or OS=="qnx"', { |
| 49 # This handles the Unix platforms we generally deal with. | 49 # This handles the Unix platforms we generally deal with. |
| 50 # Anything else gets passed through, which probably won't work | 50 # Anything else gets passed through, which probably won't work |
| 51 # very well; such hosts should pass an explicit target_arch | 51 # very well; such hosts should pass an explicit target_arch |
| 52 # to gyp. | 52 # to gyp. |
| 53 'host_arch%': | 53 'host_arch%': |
| 54 '<!(uname -m | sed -e "s/i.86/ia32/;\ | 54 '<!(uname -m | sed -e "s/i.86/ia32/;\ |
| 55 s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/mips.*/mipsel/")', | 55 s/x86_64/x64/;\ |
| 56 s/amd64/x64/;\ |
| 57 s/aarch64/a64/;\ |
| 58 s/arm.*/arm/;\ |
| 59 s/mips.*/mipsel/")', |
| 56 }, { | 60 }, { |
| 57 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and | 61 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and |
| 58 # OS!="netbsd" and OS!="mac" | 62 # OS!="netbsd" and OS!="mac" |
| 59 'host_arch%': 'ia32', | 63 'host_arch%': 'ia32', |
| 60 }], | 64 }], |
| 61 ], | 65 ], |
| 62 }, | 66 }, |
| 63 'host_arch%': '<(host_arch)', | 67 'host_arch%': '<(host_arch)', |
| 64 'target_arch%': '<(host_arch)', | 68 'target_arch%': '<(host_arch)', |
| 65 }, | 69 }, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 90 # be used by embedders that need to build their own code as debug | 94 # be used by embedders that need to build their own code as debug |
| 91 # but don't want or need a debug version of V8. This should produce | 95 # but don't want or need a debug version of V8. This should produce |
| 92 # near-release speeds. | 96 # near-release speeds. |
| 93 'v8_optimized_debug%': 0, | 97 'v8_optimized_debug%': 0, |
| 94 | 98 |
| 95 # Relative path to icu.gyp from this file. | 99 # Relative path to icu.gyp from this file. |
| 96 'icu_gyp_path': '../third_party/icu/icu.gyp', | 100 'icu_gyp_path': '../third_party/icu/icu.gyp', |
| 97 | 101 |
| 98 'conditions': [ | 102 'conditions': [ |
| 99 ['(v8_target_arch=="arm" and host_arch!="arm") or \ | 103 ['(v8_target_arch=="arm" and host_arch!="arm") or \ |
| 104 (v8_target_arch=="a64" and host_arch!="a64") or \ |
| 100 (v8_target_arch=="mipsel" and host_arch!="mipsel") or \ | 105 (v8_target_arch=="mipsel" and host_arch!="mipsel") or \ |
| 101 (v8_target_arch=="x64" and host_arch!="x64") or \ | 106 (v8_target_arch=="x64" and host_arch!="x64") or \ |
| 102 (OS=="android" or OS=="qnx")', { | 107 (OS=="android" or OS=="qnx")', { |
| 103 'want_separate_host_toolset': 1, | 108 'want_separate_host_toolset': 1, |
| 104 }, { | 109 }, { |
| 105 'want_separate_host_toolset': 0, | 110 'want_separate_host_toolset': 0, |
| 106 }], | 111 }], |
| 107 ['OS == "win"', { | 112 ['OS == "win"', { |
| 108 'os_posix%': 0, | 113 'os_posix%': 0, |
| 109 }, { | 114 }, { |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks | 297 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks |
| 293 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic | 298 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic |
| 294 # (Equivalent to -fPIC) | 299 # (Equivalent to -fPIC) |
| 295 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions | 300 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions |
| 296 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti | 301 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti |
| 297 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings | 302 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings |
| 298 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden | 303 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden |
| 299 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', | 304 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', |
| 300 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden | 305 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden |
| 301 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics | 306 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics |
| 302 'GCC_VERSION': 'com.apple.compilers.llvmgcc42', | |
| 303 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof | 307 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof |
| 304 'GCC_WARN_NON_VIRTUAL_DESTRUCTOR': 'YES', # -Wnon-virtual-dtor | 308 'GCC_WARN_NON_VIRTUAL_DESTRUCTOR': 'YES', # -Wnon-virtual-dtor |
| 305 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min | 309 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min |
| 306 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', | 310 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', |
| 307 'PREBINDING': 'NO', # No -Wl,-prebind | 311 'PREBINDING': 'NO', # No -Wl,-prebind |
| 308 'SYMROOT': '<(DEPTH)/xcodebuild', | 312 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 309 'USE_HEADERMAP': 'NO', | 313 'USE_HEADERMAP': 'NO', |
| 310 'OTHER_CFLAGS': [ | 314 'OTHER_CFLAGS': [ |
| 311 '-fno-strict-aliasing', | 315 '-fno-strict-aliasing', |
| 312 ], | 316 ], |
| (...skipping 13 matching lines...) Expand all Loading... |
| 326 ], | 330 ], |
| 327 'target_conditions': [ | 331 'target_conditions': [ |
| 328 ['_type!="static_library"', { | 332 ['_type!="static_library"', { |
| 329 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 333 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
| 330 }], | 334 }], |
| 331 ], # target_conditions | 335 ], # target_conditions |
| 332 }, # target_defaults | 336 }, # target_defaults |
| 333 }], # OS=="mac" | 337 }], # OS=="mac" |
| 334 ], | 338 ], |
| 335 } | 339 } |
| OLD | NEW |