Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
illuna-minetest
Commits
2b8ed9e8
Commit
2b8ed9e8
authored
10 years ago
by
sapier
Browse files
Options
Downloads
Patches
Plain Diff
Switch android build to external sqlite3
parent
42f3515c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build/android/Makefile
+18
-2
18 additions, 2 deletions
build/android/Makefile
build/android/jni/Android.mk
+2
-1
2 additions, 1 deletion
build/android/jni/Android.mk
with
20 additions
and
3 deletions
build/android/Makefile
+
18
−
2
View file @
2b8ed9e8
...
...
@@ -130,6 +130,9 @@ FREETYPE_TIMESTAMP = $(FREETYPE_DIR)timestamp
FREETYPE_TIMESTAMP_INT
=
$(
ROOT
)
/deps/freetype_timestamp
FREETYPE_URL_GIT
=
https://github.com/cdave1/freetype2-android
SQLITE3_FOLDER
=
sqlite-amalgamation-3080704
SQLITE3_URL
=
http://www.sqlite.org/2014/
$(
SQLITE3_FOLDER
)
.zip
-include
$(PATHCFGFILE)
#use interim target variable to switch leveldb on or off
...
...
@@ -140,7 +143,7 @@ endif
.PHONY
:
debug release reconfig delconfig
\
leveldb_download clean_leveldb leveldb
\
irrlicht_download clean_irrlicht irrlicht
\
clean_assets assets
\
clean_assets assets
sqlite3_download
\
freetype_download clean_freetype freetype
\
apk clean_apk
\
clean_all clean prep_srcdir
\
...
...
@@ -553,6 +556,18 @@ curl_binary:
rm
curl-7.34.0-rtmp-ssh2-ssl-zlib-static-bin-android.tar.gz
;
\
fi
sqlite3_download
:
deps/${SQLITE3_FOLDER}/sqlite3.c
deps/${SQLITE3_FOLDER}/sqlite3.c
:
cd
deps
;
\
wget
${
SQLITE3_URL
};
\
unzip
${
SQLITE3_FOLDER
}
.zip
;
\
ln
-s
${
SQLITE3_FOLDER
}
sqlite
clean_sqlite3
:
cd
deps
&&
$(
RM
)
-rf
${
SQLITE3_FOLDER
}
&&
$(
RM
)
-f
${
SQLITE3_FOLDER
}
.zip
&&
\
$(
RM
)
-f
sqlite
$(ASSETS_TIMESTAMP)
:
$(IRRLICHT_LIB)
@
mkdir
-p
${
ROOT
}
/deps
;
\
LAST_MODIF
=
$$(
find
${
ROOT
}
/../../builtin
-type
f
-printf
'%T@ %p\n'
|
sort
-n
|
tail
-1
|
cut
-f2-
-d
" "
);
\
...
...
@@ -661,7 +676,8 @@ clean_assets :
@$(
RM
)
-r
assets
apk
:
$(PATHCFGFILE) assets $(IRRLICHT_LIB) $(CURL_LIB) $(LEVELDB_TARGET)
\
$(OPENAL_LIB) $(OGG_LIB) prep_srcdir $(ROOT)/jni/src/android_version.h
$(OPENAL_LIB) $(OGG_LIB) prep_srcdir $(ROOT)/jni/src/android_version.h
\
sqlite3_download
@
export
NDEBUG
=
$$
NDEBUG
;
$(
MAKE
)
-j
${
PARALLEL
}
manifest
;
\
export
PATH
=
$$
PATH:
${
SDKFOLDER
}
/platform-tools:
${
ANDROID_NDK
};
\
export
ANDROID_HOME
=
${
SDKFOLDER
};
\
...
...
This diff is collapsed.
Click to expand it.
build/android/jni/Android.mk
+
2
−
1
View file @
2b8ed9e8
...
...
@@ -98,6 +98,7 @@ LOCAL_C_INCLUDES := \
deps/openal-soft/jni/OpenAL/include
\
deps/libvorbis-libogg-android/jni/include
\
deps/leveldb/include
\
deps/sqlite/
LOCAL_SRC_FILES
:=
\
jni/src/ban.cpp
\
...
...
@@ -290,7 +291,7 @@ LOCAL_SRC_FILES += \
jni/src/lua/src/print.c
# sqlite
LOCAL_SRC_FILES
+=
jni/src
/sqlite/sqlite3.c
LOCAL_SRC_FILES
+=
deps
/sqlite/sqlite3.c
# jthread
LOCAL_SRC_FILES
+=
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment