diff options
author | Ying Wang <wangying@google.com> | 2013-08-26 19:18:34 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-08-26 19:18:35 +0000 |
commit | d3373c292a9fd0ae9c6bafb594ed7132304c6516 (patch) | |
tree | f1ad0e8e44149af5c27958131a54c50b1a9de4b5 | |
parent | 3084eb999ab81cb27be484802e2a71b57905b889 (diff) | |
parent | 0f91c6360266be07bd0e32f7eca151fa1bca26c1 (diff) | |
download | frameworks_base-d3373c292a9fd0ae9c6bafb594ed7132304c6516.zip frameworks_base-d3373c292a9fd0ae9c6bafb594ed7132304c6516.tar.gz frameworks_base-d3373c292a9fd0ae9c6bafb594ed7132304c6516.tar.bz2 |
Merge "Better aidl generated dependency" into klp-dev
-rw-r--r-- | tools/aidl/aidl.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/aidl/aidl.cpp b/tools/aidl/aidl.cpp index 071a8d7..b8a4803 100644 --- a/tools/aidl/aidl.cpp +++ b/tools/aidl/aidl.cpp @@ -673,6 +673,16 @@ generate_dep_file(const Options& options, const document_item_type* items) fprintf(to, "\n"); + // Output "<imported_file>: " so make won't fail if the imported file has + // been deleted, moved or renamed in incremental build. + import = g_imports; + while (import) { + if (import->filename) { + fprintf(to, "%s :\n", import->filename); + } + import = import->next; + } + fclose(to); } |