From ed8d1b315a8d42a12ec7e97df1627c08938698b9 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Tue, 8 Feb 2022 13:12:52 -0500 Subject: [PATCH] Make cef_config.h discoverable from patched Chromium targets (see issue #2926) Add the generated includes/ directory to CEF's "config" so that source files included in patched Chromium targets (for example, blink_glue.cc) can find cef_config.h which will be included via `include/internal/cef_types_linux.h` on Linux. --- libcef/features/BUILD.gn | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libcef/features/BUILD.gn b/libcef/features/BUILD.gn index 01f59751f..430143ede 100644 --- a/libcef/features/BUILD.gn +++ b/libcef/features/BUILD.gn @@ -88,7 +88,12 @@ buildflag_header("features") { # Configuration for all targets that include CEF source code library-side. config("config") { # CEF sources use includes relative to the CEF root directory. - include_dirs = [ "//cef" ] + include_dirs = [ + "//cef", + + # CEF generates some header files that also need to be discoverable. + "$root_out_dir/includes", + ] defines = [ "BUILDING_CEF_SHARED", "USING_CHROMIUM_INCLUDES",