Add "dumpapi.no_license" to omit license in dumps
A new property to control license header in dumps is added to
aidl_interface module.
When set to true, --dumpapi dumps without license headers.
This can be useful to avoid merge conflicts for projects which should
work with older AIDL compiler.
Bug: 179449077
Test: m test-piece-4-update-api (with no_license:true)
Change-Id: I0e72ee90085e643caa681214639f8c1f6fcde8f3
diff --git a/options.h b/options.h
index 418208a..11a5e59 100644
--- a/options.h
+++ b/options.h
@@ -145,6 +145,8 @@
bool GenLog() const { return gen_log_; }
+ bool DumpNoLicense() const { return dump_no_license_; }
+
bool Ok() const { return error_message_.stream_.str().empty(); }
string GetErrorMessage() const { return error_message_.stream_.str(); }
@@ -186,6 +188,7 @@
int version_ = 0;
string hash_ = "";
bool gen_log_ = false;
+ bool dump_no_license_ = false;
ErrorMessage error_message_;
WarningOptions warning_options_;
};