Convert libtint deps to be public

This removes the requirement of targets that depend on libtint needing
to include the transitive deps to access somethings like headers.

BUG=tint:447

Change-Id: I52a86b93e517f2745f04711f508a838f8f6850b6
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/37720
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
Auto-Submit: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
Ryan Harrison 2021-01-13 15:42:51 +00:00 committed by Commit Bot service account
parent 1c200cffd0
commit f813959302

View File

@ -634,30 +634,30 @@ source_set("libtint_hlsl_writer_src") {
}
source_set("libtint") {
deps = [ ":libtint_core_src" ]
public_deps = [ ":libtint_core_src" ]
if (tint_build_spv_reader) {
deps += [ ":libtint_spv_reader_src" ]
public_deps += [ ":libtint_spv_reader_src" ]
}
if (tint_build_spv_writer) {
deps += [ ":libtint_spv_writer_src" ]
public_deps += [ ":libtint_spv_writer_src" ]
}
if (tint_build_wgsl_reader) {
deps += [ ":libtint_wgsl_reader_src" ]
public_deps += [ ":libtint_wgsl_reader_src" ]
}
if (tint_build_wgsl_writer) {
deps += [ ":libtint_wgsl_writer_src" ]
public_deps += [ ":libtint_wgsl_writer_src" ]
}
if (tint_build_msl_writer) {
deps += [ ":libtint_msl_writer_src" ]
public_deps += [ ":libtint_msl_writer_src" ]
}
if (tint_build_hlsl_writer) {
deps += [ ":libtint_hlsl_writer_src" ]
public_deps += [ ":libtint_hlsl_writer_src" ]
}
configs += [ ":tint_common_config" ]