Add class loading infrastructure.
Change-Id: I94bdabcefdf1030ee1827d9219eaf60e4dc818ca
diff --git a/Android.common.mk b/Android.common.mk
index 916a1f9..cc870d4 100644
--- a/Android.common.mk
+++ b/Android.common.mk
@@ -16,14 +16,36 @@
LOCAL_CPP_EXTENSION := .cc
+LOCAL_CFLAGS := \
+ -O0 \
+ -ggdb3 \
+ -Wall \
+ -Werror \
+ -Wextra \
+ -Wno-unused-parameter \
+ -Wno-deprecated \
+ -Wstrict-aliasing=2 \
+ -fno-align-jumps \
+ -fstrict-aliasing
+
+ifeq ($(TARGET_ARCH),arm)
+LOCAL_CFLAGS +=
+endif
+
+ifeq ($(TARGET_ARCH),x86)
+LOCAL_CFLAGS +=
+endif
+
AEXEC_LOCAL_SRC_FILES := \
src/main.cc
LIBART_LOCAL_SRC_FILES := \
- src/art.cc \
src/assembler.cc \
+ src/dex_file.cc \
src/dex_instruction.cc \
- src/memory_region.cc
+ src/memory_region.cc \
+ src/raw_dex_file.cc \
+ src/runtime.cc
ifeq ($(LIBART_TARGET_ARCH),arm)
LIBART_LOCAL_SRC_FILES += \
@@ -36,7 +58,9 @@
endif
TEST_LOCAL_SRC_FILES := \
- src/dex_instruction_visitor_test.cc
+ src/dex_file_test.cc \
+ src/dex_instruction_visitor_test.cc \
+ src/raw_dex_file_test.cc
ifeq ($(TEST_TARGET_ARCH),arm)
TEST_LOCAL_SRC_FILES +=