summaryrefslogtreecommitdiffstats
path: root/options.cpp
diff options
context:
space:
mode:
authorChristopher Wiley <wiley@google.com>2015-09-01 11:07:48 -0700
committerChristopher Wiley <wiley@google.com>2015-09-01 11:15:31 -0700
commit3616d138056b61bd151820b9799820b70d797061 (patch)
tree52428819c003d5e22c91f66d0e94289f4beb424c /options.cpp
parent9d76d6b95816a00d3b7c4807713cf8501428e422 (diff)
downloadandroid_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.cpp4
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];