Skip to content

Instantly share code, notes, and snippets.

@mazgi
Last active December 14, 2015 07:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mazgi/5048202 to your computer and use it in GitHub Desktop.
Save mazgi/5048202 to your computer and use it in GitHub Desktop.
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := SQLite3Driver4AndroidSDK
LOCAL_SRC_FILES := SQLite3Driver4AndroidSDK.cpp
LOCAL_SRC_FILES += ../../../ThirdParty/sqlite3/sqlite-amalgamation.current/sqlite3.c
LOCAL_SRC_FILES += ../../../common/SQLiteDriverCPP.cpp
LOCAL_C_INCLUDES := $(JNI_H_INCLUDE)
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../ThirdParty/sqlite3/sqlite-amalgamation.current
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../common
include $(BUILD_SHARED_LIBRARY)
APP_PLATFORM := android-8
APP_STL := gnustl_static
@mazgi
Copy link
Author

mazgi commented Feb 28, 2013

sqlite3のソースが置いてあるディレクトリはこんな感じ

[mazgi@Mac] $ cd ${SOMEDIR}/SQLiteTestDrive/ThirdParty/sqlite3
[mazgi@Mac] $ ll
total 6352
drwxr-xr-x   6 mazgi  staff      204 Jan  9 22:51 sqlite-amalgamation-3071502/
-rw-r--r--   1 mazgi  staff  1396271 Feb 27 22:39 sqlite-amalgamation-3071502.zip
lrwxr-xr-x   1 mazgi  staff       27 Feb 27 22:40 sqlite-amalgamation.current@ -> sqlite-amalgamation-3071502
drwxr-xr-x  34 mazgi  staff     1156 Feb 27 22:25 sqlite-autoconf-3071502/
-rw-r--r--   1 mazgi  staff  1846778 Feb 27 22:17 sqlite-autoconf-3071502.tar.gz
lrwxr-xr-x   1 mazgi  staff       23 Feb 27 22:18 sqlite-autoconf.current@ -> sqlite-autoconf-3071502

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment