Add include path to public config for BUILD.gn

Needed for Dawn integration

Change-Id: I0d9958b583b26afdbd258e34a7dd1fdf788f3eeb
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/21720
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
Ryan Harrison 2020-05-14 14:47:51 +00:00
parent 0bbf1e7460
commit 4484fe128d
1 changed files with 6 additions and 1 deletions

View File

@ -379,8 +379,8 @@ source_set("libtint_core_src") {
source_set("libtint_spv_reader_src") {
sources = [
"src/reader/spirv/construct.h",
"src/reader/spirv/construct.cc",
"src/reader/spirv/construct.h",
"src/reader/spirv/enum_converter.cc",
"src/reader/spirv/enum_converter.h",
"src/reader/spirv/fail_stream.h",
@ -472,6 +472,10 @@ source_set("libtint_wgsl_writer_src") {
}
}
config("libtint_public_config") {
include_dirs = [ "${tint_root_dir}/" ]
}
source_set("libtint") {
deps = [ ":libtint_core_src" ]
@ -492,6 +496,7 @@ source_set("libtint") {
}
configs += [ ":tint_common_config" ]
public_configs = [ ":libtint_public_config" ]
if (build_with_chromium) {
configs -= [ "//build/config/compiler:chromium_code" ]