From a80724b1457abf3ffb39656cf407903c40f77681 Mon Sep 17 00:00:00 2001 From: Jordan Bayles Date: Thu, 2 May 2019 17:17:26 -0700 Subject: 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 Commit-Queue: Jordan Bayles --- build/BUILD.gn | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'build') 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" ] + } +} -- cgit v1.2.3