Code for loading shared libraries and calling JNI_OnLoad.
This causes a bit of log spam as we call unimplemented JNI functions,
but fixing those is my first job tomorrow. The exciting thing here is
that we're now loading libcore's classes and libcore's JNI.
I've changed ParsedOptions' std::vector of verbose options over to a
std::set for the convenience of callers, and defaulted -verbose:jni to
on. (This is not the cause of the log spam.)
The only nasty bit here is that icu4c doesn't like being initialized
more than 10 times, because it has a 10-element fixed-size array. The
u_cleanup function is not publicly accessible, so we have to fiddle
around with dlsym(3) twice in one patch...
Change-Id: I9f6b5d74621eb2e88d04a89f00335067fda4ccbe
diff --git a/build/Android.common.mk b/build/Android.common.mk
index fd0acf2..6fa0293 100644
--- a/build/Android.common.mk
+++ b/build/Android.common.mk
@@ -16,7 +16,11 @@
ART_CPP_EXTENSION := .cc
-ART_C_INCLUDES := external/gtest/include external/zlib
+ART_C_INCLUDES := \
+ external/gtest/include \
+ external/icu4c/common \
+ external/icu4c/i18n \
+ external/zlib
ART_CFLAGS := \
-O0 \