art: Refactor RuntimeOptions/ParsedOptions
Refactor the RuntimeOptions to be a
type-safe map (VariantMap, see runtime_options.h) and the ParsedOptions
to delegate the parsing to CmdlineParser (see cmdline/cmdline_parser.h).
This is the start of a command line parsing refactor, and may include
more in the future (dex2oat, patchoat, etc).
For more details of the command line parsing generator usage see cmdline/README.md
Change-Id: Ic67c6bca5e1f33bf2ec60e2e3ff8c366bab91563
diff --git a/runtime/Android.mk b/runtime/Android.mk
index 30cf580..907d884 100644
--- a/runtime/Android.mk
+++ b/runtime/Android.mk
@@ -139,6 +139,7 @@
reference_table.cc \
reflection.cc \
runtime.cc \
+ runtime_options.cc \
signal_catcher.cc \
stack.cc \
thread.cc \
@@ -457,7 +458,9 @@
endif
LOCAL_C_INCLUDES += $$(ART_C_INCLUDES)
+ LOCAL_C_INCLUDES += art/cmdline
LOCAL_C_INCLUDES += art/sigchainlib
+ LOCAL_C_INCLUDES += art
LOCAL_SHARED_LIBRARIES := libnativehelper libnativebridge libsigchain
LOCAL_SHARED_LIBRARIES += libbacktrace