| 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/;s/amd64/x64/;s/arm.*/arm/;s/mips.*/mipsel/")', | 55 s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/mips.*/mipsel/")', |
| 56 }, { | 56 }, { |
| 57 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and | 57 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and |
| 58 # OS!="netbsd" and OS!="mac" | 58 # OS!="netbsd" and OS!="mac" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 # near-release speeds. | 92 # near-release speeds. |
| 93 'v8_optimized_debug%': 0, | 93 'v8_optimized_debug%': 0, |
| 94 | 94 |
| 95 # Relative path to icu.gyp from this file. | 95 # Relative path to icu.gyp from this file. |
| 96 'icu_gyp_path': '../third_party/icu/icu.gyp', | 96 'icu_gyp_path': '../third_party/icu/icu.gyp', |
| 97 | 97 |
| 98 'conditions': [ | 98 'conditions': [ |
| 99 ['(v8_target_arch=="arm" and host_arch!="arm") or \ | 99 ['(v8_target_arch=="arm" and host_arch!="arm") or \ |
| 100 (v8_target_arch=="mipsel" and host_arch!="mipsel") or \ | 100 (v8_target_arch=="mipsel" and host_arch!="mipsel") or \ |
| 101 (v8_target_arch=="x64" and host_arch!="x64") or \ | 101 (v8_target_arch=="x64" and host_arch!="x64") or \ |
| 102 (OS=="android")', { | 102 (OS=="android" or OS=="qnx")', { |
| 103 'want_separate_host_toolset': 1, | 103 'want_separate_host_toolset': 1, |
| 104 }, { | 104 }, { |
| 105 'want_separate_host_toolset': 0, | 105 'want_separate_host_toolset': 0, |
| 106 }], | 106 }], |
| 107 ['OS == "win"', { | 107 ['OS == "win"', { |
| 108 'os_posix%': 0, | 108 'os_posix%': 0, |
| 109 }, { | 109 }, { |
| 110 'os_posix%': 1, | 110 'os_posix%': 1, |
| 111 }], | 111 }], |
| 112 ['(v8_target_arch=="ia32" or v8_target_arch=="x64") and \ | 112 ['(v8_target_arch=="ia32" or v8_target_arch=="x64") and \ |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 'cflags': [ '-fvisibility=hidden' ], | 179 'cflags': [ '-fvisibility=hidden' ], |
| 180 }], | 180 }], |
| 181 [ 'component=="shared_library"', { | 181 [ 'component=="shared_library"', { |
| 182 'cflags': [ '-fPIC', ], | 182 'cflags': [ '-fPIC', ], |
| 183 }], | 183 }], |
| 184 ], | 184 ], |
| 185 }, | 185 }, |
| 186 }], | 186 }], |
| 187 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" | 187 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" |
| 188 # or OS=="netbsd"' | 188 # or OS=="netbsd"' |
| 189 ['OS=="qnx"', { |
| 190 'target_defaults': { |
| 191 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', |
| 192 '-fno-exceptions' ], |
| 193 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti' ], |
| 194 'conditions': [ |
| 195 [ 'visibility=="hidden"', { |
| 196 'cflags': [ '-fvisibility=hidden' ], |
| 197 }], |
| 198 [ 'component=="shared_library"', { |
| 199 'cflags': [ '-fPIC' ], |
| 200 }], |
| 201 ], |
| 202 'target_conditions': [ |
| 203 [ '_toolset=="host" and host_os=="linux"', { |
| 204 'cflags': [ '-pthread' ], |
| 205 'ldflags': [ '-pthread' ], |
| 206 'libraries': [ '-lrt' ], |
| 207 }], |
| 208 [ '_toolset=="target"', { |
| 209 'cflags': [ '-Wno-psabi' ], |
| 210 'libraries': [ '-lbacktrace', '-lsocket', '-lm' ], |
| 211 }], |
| 212 ], |
| 213 }, |
| 214 }], # OS=="qnx" |
| 189 ['OS=="win"', { | 215 ['OS=="win"', { |
| 190 'target_defaults': { | 216 'target_defaults': { |
| 191 'defines': [ | 217 'defines': [ |
| 192 '_CRT_SECURE_NO_DEPRECATE', | 218 '_CRT_SECURE_NO_DEPRECATE', |
| 193 '_CRT_NONSTDC_NO_DEPRECATE', | 219 '_CRT_NONSTDC_NO_DEPRECATE', |
| 194 ], | 220 ], |
| 195 'conditions': [ | 221 'conditions': [ |
| 196 ['component=="static_library"', { | 222 ['component=="static_library"', { |
| 197 'defines': [ | 223 'defines': [ |
| 198 '_HAS_EXCEPTIONS=0', | 224 '_HAS_EXCEPTIONS=0', |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 ], | 326 ], |
| 301 'target_conditions': [ | 327 'target_conditions': [ |
| 302 ['_type!="static_library"', { | 328 ['_type!="static_library"', { |
| 303 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 329 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
| 304 }], | 330 }], |
| 305 ], # target_conditions | 331 ], # target_conditions |
| 306 }, # target_defaults | 332 }, # target_defaults |
| 307 }], # OS=="mac" | 333 }], # OS=="mac" |
| 308 ], | 334 ], |
| 309 } | 335 } |
| OLD | NEW |