Elliott Hughes | c8eba0a | 2011-01-07 16:24:47 -0800 | [diff] [blame] | 1 | # -*- mode: makefile -*- |
Jesse Wilson | 971e21f | 2010-09-14 16:45:04 -0700 | [diff] [blame] | 2 | |
Brian Carlstrom | 93a155d | 2011-03-17 21:40:00 -0700 | [diff] [blame] | 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 |
Brian Carlstrom | b2c368c | 2014-06-18 15:11:01 -0700 | [diff] [blame] | 8 | LOCAL_JAVA_LIBRARIES := core-libart |
Brian Carlstrom | 93a155d | 2011-03-17 21:40:00 -0700 | [diff] [blame] | 9 | LOCAL_MODULE_TAGS := optional |
| 10 | LOCAL_MODULE := sqlite-jdbc |
Brian Carlstrom | b40324f | 2011-03-18 12:51:44 -0700 | [diff] [blame] | 11 | include $(BUILD_STATIC_JAVA_LIBRARY) |
Brian Carlstrom | 93a155d | 2011-03-17 21:40:00 -0700 | [diff] [blame] | 12 | |
Jesse Wilson | 971e21f | 2010-09-14 16:45:04 -0700 | [diff] [blame] | 13 | sqlite_jdbc_src_files := \ |
| 14 | src/main/native/sqlite_jni.c |
| 15 | sqlite_jdbc_local_c_includes := \ |
Jesse Wilson | 971e21f | 2010-09-14 16:45:04 -0700 | [diff] [blame] | 16 | external/sqlite/dist |
| 17 | |
Elliott Hughes | 417deb1 | 2010-02-26 14:46:53 -0800 | [diff] [blame] | 18 | include $(CLEAR_VARS) |
Jesse Wilson | 971e21f | 2010-09-14 16:45:04 -0700 | [diff] [blame] | 19 | LOCAL_SRC_FILES := $(sqlite_jdbc_src_files) |
| 20 | LOCAL_C_INCLUDES += $(sqlite_jdbc_local_c_includes) |
| 21 | LOCAL_SHARED_LIBRARIES += libsqlite |
Jesse Wilson | 6568199 | 2010-09-16 15:46:05 -0700 | [diff] [blame] | 22 | LOCAL_MODULE_TAGS := optional |
Jesse Wilson | 971e21f | 2010-09-14 16:45:04 -0700 | [diff] [blame] | 23 | # This name is dictated by the fact that the SQLite code calls loadLibrary("sqlite_jni"). |
Elliott Hughes | 417deb1 | 2010-02-26 14:46:53 -0800 | [diff] [blame] | 24 | LOCAL_MODULE := libsqlite_jni |
Elliott Hughes | 417deb1 | 2010-02-26 14:46:53 -0800 | [diff] [blame] | 25 | include $(BUILD_SHARED_LIBRARY) |
Jesse Wilson | 971e21f | 2010-09-14 16:45:04 -0700 | [diff] [blame] | 26 | |
Narayan Kamath | 114ffb5 | 2015-01-23 16:54:50 +0000 | [diff] [blame^] | 27 | ifeq ($(HOST_OS),linux) |
Ian Rogers | 015da79 | 2014-06-08 21:50:28 -0700 | [diff] [blame] | 28 | include $(CLEAR_VARS) |
| 29 | LOCAL_SRC_FILES := $(call all-java-files-under,src/main/java) |
| 30 | LOCAL_JAVACFLAGS := $(local_javac_flags) |
| 31 | LOCAL_MODULE_TAGS := optional |
| 32 | LOCAL_MODULE := sqlite-jdbc-host |
| 33 | include $(BUILD_HOST_DALVIK_STATIC_JAVA_LIBRARY) |
Narayan Kamath | 114ffb5 | 2015-01-23 16:54:50 +0000 | [diff] [blame^] | 34 | endif # HOST_OS == linux. |
Brian Carlstrom | 93a155d | 2011-03-17 21:40:00 -0700 | [diff] [blame] | 35 | |
Ian Rogers | 015da79 | 2014-06-08 21:50:28 -0700 | [diff] [blame] | 36 | include $(CLEAR_VARS) |
| 37 | LOCAL_SRC_FILES := $(sqlite_jdbc_src_files) |
| 38 | LOCAL_C_INCLUDES += $(sqlite_jdbc_local_c_includes) |
| 39 | LOCAL_SHARED_LIBRARIES += libsqlite |
| 40 | LOCAL_MODULE_TAGS := optional |
| 41 | LOCAL_MODULE := libsqlite_jni |
Ian Rogers | 015da79 | 2014-06-08 21:50:28 -0700 | [diff] [blame] | 42 | include $(BUILD_HOST_SHARED_LIBRARY) |