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
45 lines (34 loc) · 801 Bytes
/
recipe.sh
File metadata and controls
45 lines (34 loc) · 801 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
#!/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 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 $BUILD_PATH/python-install/bin/python.host setup.py build_ext -v
try $BUILD_PATH/python-install/bin/python.host setup.py install -O2
unset LDSHARED
touch .done
pop_arm
}
function postbuild_android() {
true
}