• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_NO_STANDARD_LIBRARIES := true
33     LOCAL_JAVA_LIBRARIES := core-hostdex
34     LOCAL_JAVACFLAGS := $(local_javac_flags)
35     LOCAL_MODULE_TAGS := optional
36     LOCAL_MODULE := sqlite-jdbc-host
37     include $(BUILD_HOST_JAVA_LIBRARY)
38 
39     include $(CLEAR_VARS)
40     LOCAL_SRC_FILES := $(sqlite_jdbc_src_files)
41     LOCAL_C_INCLUDES += $(sqlite_jdbc_local_c_includes)
42     LOCAL_SHARED_LIBRARIES += libsqlite
43     LOCAL_MODULE_TAGS := optional
44     LOCAL_MODULE := libsqlite_jni
45     LOCAL_PRELINK_MODULE := false
46     include $(BUILD_HOST_SHARED_LIBRARY)
47 endif
48