Home | History | Annotate | Download | only in javasqlite
      1 # -*- mode: makefile -*-
      2 
      3 LOCAL_PATH := $(call my-dir)
      4 
      5 include $(CLEAR_VARS)
      6 LOCAL_SRC_FILES := $(call all-java-files-under,src/main/java)
      7 LOCAL_NO_STANDARD_LIBRARIES := true
      8 LOCAL_JAVA_LIBRARIES := core
      9 LOCAL_MODULE_TAGS := optional
     10 LOCAL_MODULE := sqlite-jdbc
     11 include $(BUILD_STATIC_JAVA_LIBRARY)
     12 
     13 sqlite_jdbc_src_files := \
     14     src/main/native/sqlite_jni.c
     15 sqlite_jdbc_local_c_includes := \
     16     $(JNI_H_INCLUDE) \
     17     external/sqlite/dist
     18 
     19 include $(CLEAR_VARS)
     20 LOCAL_SRC_FILES := $(sqlite_jdbc_src_files)
     21 LOCAL_C_INCLUDES += $(sqlite_jdbc_local_c_includes)
     22 LOCAL_SHARED_LIBRARIES += libsqlite
     23 LOCAL_MODULE_TAGS := optional
     24 # This name is dictated by the fact that the SQLite code calls loadLibrary("sqlite_jni").
     25 LOCAL_MODULE := libsqlite_jni
     26 LOCAL_PRELINK_MODULE := false
     27 include $(BUILD_SHARED_LIBRARY)
     28 
     29 ifeq ($(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)
     45 endif
     46