blob: e1a4e560128e4d8287c91be9f2a8cc6b23df886c [file] [log] [blame]
Elliott Hughesc8eba0a2011-01-07 16:24:47 -08001# -*- mode: makefile -*-
Jesse Wilson971e21f2010-09-14 16:45:04 -07002
Brian Carlstrom93a155d2011-03-17 21:40:00 -07003LOCAL_PATH := $(call my-dir)
4
5include $(CLEAR_VARS)
6LOCAL_SRC_FILES := $(call all-java-files-under,src/main/java)
7LOCAL_NO_STANDARD_LIBRARIES := true
Brian Carlstromb2c368c2014-06-18 15:11:01 -07008LOCAL_JAVA_LIBRARIES := core-libart
Brian Carlstrom93a155d2011-03-17 21:40:00 -07009LOCAL_MODULE_TAGS := optional
10LOCAL_MODULE := sqlite-jdbc
Brian Carlstromb40324f2011-03-18 12:51:44 -070011include $(BUILD_STATIC_JAVA_LIBRARY)
Brian Carlstrom93a155d2011-03-17 21:40:00 -070012
Jesse Wilson971e21f2010-09-14 16:45:04 -070013sqlite_jdbc_src_files := \
14 src/main/native/sqlite_jni.c
15sqlite_jdbc_local_c_includes := \
Jesse Wilson971e21f2010-09-14 16:45:04 -070016 external/sqlite/dist
17
Elliott Hughes417deb12010-02-26 14:46:53 -080018include $(CLEAR_VARS)
Jesse Wilson971e21f2010-09-14 16:45:04 -070019LOCAL_SRC_FILES := $(sqlite_jdbc_src_files)
20LOCAL_C_INCLUDES += $(sqlite_jdbc_local_c_includes)
21LOCAL_SHARED_LIBRARIES += libsqlite
Jesse Wilson65681992010-09-16 15:46:05 -070022LOCAL_MODULE_TAGS := optional
Jesse Wilson971e21f2010-09-14 16:45:04 -070023# This name is dictated by the fact that the SQLite code calls loadLibrary("sqlite_jni").
Elliott Hughes417deb12010-02-26 14:46:53 -080024LOCAL_MODULE := libsqlite_jni
Elliott Hughes417deb12010-02-26 14:46:53 -080025include $(BUILD_SHARED_LIBRARY)
Jesse Wilson971e21f2010-09-14 16:45:04 -070026
Narayan Kamath114ffb52015-01-23 16:54:50 +000027ifeq ($(HOST_OS),linux)
Ian Rogers015da792014-06-08 21:50:28 -070028include $(CLEAR_VARS)
29LOCAL_SRC_FILES := $(call all-java-files-under,src/main/java)
30LOCAL_JAVACFLAGS := $(local_javac_flags)
31LOCAL_MODULE_TAGS := optional
32LOCAL_MODULE := sqlite-jdbc-host
33include $(BUILD_HOST_DALVIK_STATIC_JAVA_LIBRARY)
Narayan Kamath114ffb52015-01-23 16:54:50 +000034endif # HOST_OS == linux.
Brian Carlstrom93a155d2011-03-17 21:40:00 -070035
Ian Rogers015da792014-06-08 21:50:28 -070036include $(CLEAR_VARS)
37LOCAL_SRC_FILES := $(sqlite_jdbc_src_files)
38LOCAL_C_INCLUDES += $(sqlite_jdbc_local_c_includes)
39LOCAL_SHARED_LIBRARIES += libsqlite
40LOCAL_MODULE_TAGS := optional
41LOCAL_MODULE := libsqlite_jni
Ian Rogers015da792014-06-08 21:50:28 -070042include $(BUILD_HOST_SHARED_LIBRARY)