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:
parent
0bbf1e7460
commit
4484fe128d
7
BUILD.gn
7
BUILD.gn
|
@ -379,8 +379,8 @@ source_set("libtint_core_src") {
|
||||||
|
|
||||||
source_set("libtint_spv_reader_src") {
|
source_set("libtint_spv_reader_src") {
|
||||||
sources = [
|
sources = [
|
||||||
"src/reader/spirv/construct.h",
|
|
||||||
"src/reader/spirv/construct.cc",
|
"src/reader/spirv/construct.cc",
|
||||||
|
"src/reader/spirv/construct.h",
|
||||||
"src/reader/spirv/enum_converter.cc",
|
"src/reader/spirv/enum_converter.cc",
|
||||||
"src/reader/spirv/enum_converter.h",
|
"src/reader/spirv/enum_converter.h",
|
||||||
"src/reader/spirv/fail_stream.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") {
|
source_set("libtint") {
|
||||||
deps = [ ":libtint_core_src" ]
|
deps = [ ":libtint_core_src" ]
|
||||||
|
|
||||||
|
@ -492,6 +496,7 @@ source_set("libtint") {
|
||||||
}
|
}
|
||||||
|
|
||||||
configs += [ ":tint_common_config" ]
|
configs += [ ":tint_common_config" ]
|
||||||
|
public_configs = [ ":libtint_public_config" ]
|
||||||
|
|
||||||
if (build_with_chromium) {
|
if (build_with_chromium) {
|
||||||
configs -= [ "//build/config/compiler:chromium_code" ]
|
configs -= [ "//build/config/compiler:chromium_code" ]
|
||||||
|
|
Loading…
Reference in New Issue