File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # TODO get a release version if possible
4
+ VERSION_libswift=
5
+ DEPS_libswift=()
6
+ # TODO get a version specific URL and update the md5sum
7
+ # URL_libswift=https://github.com/whirm/tgs-android/archive/master.zip
8
+ # MD5_libswift=23ce86e2bd4d213fdcf1d8c5c37a979a
9
+ URL_libswift=https://nodeload.github.com/triblerteam/libswift/zip/4123e6579309cd65a5ba3800e0b674f348c62bfb
10
+ FILENAME_libswift=4123e6579309cd65a5ba3800e0b674f348c62bfb
11
+ EXTRACT_libswift=$BUILD_PATH /libswift/libswift-$FILENAME_libswift
12
+ BUILD_libswift=$BUILD_PATH /libswift/libswift
13
+ RECIPE_libswift=$RECIPES_PATH /libswift
14
+
15
+ function prebuild_libswift() {
16
+ true
17
+ }
18
+
19
+ function build_libswift() {
20
+ if [ ! -d " $BUILD_libswift " ]; then
21
+ cd $BUILD_PATH /libswift
22
+ mkdir -p libswift
23
+ unzip $PACKAGES_PATH /$FILENAME_libswift
24
+ rm -Rf libswift/jni
25
+ mv $EXTRACT_libswift libswift/jni
26
+ fi
27
+ cd $BUILD_libswift
28
+ mkdir -p libs
29
+
30
+ if [ -f " $BUILD_PATH /libs/libevent.so" ]; then
31
+ # return
32
+ true
33
+ fi
34
+
35
+ push_arm
36
+
37
+ # FIXME get it so you don't have to download the jni module manually
38
+ export LDFLAGS=$LIBLINK
39
+ try ndk-build -C $BUILD_libswift /jni
40
+ unset LDFLAGS
41
+
42
+ # TODO find out why it's libevent.so and not libswift.so
43
+ try cp -a $BUILD_libswift /libs/$ARCH /* .so $LIBS_PATH
44
+
45
+ pop_arm
46
+ }
47
+
48
+ function postbuild_libswift() {
49
+ true
50
+ }
51
+
You can’t perform that action at this time.
0 commit comments