diff options
Diffstat (limited to 'tools/aidl/options.cpp')
-rw-r--r-- | tools/aidl/options.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/aidl/options.cpp b/tools/aidl/options.cpp index 0aa7db2..7b2daeb 100644 --- a/tools/aidl/options.cpp +++ b/tools/aidl/options.cpp @@ -15,6 +15,7 @@ usage() "OPTIONS:\n" " -I<DIR> search path for import statements.\n" " -d<FILE> generate dependency file.\n" + " -a generate dependency file next to the output file with the name based on the input file.\n" " -p<FILE> file created by --preprocess to import.\n" " -o<FOLDER> base output folder for generated files.\n" " -b fail when trying to compile a parcelable.\n" @@ -49,6 +50,7 @@ parse_options(int argc, const char* const* argv, Options *options) options->task = COMPILE_AIDL; options->failOnParcelable = false; + options->autoDepFile = false; // OPTIONS while (i < argc) { @@ -73,6 +75,9 @@ parse_options(int argc, const char* const* argv, Options *options) return usage(); } } + else if (s[1] == 'a') { + options->autoDepFile = true; + } else if (s[1] == 'p') { if (len > 2) { options->preprocessedFiles.push_back(s+2); |