Skip to content

Commit feade3a

Browse files
Adding Makefile for building project and updating documentation
1 parent 79b1890 commit feade3a

File tree

2 files changed

+25
-14
lines changed

2 files changed

+25
-14
lines changed

Makefile

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
.DEFAULT_GOAL := all
3+
4+
init:
5+
git submodule update --init
6+
android update project -p .
7+
8+
all: build-external build-jni build-java
9+
10+
build-external:
11+
cd external/ && \
12+
make -f Android.mk build-local-hack && \
13+
ndk-build && \
14+
make -f Android.mk copy-libs-hack
15+
16+
build-jni:
17+
cd jni/ && ndk-build
18+
19+
build-java:
20+
ant compile && \
21+
cd bin/classes && \
22+
jar -cvf sqlcipher.jar .

README.org

+3-14
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,10 @@ Notepadbot is a sample application pulled from the standard Android samples code
7070
In order to build android-database-sqlcipher from source you will need both the Android SDK as well as Android NDK. Once you have cloned the repo, change directory into the root of the repository and run the following commands:
7171

7272
: # this only needs to be done once
73-
: git submodule update --init
74-
: android update project -p .
73+
: make init
7574

76-
: cd external
77-
: make -f Android.mk build-local-hack
78-
: ndk-build
79-
: make -f Android.mk copy-libs-hack
80-
81-
: cd ../jni
82-
: ndk-build
83-
84-
: cd ..
85-
: ant compile
86-
: cd bin/classes
87-
: jar -cvf sqlcipher.jar .
75+
: # to build the source
76+
: make
8877

8978
Copy =libsqlcipher_android.so= in =external/libs/armeabi= and =libdatabase_sqlcipher.so= in =jni/libs/armeabi= to your application =libs/armeabi= folder. Copy the =sqlcipher.jar= file in =bin/classes= to your =libs= directory. Finally, copy the =icudt44l.zip= file in the =assets= directory to your =assets= directory. Finally, you will need to copy =commons-codec.jar= and =guava-r09.jar= located in the =libs= directory into your application =libs= directory.
9079

0 commit comments

Comments
 (0)