| 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 27 matching lines...) Expand all Loading... |
| 38 'v8_enable_backtrace%': 0, | 38 'v8_enable_backtrace%': 0, |
| 39 'v8_enable_i18n_support%': 1, | 39 'v8_enable_i18n_support%': 1, |
| 40 'v8_deprecation_warnings': 1, | 40 'v8_deprecation_warnings': 1, |
| 41 'msvs_multi_core_compile%': '1', | 41 'msvs_multi_core_compile%': '1', |
| 42 'mac_deployment_target%': '10.5', | 42 'mac_deployment_target%': '10.5', |
| 43 'variables': { | 43 'variables': { |
| 44 'variables': { | 44 'variables': { |
| 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"', { | 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/;\ | 55 s/x86_64/x64/;\ |
| 56 s/amd64/x64/;\ | 56 s/amd64/x64/;\ |
| 57 s/aarch64/a64/;\ | 57 s/aarch64/a64/;\ |
| 58 s/arm.*/arm/;\ | 58 s/arm.*/arm/;\ |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 'v8_optimized_debug%': 0, | 97 'v8_optimized_debug%': 0, |
| 98 | 98 |
| 99 # Relative path to icu.gyp from this file. | 99 # Relative path to icu.gyp from this file. |
| 100 'icu_gyp_path': '../third_party/icu/icu.gyp', | 100 'icu_gyp_path': '../third_party/icu/icu.gyp', |
| 101 | 101 |
| 102 'conditions': [ | 102 'conditions': [ |
| 103 ['(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 \ | 104 (v8_target_arch=="a64" and host_arch!="a64") or \ |
| 105 (v8_target_arch=="mipsel" and host_arch!="mipsel") or \ | 105 (v8_target_arch=="mipsel" and host_arch!="mipsel") or \ |
| 106 (v8_target_arch=="x64" and host_arch!="x64") or \ | 106 (v8_target_arch=="x64" and host_arch!="x64") or \ |
| 107 (OS=="android")', { | 107 (OS=="android" or OS=="qnx")', { |
| 108 'want_separate_host_toolset': 1, | 108 'want_separate_host_toolset': 1, |
| 109 }, { | 109 }, { |
| 110 'want_separate_host_toolset': 0, | 110 'want_separate_host_toolset': 0, |
| 111 }], | 111 }], |
| 112 ['OS == "win"', { | 112 ['OS == "win"', { |
| 113 'os_posix%': 0, | 113 'os_posix%': 0, |
| 114 }, { | 114 }, { |
| 115 'os_posix%': 1, | 115 'os_posix%': 1, |
| 116 }], | 116 }], |
| 117 ['(v8_target_arch=="ia32" or v8_target_arch=="x64") and \ | 117 ['(v8_target_arch=="ia32" or v8_target_arch=="x64") and \ |
| 118 (OS=="linux" or OS=="mac")', { | 118 (OS=="linux" or OS=="mac")', { |
| 119 'v8_enable_gdbjit%': 1, | 119 'v8_enable_gdbjit%': 1, |
| 120 }, { | 120 }, { |
| 121 'v8_enable_gdbjit%': 0, | 121 'v8_enable_gdbjit%': 0, |
| 122 }], | 122 }], |
| 123 ], | 123 ], |
| 124 # Default ARM variable settings. | 124 # Default ARM variable settings. |
| 125 'armv7%': 'default', | 125 'arm_version%': 'default', |
| 126 'arm_neon%': 0, | 126 'arm_neon%': 0, |
| 127 'arm_fpu%': 'vfpv3', | 127 'arm_fpu%': 'vfpv3', |
| 128 'arm_float_abi%': 'default', | 128 'arm_float_abi%': 'default', |
| 129 'arm_thumb': 'default', | 129 'arm_thumb': 'default', |
| 130 }, | 130 }, |
| 131 'target_defaults': { | 131 'target_defaults': { |
| 132 'variables': { | 132 'variables': { |
| 133 'v8_code%': '<(v8_code)', | 133 'v8_code%': '<(v8_code)', |
| 134 }, | 134 }, |
| 135 'default_configuration': 'Debug', | 135 'default_configuration': 'Debug', |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 'cflags': [ '-fvisibility=hidden' ], | 184 'cflags': [ '-fvisibility=hidden' ], |
| 185 }], | 185 }], |
| 186 [ 'component=="shared_library"', { | 186 [ 'component=="shared_library"', { |
| 187 'cflags': [ '-fPIC', ], | 187 'cflags': [ '-fPIC', ], |
| 188 }], | 188 }], |
| 189 ], | 189 ], |
| 190 }, | 190 }, |
| 191 }], | 191 }], |
| 192 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" | 192 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" |
| 193 # or OS=="netbsd"' | 193 # or OS=="netbsd"' |
| 194 ['OS=="qnx"', { |
| 195 'target_defaults': { |
| 196 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', |
| 197 '-fno-exceptions' ], |
| 198 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti' ], |
| 199 'conditions': [ |
| 200 [ 'visibility=="hidden"', { |
| 201 'cflags': [ '-fvisibility=hidden' ], |
| 202 }], |
| 203 [ 'component=="shared_library"', { |
| 204 'cflags': [ '-fPIC' ], |
| 205 }], |
| 206 ], |
| 207 'target_conditions': [ |
| 208 [ '_toolset=="host" and host_os=="linux"', { |
| 209 'cflags': [ '-pthread' ], |
| 210 'ldflags': [ '-pthread' ], |
| 211 'libraries': [ '-lrt' ], |
| 212 }], |
| 213 [ '_toolset=="target"', { |
| 214 'cflags': [ '-Wno-psabi' ], |
| 215 'libraries': [ '-lbacktrace', '-lsocket', '-lm' ], |
| 216 }], |
| 217 ], |
| 218 }, |
| 219 }], # OS=="qnx" |
| 194 ['OS=="win"', { | 220 ['OS=="win"', { |
| 195 'target_defaults': { | 221 'target_defaults': { |
| 196 'defines': [ | 222 'defines': [ |
| 197 '_CRT_SECURE_NO_DEPRECATE', | 223 '_CRT_SECURE_NO_DEPRECATE', |
| 198 '_CRT_NONSTDC_NO_DEPRECATE', | 224 '_CRT_NONSTDC_NO_DEPRECATE', |
| 199 ], | 225 ], |
| 200 'conditions': [ | 226 'conditions': [ |
| 201 ['component=="static_library"', { | 227 ['component=="static_library"', { |
| 202 'defines': [ | 228 'defines': [ |
| 203 '_HAS_EXCEPTIONS=0', | 229 '_HAS_EXCEPTIONS=0', |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 ], | 331 ], |
| 306 'target_conditions': [ | 332 'target_conditions': [ |
| 307 ['_type!="static_library"', { | 333 ['_type!="static_library"', { |
| 308 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 334 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
| 309 }], | 335 }], |
| 310 ], # target_conditions | 336 ], # target_conditions |
| 311 }, # target_defaults | 337 }, # target_defaults |
| 312 }], # OS=="mac" | 338 }], # OS=="mac" |
| 313 ], | 339 ], |
| 314 } | 340 } |
| OLD | NEW |