OSDN Git Service

Better aidl generated dependency
authorYing Wang <wangying@google.com>
Fri, 23 Aug 2013 23:50:13 +0000 (16:50 -0700)
committerYing Wang <wangying@google.com>
Sat, 24 Aug 2013 00:19:17 +0000 (17:19 -0700)
commit0f91c6360266be07bd0e32f7eca151fa1bca26c1
treec81d368ca2d96a1336b28e7d3b0a1382366559e3
parent570cd0f4c06a6e3de2af348040415ff2fcff57a1
Better aidl generated dependency

Previously if an imported aidl file has been deleted or moved,
the generated dependency file still contains the stale file name,
and make will fail with "No rule to make target <the deleted/moved
file>".
This change uses technique described in section "Automatic Dependency
Generation", Chapter 8 of "Managing Projects with GNU Make (3d
Edition)".
The same technique is used by the Android platform build system to
generate C/C++ header dependencies.

Bug: 10459179
Change-Id: Ib0c01a4234ef1af994487fdc846cdf8d13a675f6
tools/aidl/aidl.cpp