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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 # describes various parameters of the VM for use by debuggers. See | 97 # describes various parameters of the VM for use by debuggers. See |
98 # tools/gen-postmortem-metadata.py for details. | 98 # tools/gen-postmortem-metadata.py for details. |
99 'v8_postmortem_support%': 'false', | 99 'v8_postmortem_support%': 'false', |
100 | 100 |
101 # For a shared library build, results in "libv8-<(soname_version).so". | 101 # For a shared library build, results in "libv8-<(soname_version).so". |
102 'soname_version%': '', | 102 'soname_version%': '', |
103 | 103 |
104 # Interpreted regexp engine exists as platform-independent alternative | 104 # Interpreted regexp engine exists as platform-independent alternative |
105 # based where the regular expression is compiled to a bytecode. | 105 # based where the regular expression is compiled to a bytecode. |
106 'v8_interpreted_regexp%': 0, | 106 'v8_interpreted_regexp%': 0, |
| 107 |
| 108 # Enable ECMAScript Internationalization API. Enabling this feature will |
| 109 # add a dependency on the ICU library. |
| 110 'v8_enable_i18n_support%': 0, |
107 }, | 111 }, |
108 'target_defaults': { | 112 'target_defaults': { |
109 'conditions': [ | 113 'conditions': [ |
110 ['v8_enable_debugger_support==1', { | 114 ['v8_enable_debugger_support==1', { |
111 'defines': ['ENABLE_DEBUGGER_SUPPORT',], | 115 'defines': ['ENABLE_DEBUGGER_SUPPORT',], |
112 }], | 116 }], |
113 ['v8_enable_disassembler==1', { | 117 ['v8_enable_disassembler==1', { |
114 'defines': ['ENABLE_DISASSEMBLER',], | 118 'defines': ['ENABLE_DISASSEMBLER',], |
115 }], | 119 }], |
116 ['v8_enable_gdbjit==1', { | 120 ['v8_enable_gdbjit==1', { |
117 'defines': ['ENABLE_GDB_JIT_INTERFACE',], | 121 'defines': ['ENABLE_GDB_JIT_INTERFACE',], |
118 }], | 122 }], |
119 ['v8_object_print==1', { | 123 ['v8_object_print==1', { |
120 'defines': ['OBJECT_PRINT',], | 124 'defines': ['OBJECT_PRINT',], |
121 }], | 125 }], |
122 ['v8_enable_verify_heap==1', { | 126 ['v8_enable_verify_heap==1', { |
123 'defines': ['VERIFY_HEAP',], | 127 'defines': ['VERIFY_HEAP',], |
124 }], | 128 }], |
125 ['v8_interpreted_regexp==1', { | 129 ['v8_interpreted_regexp==1', { |
126 'defines': ['V8_INTERPRETED_REGEXP',], | 130 'defines': ['V8_INTERPRETED_REGEXP',], |
127 }], | 131 }], |
| 132 ['v8_enable_i18n_support==1', { |
| 133 'defines': ['V8_I18N_SUPPORT',], |
| 134 }], |
128 ['v8_target_arch=="arm"', { | 135 ['v8_target_arch=="arm"', { |
129 'defines': [ | 136 'defines': [ |
130 'V8_TARGET_ARCH_ARM', | 137 'V8_TARGET_ARCH_ARM', |
131 ], | 138 ], |
132 'target_conditions': [ | 139 'target_conditions': [ |
133 ['_toolset=="host"', { | 140 ['_toolset=="host"', { |
134 'variables': { | 141 'variables': { |
135 'armcompiler': '<!($(echo ${CXX_host:-$(which g++)}) -v 2>&1 | gre
p -q "^Target: arm" && echo "yes" || echo "no")', | 142 'armcompiler': '<!($(echo ${CXX_host:-$(which g++)}) -v 2>&1 | gre
p -q "^Target: arm" && echo "yes" || echo "no")', |
136 }, | 143 }, |
137 'conditions': [ | 144 'conditions': [ |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 'cflags': [ '<(m32flag)' ], | 457 'cflags': [ '<(m32flag)' ], |
451 'ldflags': [ '<(m32flag)' ], | 458 'ldflags': [ '<(m32flag)' ], |
452 }], | 459 }], |
453 ], | 460 ], |
454 'xcode_settings': { | 461 'xcode_settings': { |
455 'ARCHS': [ 'i386' ], | 462 'ARCHS': [ 'i386' ], |
456 }, | 463 }, |
457 }], | 464 }], |
458 ], | 465 ], |
459 }], | 466 }], |
| 467 ['(OS=="linux") and (v8_target_arch=="x64")', { |
| 468 # Check whether the host compiler and target compiler support the |
| 469 # '-m64' option and set it if so. |
| 470 'target_conditions': [ |
| 471 ['_toolset=="host"', { |
| 472 'variables': { |
| 473 'm64flag': '<!((echo | $(echo ${CXX_host:-$(which g++)}) -m64 -E -
> /dev/null 2>&1) && echo "-m64" || true)', |
| 474 }, |
| 475 'cflags': [ '<(m64flag)' ], |
| 476 'ldflags': [ '<(m64flag)' ], |
| 477 }], |
| 478 ['_toolset=="target"', { |
| 479 'variables': { |
| 480 'm64flag': '<!((echo | $(echo ${CXX_target:-<(CXX)}) -m64 -E - > /
dev/null 2>&1) && echo "-m64" || true)', |
| 481 }, |
| 482 'cflags': [ '<(m64flag)' ], |
| 483 'ldflags': [ '<(m64flag)' ], |
| 484 }] |
| 485 ], |
| 486 }], |
460 ['OS=="freebsd" or OS=="openbsd"', { | 487 ['OS=="freebsd" or OS=="openbsd"', { |
461 'cflags': [ '-I/usr/local/include' ], | 488 'cflags': [ '-I/usr/local/include' ], |
462 }], | 489 }], |
463 ['OS=="netbsd"', { | 490 ['OS=="netbsd"', { |
464 'cflags': [ '-I/usr/pkg/include' ], | 491 'cflags': [ '-I/usr/pkg/include' ], |
465 }], | 492 }], |
466 ], # conditions | 493 ], # conditions |
467 'configurations': { | 494 'configurations': { |
468 'Debug': { | 495 'Debug': { |
469 'variables': { | 496 'variables': { |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 'OptimizeReferences': '2', | 642 'OptimizeReferences': '2', |
616 'EnableCOMDATFolding': '2', | 643 'EnableCOMDATFolding': '2', |
617 }, | 644 }, |
618 }, | 645 }, |
619 }], # OS=="win" | 646 }], # OS=="win" |
620 ], # conditions | 647 ], # conditions |
621 }, # Release | 648 }, # Release |
622 }, # configurations | 649 }, # configurations |
623 }, # target_defaults | 650 }, # target_defaults |
624 } | 651 } |
OLD | NEW |