diff options
author | Christopher Wiley <wiley@google.com> | 2015-09-01 11:07:48 -0700 |
---|---|---|
committer | Christopher Wiley <wiley@google.com> | 2015-09-01 11:15:31 -0700 |
commit | 3616d138056b61bd151820b9799820b70d797061 (patch) | |
tree | 52428819c003d5e22c91f66d0e94289f4beb424c /options.cpp | |
parent | 9d76d6b95816a00d3b7c4807713cf8501428e422 (diff) | |
download | android_system_tools_aidl-3616d138056b61bd151820b9799820b70d797061.tar.gz android_system_tools_aidl-3616d138056b61bd151820b9799820b70d797061.tar.bz2 android_system_tools_aidl-3616d138056b61bd151820b9799820b70d797061.zip |
aidl: Separate aidl logic into its own static library
Compile aidl's logic into a static library that can be
linked against both the unittest binary and the executable. Validate
that this is working by writing a basic unittest against options
parsing.
Provide default values for Options struct members. These were
previously taking on values according to the the bits in the memory
allocated to hold them for preprocessed inputs.
Bug: 23516947
Change-Id: Ib57cd7f473995f7851d788deac39f9c4d9018e8f
Test: compiles and unittests pass
Diffstat (limited to 'options.cpp')
-rw-r--r-- | options.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/options.cpp b/options.cpp index 7b2daeb..52b0972 100644 --- a/options.cpp +++ b/options.cpp @@ -48,10 +48,6 @@ parse_options(int argc, const char* const* argv, Options *options) return 0; } - options->task = COMPILE_AIDL; - options->failOnParcelable = false; - options->autoDepFile = false; - // OPTIONS while (i < argc) { const char* s = argv[i]; |