gn check complains "Include is not allowed" on non-chromeos build for an #include which is guarded by OS_CHROMEOS |
||
Issue descriptionSee [1], the include is in side #if defined(OS_CHROMEOS) block. the gn check shouldn't complains it. But it complains to as: [1] https://chromium-review.googlesource.com/c/chromium/src/+/759092/12/chrome/browser/ui/views/toolbar/toolbar_view.hgn check out/linux_chromium ERROR at //chrome/browser/ui/views/toolbar/toolbar_view.h:30:11: Include not allowed. #include "components/arc/common/intent_helper.mojom.h" ^------------------------------------------ It is not in any dependency of //chrome/browser/ui:ui The include file is in the target(s): //components/arc/common:common //components/arc/common:common__generator at least one of which should somehow be reachable. Makefile:297: recipe for target 'check_chromium' failed make: *** [check_chromium] Error 1
,
Nov 13 2017
The CL necessitating the new // nogncheck is: https://chromium-review.googlesource.com/c/chromium/src/+/759092 It moves the //components/arc:arc_bindings mojom target to //components/arc/common, but keeps that as a public dep of the //components/arc:arc_base static_library target, which is a public dep of the //components/arc static_library target, which is indeed a dependency of the //chrome/browser/ui split_static_library target if (is_chromeos)...
,
Aug 1
|
||
►
Sign in to add a comment |
||
Comment 1 by penghuang@chromium.org
, Nov 12 2017