File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,12 @@ function prebuild_kivy() {
19
19
}
20
20
21
21
function build_kivy() {
22
- cd $BUILD_kivy
23
-
24
- # if the last step have been done, avoid all
25
- if [ -f .done ]; then
22
+ if [ -d " $BUILD_PATH /python-install/lib/python2.7/site-packages/kivy" ]; then
26
23
return
27
24
fi
28
-
25
+
26
+ cd $BUILD_kivy
27
+
29
28
push_arm
30
29
31
30
export LDFLAGS=" $LDFLAGS -L$LIBS_PATH "
@@ -39,7 +38,6 @@ function build_kivy() {
39
38
40
39
try rm -rf $BUILD_PATH /python-install/lib/python* /site-packages/kivy/tools
41
40
42
- touch .done
43
41
pop_arm
44
42
}
45
43
Original file line number Diff line number Diff line change @@ -30,15 +30,18 @@ function prebuild_pil() {
30
30
}
31
31
32
32
function build_pil() {
33
+ if [ -d " $BUILD_PATH /python-install/lib/python2.7/site-packages/PIL" ]; then
34
+ return
35
+ fi
36
+
33
37
cd $BUILD_pil
34
38
35
39
push_arm
36
40
37
41
LIBS=" $SRC_PATH /obj/local/$ARCH "
38
42
export CFLAGS=" $CFLAGS -I$JNI_PATH /png -I$JNI_PATH /jpeg"
39
43
export LDFLAGS=" $LDFLAGS -L$LIBS -lm -lz"
40
- try $BUILD_PATH /python-install/bin/python.host setup.py install
41
- try find build/lib.* -name " *.o" -exec $STRIP {} \;
44
+ try $BUILD_PATH /python-install/bin/python.host setup.py install -O2
42
45
43
46
pop_arm
44
47
}
You can’t perform that action at this time.
0 commit comments