forked from Howard20181/sqlite3
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
25 lines (20 loc) · 846 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ZIP_FILES := customize.sh META-INF module.prop system
VERSION = v3.47.2
VERSIONCODE = 20241212
.PHONY: module.prop system/bin zip
default: module.prop system/bin zip
zip:
rm -f SQLite-$(VERSION)-for-magisk.multi-arch.zip
zip -9 -r SQLite-$(VERSION)-for-magisk.multi-arch.zip $(ZIP_FILES)
module.prop:
sed -i 's/version=.*$$/version=$(VERSION)/' module.prop
sed -i 's/versionCode=.*$$/versionCode=$(VERSIONCODE)/' module.prop
sqlite3-android:
make -C ../sqlite3-android clean
make -C ../sqlite3-android
system/bin:
mkdir -p system/bin
cp ../sqlite3-android/libs/arm64-v8a/sqlite3-static system/bin/sqlite3.arm64
cp ../sqlite3-android/libs/armeabi-v7a/sqlite3-static system/bin/sqlite3.arm
cp ../sqlite3-android/libs/x86_64/sqlite3-static system/bin/sqlite3.x64
cp ../sqlite3-android/libs/x86/sqlite3-static system/bin/sqlite3.x86