Don't put name of build directory in #include line or macro names.

Currently, generate_library_loader generates an #include line looking like:

#include "out/Debug/gen/library_loaders/libudev1.h"

Since this contains the (variable) name of the build dir, these files
can't be cached by goma.  Instead, rely on the header always being next to the
cc file in practice (and add a check enforcing that), and use:

#include "libudev1.h"

Similarly, use LIBRARY_LOADER_LIBUDEV1_H_DLOPEN instead of
LIBRARY_LOADER_OUT_DEBUG_GEN_LIBRARY_LOADERS_LIBUDEV1_H_DLOPEN
as guard macro name.

No intended behavior change.

Bug: none
Change-Id: I90dfe365e07ecc7df22d48f7ae05bc525d665dd5
Reviewed-on: https://chromium-review.googlesource.com/1054523
Reviewed-by: Michael Spang <spang@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#557991}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c3a2babde2ad52bfddc8a1d4fb104ae7bf240c47
1 file changed
tree: 2ff2e3763b10518a654ab2af69561a312225e264
  1. OWNERS
  2. generate_library_loader.gni
  3. generate_library_loader.py