Pull unicode files out to own target.

This cl pulls the text/ files out of the all source list and into a
libtint_text_src source set.

Change-Id: I7f7e5d764e0590b07ee21a7e4510dbd5c2decce4
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/117620
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
dan sinclair 2023-01-23 16:27:05 +00:00 committed by Dawn LUCI CQ
parent 3085e23fc7
commit 3272ac7e17
1 changed files with 16 additions and 3 deletions

View File

@ -448,8 +448,6 @@ libtint_source_set("libtint_core_all_src") {
"symbol.h",
"symbol_table.cc",
"symbol_table.h",
"text/unicode.cc",
"text/unicode.h",
"tint.cc",
"traits.h",
"type/abstract_float.h",
@ -519,6 +517,15 @@ libtint_source_set("libtint_core_all_src") {
} else {
sources += [ "diagnostic/printer_other.cc" ]
}
deps = [ ":libtint_text_src" ]
}
libtint_source_set("libtint_text_src") {
sources = [
"text/unicode.cc",
"text/unicode.h",
]
}
libtint_source_set("libtint_transform_src") {
@ -626,7 +633,10 @@ libtint_source_set("libtint_transform_src") {
"transform/zero_init_workgroup_memory.cc",
"transform/zero_init_workgroup_memory.h",
]
deps = [ ":libtint_core_all_src" ]
deps = [
":libtint_core_all_src",
":libtint_text_src",
]
}
libtint_source_set("libtint_sem_src") {
@ -791,6 +801,7 @@ libtint_source_set("libtint_core_src") {
":libtint_constant_src",
":libtint_core_all_src",
":libtint_sem_src",
":libtint_text_src",
":libtint_transform_src",
":libtint_type_src",
":libtint_writer_src",
@ -909,6 +920,7 @@ libtint_source_set("libtint_wgsl_reader_src") {
deps = [
":libtint_core_all_src",
":libtint_reader_src",
":libtint_text_src",
]
}
@ -1356,6 +1368,7 @@ if (tint_build_unittests) {
tint_unittests_source_set("tint_unittests_text_src") {
sources = [ "text/unicode_test.cc" ]
deps = [ ":libtint_text_src" ]
}
tint_unittests_source_set("tint_unittests_transform_src") {