summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org>2014-09-19 20:29:56 +0000
committerbrettw@chromium.org <brettw@chromium.org>2014-09-19 20:29:56 +0000
commit42ddeba4a7ad6382898ef2e57dc4bd9f9da57aca (patch)
tree102057f652e25be0b11cb19857c15285c23c3e07
parent4947d55857acf2bf968016a7a00fe2b10fd52131 (diff)
downloadlibvpx-42ddeba4a7ad6382898ef2e57dc4bd9f9da57aca.tar.gz
Add include dirs to dependent targets in the GN build.
This will enable it to be hooked up. TBR=tomfinegan@chromium.org Review URL: https://codereview.chromium.org/584253002 git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libvpx@292050 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
-rw-r--r--BUILD.gn9
1 files changed, 9 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 5a347d0..797f473 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -44,6 +44,13 @@ config("libvpx_config") {
cflags = [ "-Wno-unused-function", "-Wno-sign-compare" ]
}
+# This config is applied to targets that depend on libvpx.
+config("libvpx_external_config") {
+ include_dirs = [
+ "//third_party/libvpx/source/libvpx",
+ ]
+}
+
executable("libvpx_obj_int_extract") {
sources = [
"//third_party/libvpx/source/libvpx/build/make/obj_int_extract.c"
@@ -267,4 +274,6 @@ static_library("libvpx") {
if (cpu_arch == "arm") {
deps += [ ":libvpx_assembly_arm" ]
}
+
+ public_configs = [ ":libvpx_external_config" ]
}