OSDN Git Service

aidl: Separate aidl logic into its own static library
authorChristopher Wiley <wiley@google.com>
Tue, 1 Sep 2015 18:07:48 +0000 (11:07 -0700)
committerChristopher Wiley <wiley@google.com>
Tue, 1 Sep 2015 18:15:31 +0000 (11:15 -0700)
commita25d35106e2ff0a50d30f2e7fc7e32f1533cb446
tree8d1e3c381f75d2eb1f9191843cc064542d486c81
parent267cb88f4d4adb2cdddd9b29eb8fce7104507114
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
tools/aidl/Android.mk
tools/aidl/options.cpp
tools/aidl/options.h
tools/aidl/options_unittest.cpp [new file with mode: 0644]