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-libart 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 external/sqlite/dist 17 18include $(CLEAR_VARS) 19LOCAL_SRC_FILES := $(sqlite_jdbc_src_files) 20LOCAL_C_INCLUDES += $(sqlite_jdbc_local_c_includes) 21LOCAL_SHARED_LIBRARIES += libsqlite 22LOCAL_MODULE_TAGS := optional 23# This name is dictated by the fact that the SQLite code calls loadLibrary("sqlite_jni"). 24LOCAL_MODULE := libsqlite_jni 25include $(BUILD_SHARED_LIBRARY) 26 27ifeq ($(HOST_OS),linux) 28include $(CLEAR_VARS) 29LOCAL_SRC_FILES := $(call all-java-files-under,src/main/java) 30LOCAL_MODULE_TAGS := optional 31LOCAL_MODULE := sqlite-jdbc-host 32include $(BUILD_HOST_DALVIK_STATIC_JAVA_LIBRARY) 33endif # HOST_OS == linux. 34 35include $(CLEAR_VARS) 36LOCAL_SRC_FILES := $(sqlite_jdbc_src_files) 37LOCAL_C_INCLUDES += $(sqlite_jdbc_local_c_includes) 38LOCAL_SHARED_LIBRARIES += libsqlite 39LOCAL_MODULE_TAGS := optional 40LOCAL_MODULE := libsqlite_jni 41include $(BUILD_HOST_SHARED_LIBRARY) 42