| 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 28 matching lines...) Expand all Loading... |
| 39 'v8_enable_backtrace%': 0, | 39 'v8_enable_backtrace%': 0, |
| 40 'v8_enable_i18n_support%': 1, | 40 'v8_enable_i18n_support%': 1, |
| 41 'v8_deprecation_warnings': 1, | 41 'v8_deprecation_warnings': 1, |
| 42 'msvs_multi_core_compile%': '1', | 42 'msvs_multi_core_compile%': '1', |
| 43 'mac_deployment_target%': '10.5', | 43 'mac_deployment_target%': '10.5', |
| 44 'variables': { | 44 'variables': { |
| 45 'variables': { | 45 'variables': { |
| 46 'variables': { | 46 'variables': { |
| 47 'conditions': [ | 47 'conditions': [ |
| 48 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or \ | 48 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or \ |
| 49 OS=="netbsd" or OS=="mac" or OS=="qnx"', { | 49 OS=="netbsd" or OS=="mac" or OS=="qnx" or OS=="aix"', { |
| 50 # This handles the Unix platforms we generally deal with. | 50 # This handles the Unix platforms we generally deal with. |
| 51 # Anything else gets passed through, which probably won't work | 51 # Anything else gets passed through, which probably won't work |
| 52 # very well; such hosts should pass an explicit target_arch | 52 # very well; such hosts should pass an explicit target_arch |
| 53 # to gyp. | 53 # to gyp. |
| 54 'host_arch%': '<!pymod_do_main(detect_v8_host_arch)', | 54 'host_arch%': '<!pymod_do_main(detect_v8_host_arch)', |
| 55 }, { | 55 }, { |
| 56 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and | 56 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and |
| 57 # OS!="netbsd" and OS!="mac" | 57 # OS!="netbsd" and OS!="mac" and OS!="aix" |
| 58 'host_arch%': 'ia32', | 58 'host_arch%': 'ia32', |
| 59 }], | 59 }], |
| 60 ], | 60 ], |
| 61 }, | 61 }, |
| 62 'host_arch%': '<(host_arch)', | 62 'host_arch%': '<(host_arch)', |
| 63 'target_arch%': '<(host_arch)', | 63 'target_arch%': '<(host_arch)', |
| 64 }, | 64 }, |
| 65 'host_arch%': '<(host_arch)', | 65 'host_arch%': '<(host_arch)', |
| 66 'target_arch%': '<(target_arch)', | 66 'target_arch%': '<(target_arch)', |
| 67 'v8_target_arch%': '<(target_arch)', | 67 'v8_target_arch%': '<(target_arch)', |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 'configurations': { | 176 'configurations': { |
| 177 'DebugBaseCommon': { | 177 'DebugBaseCommon': { |
| 178 'cflags': [ '-g', '-O0' ], | 178 'cflags': [ '-g', '-O0' ], |
| 179 'conditions': [ | 179 'conditions': [ |
| 180 ['(v8_target_arch=="ia32" or v8_target_arch=="x87") and \ | 180 ['(v8_target_arch=="ia32" or v8_target_arch=="x87") and \ |
| 181 OS=="linux"', { | 181 OS=="linux"', { |
| 182 'defines': [ | 182 'defines': [ |
| 183 '_GLIBCXX_DEBUG' | 183 '_GLIBCXX_DEBUG' |
| 184 ], | 184 ], |
| 185 }], | 185 }], |
| 186 [ 'OS=="aix"', { |
| 187 'cflags': [ '-gxcoff' ], |
| 188 }], |
| 186 ], | 189 ], |
| 187 }, | 190 }, |
| 188 'Optdebug': { | 191 'Optdebug': { |
| 189 'inherit_from': [ 'DebugBaseCommon', 'DebugBase1' ], | 192 'inherit_from': [ 'DebugBaseCommon', 'DebugBase1' ], |
| 190 }, | 193 }, |
| 191 'Debug': { | 194 'Debug': { |
| 192 # Xcode insists on this empty entry. | 195 # Xcode insists on this empty entry. |
| 193 }, | 196 }, |
| 194 'Release': { | 197 'Release': { |
| 195 # Xcode insists on this empty entry. | 198 # Xcode insists on this empty entry. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 ['_type!="static_library"', { | 280 ['_type!="static_library"', { |
| 278 'xcode_settings': {'OTHER_LDFLAGS': ['-fsanitize=address']}, | 281 'xcode_settings': {'OTHER_LDFLAGS': ['-fsanitize=address']}, |
| 279 }], | 282 }], |
| 280 ], | 283 ], |
| 281 'dependencies': [ | 284 'dependencies': [ |
| 282 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime', | 285 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime', |
| 283 ], | 286 ], |
| 284 }, | 287 }, |
| 285 }], | 288 }], |
| 286 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 289 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
| 287 or OS=="netbsd"', { | 290 or OS=="netbsd" or OS=="aix"', { |
| 288 'target_defaults': { | 291 'target_defaults': { |
| 289 'cflags': [ | 292 'cflags': [ |
| 290 '-Wall', | 293 '-Wall', |
| 291 '<(werror)', | 294 '<(werror)', |
| 292 '-W', | 295 '-W', |
| 293 '-Wno-unused-parameter', | 296 '-Wno-unused-parameter', |
| 294 '-Wno-long-long', | 297 '-Wno-long-long', |
| 295 '-pthread', | 298 '-pthread', |
| 296 '-fno-exceptions', | 299 '-fno-exceptions', |
| 297 '-pedantic', | 300 '-pedantic', |
| 298 # Don't warn about the "struct foo f = {0};" initialization pattern. | 301 # Don't warn about the "struct foo f = {0};" initialization pattern. |
| 299 '-Wno-missing-field-initializers', | 302 '-Wno-missing-field-initializers', |
| 300 ], | 303 ], |
| 301 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ], | 304 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ], |
| 302 'ldflags': [ '-pthread', ], | 305 'ldflags': [ '-pthread', ], |
| 303 'conditions': [ | 306 'conditions': [ |
| 307 [ 'host_arch=="ppc64"', { |
| 308 'cflags': [ '-mminimal-toc' ], |
| 309 }], |
| 304 [ 'visibility=="hidden" and v8_enable_backtrace==0', { | 310 [ 'visibility=="hidden" and v8_enable_backtrace==0', { |
| 305 'cflags': [ '-fvisibility=hidden' ], | 311 'cflags': [ '-fvisibility=hidden' ], |
| 306 }], | 312 }], |
| 307 [ 'component=="shared_library"', { | 313 [ 'component=="shared_library"', { |
| 308 'cflags': [ '-fPIC', ], | 314 'cflags': [ '-fPIC', ], |
| 309 }], | 315 }], |
| 310 ], | 316 ], |
| 311 }, | 317 }, |
| 312 }], | 318 }], |
| 313 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" | 319 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { | 522 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { |
| 517 'make_global_settings': [ | 523 'make_global_settings': [ |
| 518 ['CC_wrapper', '<(gomadir)/gomacc'], | 524 ['CC_wrapper', '<(gomadir)/gomacc'], |
| 519 ['CXX_wrapper', '<(gomadir)/gomacc'], | 525 ['CXX_wrapper', '<(gomadir)/gomacc'], |
| 520 ['CC.host_wrapper', '<(gomadir)/gomacc'], | 526 ['CC.host_wrapper', '<(gomadir)/gomacc'], |
| 521 ['CXX.host_wrapper', '<(gomadir)/gomacc'], | 527 ['CXX.host_wrapper', '<(gomadir)/gomacc'], |
| 522 ], | 528 ], |
| 523 }], | 529 }], |
| 524 ], | 530 ], |
| 525 } | 531 } |
| OLD | NEW |