forked from kivy/python-for-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecipe.sh
More file actions
51 lines (39 loc) · 839 Bytes
/
recipe.sh
File metadata and controls
51 lines (39 loc) · 839 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
VERSION_android=
URL_android=
DEPS_android=(pygame)
MD5_android=
BUILD_android=$BUILD_PATH/android/android
RECIPE_android=$RECIPES_PATH/android
function prebuild_android() {
cd $BUILD_PATH/android
rm -rf android
if [ ! -d android ]; then
try cp -a $RECIPE_android/src $BUILD_android
fi
}
function shouldbuild_android() {
if [ -d "$SITEPACKAGES_PATH/android" ]; then
DO_BUILD=0
fi
}
function build_android() {
cd $BUILD_android
# if the last step have been done, avoid all
if [ -f .done ]; then
return
fi
push_arm
export LDFLAGS="$LDFLAGS -L$LIBS_PATH"
export LDSHARED="$LIBLINK"
# cythonize
try find . -iname '*.pyx' -exec $CYTHON {} \;
try $HOSTPYTHON setup.py build_ext -v
try $HOSTPYTHON setup.py install -O2
unset LDSHARED
touch .done
pop_arm
}
function postbuild_android() {
true
}