Commit 45768b0f authored by Michael Achenbach's avatar Michael Achenbach Committed by Commit Bot

[build] Make inspector the default in gyp

Bug: chromium:645890
Change-Id: If34ac1336d0ee3c23e89050aef2cf30b754b67c1
Reviewed-on: https://chromium-review.googlesource.com/461145
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Reviewed-by: 's avatarAleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44272}
parent 5bc286e5
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
'type': 'none', 'type': 'none',
'dependencies': [ 'dependencies': [
'../src/d8.gyp:d8', '../src/d8.gyp:d8',
'../test/inspector/inspector.gyp:*',
], ],
'conditions': [ 'conditions': [
['component!="shared_library"', { ['component!="shared_library"', {
...@@ -25,20 +26,11 @@ ...@@ -25,20 +26,11 @@
'../test/unittests/unittests.gyp:*', '../test/unittests/unittests.gyp:*',
], ],
}], }],
['v8_enable_inspector==1', {
'dependencies': [
'../test/inspector/inspector.gyp:*',
],
}],
['v8_enable_inspector==1 and test_isolation_mode != "noop"', {
'dependencies': [
'../test/debugger/debugger.gyp:*',
],
}],
['test_isolation_mode != "noop"', { ['test_isolation_mode != "noop"', {
'dependencies': [ 'dependencies': [
'../test/bot_default.gyp:*', '../test/bot_default.gyp:*',
'../test/benchmarks/benchmarks.gyp:*', '../test/benchmarks/benchmarks.gyp:*',
'../test/debugger/debugger.gyp:*',
'../test/default.gyp:*', '../test/default.gyp:*',
'../test/intl/intl.gyp:*', '../test/intl/intl.gyp:*',
'../test/message/message.gyp:*', '../test/message/message.gyp:*',
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
'--config-variable', 'sanitizer_coverage=<(sanitizer_coverage)', '--config-variable', 'sanitizer_coverage=<(sanitizer_coverage)',
'--config-variable', 'component=<(component)', '--config-variable', 'component=<(component)',
'--config-variable', 'target_arch=<(target_arch)', '--config-variable', 'target_arch=<(target_arch)',
'--config-variable', 'v8_enable_inspector=<(v8_enable_inspector)', '--config-variable', 'v8_enable_inspector=1',
'--config-variable', 'v8_use_external_startup_data=<(v8_use_external_startup_data)', '--config-variable', 'v8_use_external_startup_data=<(v8_use_external_startup_data)',
'--config-variable', 'v8_use_snapshot=<(v8_use_snapshot)', '--config-variable', 'v8_use_snapshot=<(v8_use_snapshot)',
], ],
......
...@@ -46,7 +46,6 @@ ...@@ -46,7 +46,6 @@
'msvs_multi_core_compile%': '1', 'msvs_multi_core_compile%': '1',
'mac_deployment_target%': '10.7', 'mac_deployment_target%': '10.7',
'release_extra_cflags%': '', 'release_extra_cflags%': '',
'v8_enable_inspector%': 1,
'variables': { 'variables': {
'variables': { 'variables': {
'variables': { 'variables': {
...@@ -243,9 +242,6 @@ ...@@ -243,9 +242,6 @@
# Relative path to icu.gyp from this file. # Relative path to icu.gyp from this file.
'icu_gyp_path': '../third_party/icu/icu.gyp', 'icu_gyp_path': '../third_party/icu/icu.gyp',
# Relative path to inspector.gyp from this file.
'inspector_gyp_path': '../src/v8-inspector/inspector.gyp',
'conditions': [ 'conditions': [
['(v8_target_arch=="arm" and host_arch!="arm") or \ ['(v8_target_arch=="arm" and host_arch!="arm") or \
(v8_target_arch=="arm64" and host_arch!="arm64") or \ (v8_target_arch=="arm64" and host_arch!="arm64") or \
......
...@@ -42,6 +42,9 @@ ...@@ -42,6 +42,9 @@
'v8.gyp:v8_libbase', 'v8.gyp:v8_libbase',
'v8.gyp:v8_libplatform', 'v8.gyp:v8_libplatform',
], ],
'defines': [
'V8_INSPECTOR_ENABLED',
],
# Generated source files need this explicitly: # Generated source files need this explicitly:
'include_dirs+': [ 'include_dirs+': [
'..', '..',
...@@ -53,11 +56,6 @@ ...@@ -53,11 +56,6 @@
'<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc',
], ],
'conditions': [ 'conditions': [
['v8_enable_inspector == 1', {
'defines': [
'V8_INSPECTOR_ENABLED',
],
}],
[ 'want_separate_host_toolset==1', { [ 'want_separate_host_toolset==1', {
'toolsets': [ 'target', ], 'toolsets': [ 'target', ],
'dependencies': [ 'dependencies': [
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
'warmup_script%': "", 'warmup_script%': "",
'v8_extra_library_files%': [], 'v8_extra_library_files%': [],
'v8_experimental_extra_library_files%': [], 'v8_experimental_extra_library_files%': [],
'v8_enable_inspector%': 1,
'mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)', 'mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)',
'mkpeephole_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mkpeephole<(EXECUTABLE_SUFFIX)', 'mkpeephole_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mkpeephole<(EXECUTABLE_SUFFIX)',
'v8_os_page_size%': 0, 'v8_os_page_size%': 0,
...@@ -371,6 +370,9 @@ ...@@ -371,6 +370,9 @@
'dependencies': [ 'dependencies': [
'v8_libbase', 'v8_libbase',
'v8_libsampler', 'v8_libsampler',
'inspector/inspector.gyp:protocol_generated_sources',
'inspector/inspector.gyp:inspector_injected_script',
'inspector/inspector.gyp:inspector_debugger_script',
], ],
'objs': ['foo.o'], 'objs': ['foo.o'],
'variables': { 'variables': {
...@@ -389,6 +391,7 @@ ...@@ -389,6 +391,7 @@
'process_outputs_as_sources': 1, 'process_outputs_as_sources': 1,
}], }],
'sources': [ ### gcmole(all) ### 'sources': [ ### gcmole(all) ###
'<@(inspector_all_sources)',
'../include/v8-debug.h', '../include/v8-debug.h',
'../include/v8-platform.h', '../include/v8-platform.h',
'../include/v8-profiler.h', '../include/v8-profiler.h',
...@@ -1829,16 +1832,6 @@ ...@@ -1829,16 +1832,6 @@
'i18n.h', 'i18n.h',
], ],
}], }],
['v8_enable_inspector==1', {
'sources': [
'<@(inspector_all_sources)'
],
'dependencies': [
'inspector/inspector.gyp:protocol_generated_sources',
'inspector/inspector.gyp:inspector_injected_script',
'inspector/inspector.gyp:inspector_debugger_script',
],
}],
['OS=="win" and v8_enable_i18n_support==1', { ['OS=="win" and v8_enable_i18n_support==1', {
'dependencies': [ 'dependencies': [
'<(icu_gyp_path):icudata', '<(icu_gyp_path):icudata',
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
'dependencies': [ 'dependencies': [
'cctest/cctest.gyp:cctest_run', 'cctest/cctest.gyp:cctest_run',
'fuzzer/fuzzer.gyp:fuzzer_run', 'fuzzer/fuzzer.gyp:fuzzer_run',
'inspector/inspector.gyp:inspector-test_run',
'intl/intl.gyp:intl_run', 'intl/intl.gyp:intl_run',
'message/message.gyp:message_run', 'message/message.gyp:message_run',
'mjsunit/mjsunit.gyp:mjsunit_run', 'mjsunit/mjsunit.gyp:mjsunit_run',
...@@ -19,13 +20,6 @@ ...@@ -19,13 +20,6 @@
'unittests/unittests.gyp:unittests_run', 'unittests/unittests.gyp:unittests_run',
'webkit/webkit.gyp:webkit_run', 'webkit/webkit.gyp:webkit_run',
], ],
'conditions': [
['v8_enable_inspector==1', {
'dependencies': [
'inspector/inspector.gyp:inspector-test_run',
],
}],
],
'includes': [ 'includes': [
'../gypfiles/features.gypi', '../gypfiles/features.gypi',
'../gypfiles/isolate.gypi', '../gypfiles/isolate.gypi',
......
...@@ -12,19 +12,13 @@ ...@@ -12,19 +12,13 @@
'dependencies': [ 'dependencies': [
'cctest/cctest.gyp:cctest_run', 'cctest/cctest.gyp:cctest_run',
'fuzzer/fuzzer.gyp:fuzzer_run', 'fuzzer/fuzzer.gyp:fuzzer_run',
'inspector/inspector.gyp:inspector-test_run',
'intl/intl.gyp:intl_run', 'intl/intl.gyp:intl_run',
'message/message.gyp:message_run', 'message/message.gyp:message_run',
'mjsunit/mjsunit.gyp:mjsunit_run', 'mjsunit/mjsunit.gyp:mjsunit_run',
'preparser/preparser.gyp:preparser_run', 'preparser/preparser.gyp:preparser_run',
'unittests/unittests.gyp:unittests_run', 'unittests/unittests.gyp:unittests_run',
], ],
'conditions': [
['v8_enable_inspector==1', {
'dependencies': [
'inspector/inspector.gyp:inspector-test_run',
],
}],
],
'includes': [ 'includes': [
'../gypfiles/features.gypi', '../gypfiles/features.gypi',
'../gypfiles/isolate.gypi', '../gypfiles/isolate.gypi',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment