v8/test/inspector/BUILD.gn
Dan Elphick 92bfb63cac [build] Separate out inspector as a shared library
This makes src/inspector:inspector into a v8_component producing a
shared library in component builds. To enable this, all of its exported
are now marked with V8_INSPECTOR_EXPORT.

This also inverts the dependency between src/inspector:inspector and
:v8_base_without_compiler, and instead makes d8 and some tests depend on
inspector rather than getting it via v8.

As a result, the no_check_targets exclusions list in .gn is reduced.

Ultimately embedders like chromium should depend on :v8 and optionally
src/inspector:inspector, but to allow that transition to occur, this
renames :v8 to :v8_lib and introduces a new :v8 which depends on v8 and
inspector. Once all embedders have changed to reflect the new structure,
this part can be reverted.

Bug: v8:11917
Change-Id: Ia8b15f07fb15acc5e1f111b1a80248def4285fd0
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2999088
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Dan Elphick <delphick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#75532}
2021-07-02 15:11:30 +00:00

66 lines
1.2 KiB
Plaintext

# Copyright 2016 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("../../gni/v8.gni")
v8_source_set("inspector_test") {
sources = [
"frontend-channel.h",
"isolate-data.cc",
"isolate-data.h",
"task-runner.cc",
"task-runner.h",
"tasks.cc",
"tasks.h",
"utils.cc",
"utils.h",
]
configs = [ "../..:internal_config_base" ]
public_deps = [
"../..:v8",
"../..:v8_libbase",
"../..:v8_libplatform",
"../../src/inspector:inspector",
]
}
v8_executable("inspector-test") {
testonly = true
sources = [ "inspector-test.cc" ]
configs = [
"../..:external_config",
"../..:internal_config_base",
]
deps = [
":inspector_test",
"//build/win:default_exe_manifest",
]
data_deps = [ "../../tools:v8_testrunner" ]
data = [
"console/",
"counters/",
"cpu-profiler/",
"debugger/",
"heap-profiler/",
"inspector.status",
"protocol-test.js",
"runtime/",
"runtime-call-stats/",
"sessions/",
"testcfg.py",
"type-profiler/",
"wasm-inspector-test.js",
]
cflags = []
ldflags = []
}