| Index: tools/gyp/v8.gyp
|
| diff --git a/tools/gyp/v8.gyp b/tools/gyp/v8.gyp
|
| index 26504836afddad8b8b879557fded77a8b08bd026..98086cc9599ee8a1871269553647526b76ee2f87 100644
|
| --- a/tools/gyp/v8.gyp
|
| +++ b/tools/gyp/v8.gyp
|
| @@ -61,9 +61,6 @@
|
| 'conditions': [
|
| ['use_system_v8==0', {
|
| 'target_defaults': {
|
| - 'defines': [
|
| - 'ENABLE_DEBUGGER_SUPPORT',
|
| - ],
|
| 'conditions': [
|
| ['OS!="mac"', {
|
| # TODO(mark): The OS!="mac" conditional is temporary. It can be
|
| @@ -97,6 +94,19 @@
|
| 'USE_EABI_HARDFLOAT=1',
|
| 'CAN_USE_VFP_INSTRUCTIONS',
|
| ],
|
| + 'cflags': [
|
| + '-mfloat-abi=hard',
|
| + ],
|
| + }, {
|
| + 'defines': [
|
| + 'USE_EABI_HARDFLOAT=0',
|
| + ],
|
| + }],
|
| + # The ARM assembler assumes the host is 32 bits,
|
| + # so force building 32-bit host tools.
|
| + [ 'host_arch=="x64"', {
|
| + 'cflags': ['-m32'],
|
| + 'ldflags': ['-m32'],
|
| }],
|
| ],
|
| }],
|
| @@ -155,6 +165,10 @@
|
| ['OS=="freebsd" or OS=="openbsd"', {
|
| 'cflags': [ '-I/usr/local/include' ],
|
| }],
|
| + ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
|
| + 'cflags': [ '-Wall', '-Werror', '-W', '-Wno-unused-parameter',
|
| + '-Wnon-virtual-dtor' ],
|
| + }],
|
| ],
|
| },
|
| 'Release': {
|
| @@ -164,10 +178,6 @@
|
| '-O2',
|
| '-Os',
|
| ],
|
| - 'cflags': [
|
| - '-fomit-frame-pointer',
|
| - '-O3',
|
| - ],
|
| 'conditions': [
|
| [ 'gcc_version==44', {
|
| 'cflags': [
|
| @@ -229,8 +239,12 @@
|
| 'targets': [
|
| {
|
| 'target_name': 'v8',
|
| - 'toolsets': ['host', 'target'],
|
| 'conditions': [
|
| + ['want_separate_host_toolset==1', {
|
| + 'toolsets': ['host', 'target'],
|
| + }, {
|
| + 'toolsets': ['target'],
|
| + }],
|
| ['v8_use_snapshot=="true"', {
|
| 'dependencies': ['v8_snapshot'],
|
| },
|
| @@ -270,25 +284,20 @@
|
| 'type': 'none',
|
| }],
|
| ],
|
| - 'direct_dependent_settings': {
|
| - 'include_dirs': [
|
| - '../../include',
|
| - ],
|
| - },
|
| },
|
| {
|
| 'target_name': 'v8_snapshot',
|
| 'type': '<(library)',
|
| - 'toolsets': ['host', 'target'],
|
| 'conditions': [
|
| + ['want_separate_host_toolset==1', {
|
| + 'toolsets': ['host', 'target'],
|
| + 'dependencies': ['mksnapshot#host', 'js2c#host'],
|
| + }, {
|
| + 'toolsets': ['target'],
|
| + 'dependencies': ['mksnapshot', 'js2c'],
|
| + }],
|
| ['component=="shared_library"', {
|
| 'conditions': [
|
| - # The ARM assembler assumes the host is 32 bits, so force building
|
| - # 32-bit host tools.
|
| - ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"', {
|
| - 'cflags': ['-m32'],
|
| - 'ldflags': ['-m32'],
|
| - }],
|
| ['OS=="win"', {
|
| 'defines': [
|
| 'BUILDING_V8_SHARED',
|
| @@ -312,8 +321,6 @@
|
| }],
|
| ],
|
| 'dependencies': [
|
| - 'mksnapshot#host',
|
| - 'js2c#host',
|
| 'v8_base',
|
| ],
|
| 'include_dirs+': [
|
| @@ -380,9 +387,7 @@
|
| {
|
| 'target_name': 'v8_nosnapshot',
|
| 'type': '<(library)',
|
| - 'toolsets': ['host', 'target'],
|
| 'dependencies': [
|
| - 'js2c#host',
|
| 'v8_base',
|
| ],
|
| 'include_dirs+': [
|
| @@ -394,11 +399,12 @@
|
| '../../src/snapshot-empty.cc',
|
| ],
|
| 'conditions': [
|
| - # The ARM assembler assumes the host is 32 bits, so force building
|
| - # 32-bit host tools.
|
| - ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"', {
|
| - 'cflags': ['-m32'],
|
| - 'ldflags': ['-m32'],
|
| + ['want_separate_host_toolset==1', {
|
| + 'toolsets': ['host', 'target'],
|
| + 'dependencies': ['js2c#host'],
|
| + }, {
|
| + 'toolsets': ['target'],
|
| + 'dependencies': ['js2c'],
|
| }],
|
| ['component=="shared_library"', {
|
| 'defines': [
|
| @@ -411,7 +417,6 @@
|
| {
|
| 'target_name': 'v8_base',
|
| 'type': '<(library)',
|
| - 'toolsets': ['host', 'target'],
|
| 'include_dirs+': [
|
| '../../src',
|
| ],
|
| @@ -666,10 +671,12 @@
|
| '../../src/extensions/gc-extension.h',
|
| ],
|
| 'conditions': [
|
| + ['want_separate_host_toolset==1', {
|
| + 'toolsets': ['host', 'target'],
|
| + }, {
|
| + 'toolsets': ['target'],
|
| + }],
|
| ['v8_target_arch=="arm"', {
|
| - 'include_dirs+': [
|
| - '../../src/arm',
|
| - ],
|
| 'sources': [
|
| '../../src/arm/assembler-arm-inl.h',
|
| '../../src/arm/assembler-arm.cc',
|
| @@ -702,19 +709,8 @@
|
| '../../src/arm/simulator-arm.cc',
|
| '../../src/arm/stub-cache-arm.cc',
|
| ],
|
| - 'conditions': [
|
| - # The ARM assembler assumes the host is 32 bits,
|
| - # so force building 32-bit host tools.
|
| - ['host_arch=="x64" and _toolset=="host"', {
|
| - 'cflags': ['-m32'],
|
| - 'ldflags': ['-m32'],
|
| - }]
|
| - ]
|
| }],
|
| ['v8_target_arch=="ia32" or v8_target_arch=="mac" or OS=="mac"', {
|
| - 'include_dirs+': [
|
| - '../../src/ia32',
|
| - ],
|
| 'sources': [
|
| '../../src/ia32/assembler-ia32-inl.h',
|
| '../../src/ia32/assembler-ia32.cc',
|
| @@ -746,9 +742,6 @@
|
| ],
|
| }],
|
| ['v8_target_arch=="x64" or v8_target_arch=="mac" or OS=="mac"', {
|
| - 'include_dirs+': [
|
| - '../../src/x64',
|
| - ],
|
| 'sources': [
|
| '../../src/x64/assembler-x64-inl.h',
|
| '../../src/x64/assembler-x64.cc',
|
| @@ -781,10 +774,6 @@
|
| }],
|
| ['OS=="linux"', {
|
| 'link_settings': {
|
| - 'libraries': [
|
| - # Needed for clock_gettime() used by src/platform-linux.cc.
|
| - '-lrt',
|
| - ],
|
| 'conditions': [
|
| ['v8_compress_startup_data=="bz2"', {
|
| 'libraries': [
|
| @@ -870,7 +859,13 @@
|
| {
|
| 'target_name': 'js2c',
|
| 'type': 'none',
|
| - 'toolsets': ['host'],
|
| + 'conditions': [
|
| + ['want_separate_host_toolset==1', {
|
| + 'toolsets': ['host'],
|
| + }, {
|
| + 'toolsets': ['target'],
|
| + }],
|
| + ],
|
| 'variables': {
|
| 'library_files': [
|
| '../../src/runtime.js',
|
| @@ -936,7 +931,6 @@
|
| {
|
| 'target_name': 'mksnapshot',
|
| 'type': 'executable',
|
| - 'toolsets': ['host'],
|
| 'dependencies': [
|
| 'v8_nosnapshot',
|
| ],
|
| @@ -947,11 +941,10 @@
|
| '../../src/mksnapshot.cc',
|
| ],
|
| 'conditions': [
|
| - # The ARM assembler assumes the host is 32 bits, so force building
|
| - # 32-bit host tools.
|
| - ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"', {
|
| - 'cflags': ['-m32'],
|
| - 'ldflags': ['-m32'],
|
| + ['want_separate_host_toolset==1', {
|
| + 'toolsets': ['host'],
|
| + }, {
|
| + 'toolsets': ['target'],
|
| }],
|
| ['v8_compress_startup_data=="bz2"', {
|
| 'libraries': [
|
| @@ -962,7 +955,6 @@
|
| {
|
| 'target_name': 'v8_shell',
|
| 'type': 'executable',
|
| - 'toolsets': ['host'],
|
| 'dependencies': [
|
| 'v8'
|
| ],
|
| @@ -970,29 +962,57 @@
|
| '../../samples/shell.cc',
|
| ],
|
| 'conditions': [
|
| + ['want_separate_host_toolset==1', {
|
| + 'toolsets': ['host'],
|
| + }, {
|
| + 'toolsets': ['target'],
|
| + }],
|
| ['OS=="win"', {
|
| # This could be gotten by not setting chromium_code, if that's OK.
|
| 'defines': ['_CRT_SECURE_NO_WARNINGS'],
|
| }],
|
| - # The ARM assembler assumes the host is 32 bits, so force building
|
| - # 32-bit host tools.
|
| - ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"', {
|
| - 'cflags': ['-m32'],
|
| - 'ldflags': ['-m32'],
|
| - }],
|
| ['v8_compress_startup_data=="bz2"', {
|
| 'libraries': [
|
| '-lbz2',
|
| ]}],
|
| ],
|
| },
|
| + {
|
| + 'target_name': 'preparser_lib',
|
| + 'type': '<(library)',
|
| + 'include_dirs+': [
|
| + '../../src',
|
| + ],
|
| + 'sources': [
|
| + '../../src/allocation.cc',
|
| + '../../src/bignum.cc',
|
| + '../../src/cached-powers.cc',
|
| + '../../src/conversions.cc',
|
| + '../../src/hashmap.cc',
|
| + '../../src/preparse-data.cc',
|
| + '../../src/preparser.cc',
|
| + '../../src/preparser-api.cc',
|
| + '../../src/scanner-base.cc',
|
| + '../../src/strtod.cc',
|
| + '../../src/token.cc',
|
| + '../../src/unicode.cc',
|
| + '../../src/utils.cc',
|
| + ],
|
| + },
|
| ],
|
| }, { # use_system_v8 != 0
|
| 'targets': [
|
| {
|
| 'target_name': 'v8',
|
| 'type': 'settings',
|
| - 'toolsets': ['host', 'target'],
|
| + 'conditions': [
|
| + ['want_separate_host_toolset==1', {
|
| + 'toolsets': ['host', 'target'],
|
| + }, {
|
| + 'toolsets': ['target'],
|
| + }],
|
| +
|
| + ],
|
| 'link_settings': {
|
| 'libraries': [
|
| '-lv8',
|
| @@ -1002,7 +1022,13 @@
|
| {
|
| 'target_name': 'v8_shell',
|
| 'type': 'none',
|
| - 'toolsets': ['host'],
|
| + 'conditions': [
|
| + ['want_separate_host_toolset==1', {
|
| + 'toolsets': ['host'],
|
| + }, {
|
| + 'toolsets': ['target'],
|
| + }],
|
| + ],
|
| 'dependencies': [
|
| 'v8'
|
| ],
|
|
|