update_engine: libupdate_engine depends on dbus-proxies action.
The generated ninja file didn't have a dependency between the source
files using the generated dbus_proxies.h and dbus_mocks.h because the
included .gypi file defines an "action" and not a "rule", as in the
adaptor side.
This patch wraps the action generating the dbus proxies in its own
target, making the libupdate_engine target depend on it.
With this change, the generated .ninja files include a dependency
between obj/update_engine/libupdate_engine.actions_depends.stamp file
and obj/update_engine/update_engine-dbus-proxies.actions_rules_copies.stamp
forcing it to generate the headers before using them.
BUG=chromium:520824
TEST=rm /build/link/var/cache/portage/chromeos-base/update_engine/out/Default/gen/include/update_engine/dbus_*.h; \
FEATURES=test cros_workon_make update_engine --reconf # works
Change-Id: If66f76e105de446333ea2e24bf0c0ee7a55dc594
Reviewed-on: https://chromium-review.googlesource.com/293830
Commit-Queue: Alex Deymo <[email protected]>
Trybot-Ready: Alex Deymo <[email protected]>
Tested-by: Alex Deymo <[email protected]>
Reviewed-by: Christopher Wiley <[email protected]>
1 file changed