The dependencies generally look right, and I suspect you’ll find build/chromeos_buildflags.h in out/Default/gen. The problem is that clang++ is being invoked without any -I naming that directory.
It looks like the
chromeos_buildflags parts originally introduced in
https://chromium-review.googlesource.com/c/2622766 didn’t do anything in the
crashpad_is_standalone build to add
root_gen_dir (which in your case would be
out/Default/gen) to
include_dirs where needed. We have
something for this in the util target directly, but it’s not exposed to all things that will see
#include "build/chromeos_buildflags.h", such as via an
#include chain that you seem to be seeing here. That bit in
util was really only intended to handle the
mig action, which is an Apple-specific thing, and which doesn’t leak beyond that target.
We don’t see this in the
crashpad_is_in_chromium build because Chromium has
this. Crashpad has been a little more precise about specifying dependencies and directories.