Pull inspector out to gn source set.

This CL extracts the inspector from libtint_core_all_src and into a
libtint_inspector_src.

Change-Id: I0b138cc2e47526b8575b6f31cc3e15fc8bd92545
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/117583
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
dan sinclair 2023-01-25 18:41:40 +00:00 committed by Dawn LUCI CQ
parent 2da119a0ce
commit b560dcdb9f
1 changed files with 21 additions and 8 deletions

View File

@ -430,14 +430,6 @@ libtint_source_set("libtint_core_all_src") {
"clone_context.h", "clone_context.h",
"demangler.cc", "demangler.cc",
"demangler.h", "demangler.h",
"inspector/entry_point.cc",
"inspector/entry_point.h",
"inspector/inspector.cc",
"inspector/inspector.h",
"inspector/resource_binding.cc",
"inspector/resource_binding.h",
"inspector/scalar.cc",
"inspector/scalar.h",
"program.cc", "program.cc",
"program.h", "program.h",
"program_builder.cc", "program_builder.cc",
@ -500,6 +492,24 @@ libtint_source_set("libtint_core_all_src") {
] ]
} }
libtint_source_set("libtint_inspector_src") {
sources = [
"inspector/entry_point.cc",
"inspector/entry_point.h",
"inspector/inspector.cc",
"inspector/inspector.h",
"inspector/resource_binding.cc",
"inspector/resource_binding.h",
"inspector/scalar.cc",
"inspector/scalar.h",
]
deps = [
":libtint_base_src",
":libtint_core_all_src",
":libtint_type_src",
]
}
libtint_source_set("libtint_text_src") { libtint_source_set("libtint_text_src") {
sources = [ sources = [
"text/unicode.cc", "text/unicode.cc",
@ -790,6 +800,7 @@ libtint_source_set("libtint_core_src") {
":libtint_base_src", ":libtint_base_src",
":libtint_constant_src", ":libtint_constant_src",
":libtint_core_all_src", ":libtint_core_all_src",
":libtint_inspector_src",
":libtint_sem_src", ":libtint_sem_src",
":libtint_text_src", ":libtint_text_src",
":libtint_transform_src", ":libtint_transform_src",
@ -867,6 +878,7 @@ libtint_source_set("libtint_writer_src") {
deps = [ deps = [
":libtint_base_src", ":libtint_base_src",
":libtint_core_all_src", ":libtint_core_all_src",
":libtint_inspector_src",
":libtint_transform_src", ":libtint_transform_src",
":libtint_type_src", ":libtint_type_src",
] ]
@ -1262,6 +1274,7 @@ if (tint_build_unittests) {
"inspector/test_inspector_runner.cc", "inspector/test_inspector_runner.cc",
"inspector/test_inspector_runner.h", "inspector/test_inspector_runner.h",
] ]
deps = [ ":libtint_inspector_src" ]
} }
tint_unittests_source_set("tint_unittests_resolver_src") { tint_unittests_source_set("tint_unittests_resolver_src") {