Skip to content

Commit 37bddb5

Browse files
committed
initial commit
1 parent fb71bfb commit 37bddb5

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

recipes/libswift/recipe.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
3+
VERSION_libswift=
4+
DEPS_libswift=()
5+
URL_libswift=https://github.com/whirm/tgs-android/archive/master.zip
6+
MD5_libswift=23ce86e2bd4d213fdcf1d8c5c37a979a
7+
BUILD_libswift=$BUILD_PATH/libswift/$(get_directory $URL_libswift)
8+
RECIPE_libswift=$RECIPES_PATH/libswift
9+
10+
function prebuild_libswift() {
11+
true
12+
}
13+
14+
function build_libswift() {
15+
cd $BUILD_libswift
16+
17+
#FIXME check for .so
18+
if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/libswift" ]; then
19+
#return
20+
true
21+
fi
22+
23+
push_arm
24+
25+
#FIXME get it so you don't have to download the jni module manually
26+
export $LDFLAGS=$LIBLINK
27+
try ndk-build -C $BUILD_libswift/jni
28+
unset LDFLAGS
29+
30+
echo "Copying libs:"
31+
try cp -a $BUILD_libswift/libs/$ARCH/*.so $LIBS_PATH
32+
33+
pop_arm
34+
}
35+
36+
function postbuild_libswift() {
37+
true
38+
}
39+

0 commit comments

Comments
 (0)