aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorJordan Bayles <jophba@chromium.org>2019-05-02 17:17:26 -0700
committerCommit Bot <commit-bot@chromium.org>2019-05-08 21:59:01 +0000
commita80724b1457abf3ffb39656cf407903c40f77681 (patch)
treed91b05f61689daa9d53c2d899451d86934ab3d99 /build
parent852f70c3a23f2a79173296ef66a63e401ff8b02d (diff)
downloadopenscreen-a80724b1457abf3ffb39656cf407903c40f77681.tar.gz
Fix compilation in Chromium
Currently, due to some minor bugs in the includes of the streaming cast BUILD.gn, and the platform/chromium code, building in Chromium doesn't work. We have some additional patches to land before it will be functional completely, but this unblocks some development. Change-Id: I98bc9e8d9785d20efc8ed88eb19c4bf09dfe3ef4 Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/1593946 Reviewed-by: mark a. foltz <mfoltz@chromium.org> Commit-Queue: Jordan Bayles <jophba@chromium.org>
Diffstat (limited to 'build')
-rw-r--r--build/BUILD.gn10
1 files changed, 10 insertions, 0 deletions
diff --git a/build/BUILD.gn b/build/BUILD.gn
index 82d9e294..3a3fae17 100644
--- a/build/BUILD.gn
+++ b/build/BUILD.gn
@@ -2,6 +2,16 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build_overrides/build.gni")
+
config("default_include_dirs") {
include_dirs = [ "//" ]
}
+
+# Embedders like Chromium skip all of our configs, which can break
+# include resolution, among other things
+config("allow_build_from_embedder") {
+ if (build_with_chromium) {
+ include_dirs = [ "//third_party/openscreen/src" ]
+ }
+}