1# -*- mode: makefile -*- 2 3LOCAL_PATH := $(call my-dir) 4 5include $(CLEAR_VARS) 6LOCAL_SRC_FILES := $(call all-java-files-under,src/main/java) 7LOCAL_NO_STANDARD_LIBRARIES := true 8LOCAL_JAVA_LIBRARIES := core 9LOCAL_MODULE_TAGS := optional 10LOCAL_MODULE := sqlite-jdbc 11include $(BUILD_STATIC_JAVA_LIBRARY) 12 13sqlite_jdbc_src_files := \ 14 src/main/native/sqlite_jni.c 15sqlite_jdbc_local_c_includes := \ 16 $(JNI_H_INCLUDE) \ 17 external/sqlite/dist 18 19include $(CLEAR_VARS) 20LOCAL_SRC_FILES := $(sqlite_jdbc_src_files) 21LOCAL_C_INCLUDES += $(sqlite_jdbc_local_c_includes) 22LOCAL_SHARED_LIBRARIES += libsqlite 23LOCAL_MODULE_TAGS := optional 24# This name is dictated by the fact that the SQLite code calls loadLibrary("sqlite_jni"). 25LOCAL_MODULE := libsqlite_jni 26LOCAL_PRELINK_MODULE := false 27include $(BUILD_SHARED_LIBRARY) 28 29ifeq ($(WITH_HOST_DALVIK),true) 30 include $(CLEAR_VARS) 31 LOCAL_SRC_FILES := $(call all-java-files-under,src/main/java) 32 LOCAL_JAVACFLAGS := $(local_javac_flags) 33 LOCAL_MODULE_TAGS := optional 34 LOCAL_MODULE := sqlite-jdbc-host 35 include $(BUILD_HOST_JAVA_LIBRARY) 36 37 include $(CLEAR_VARS) 38 LOCAL_SRC_FILES := $(sqlite_jdbc_src_files) 39 LOCAL_C_INCLUDES += $(sqlite_jdbc_local_c_includes) 40 LOCAL_SHARED_LIBRARIES += libsqlite 41 LOCAL_MODULE_TAGS := optional 42 LOCAL_MODULE := libsqlite_jni 43 LOCAL_PRELINK_MODULE := false 44 include $(BUILD_HOST_SHARED_LIBRARY) 45endif 46