From 4484fe128d042480d1b43279b3cdd9089ce301e2 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Thu, 14 May 2020 14:47:51 +0000 Subject: [PATCH] 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 --- BUILD.gn | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index d2d9b27d95..7764afc6fe 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -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" ]