some patches for _ctypes compilation. Still it doesn't works.
This commit is contained in:
parent
aedcd4e9eb
commit
43b613d9fa
4 changed files with 18 additions and 12 deletions
2
src/python_files/ModulesSetup.mobile
Normal file
2
src/python_files/ModulesSetup.mobile
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Ctypes
|
||||
_ctypes _ctypes/_ctypes.c _ctypes/callbacks.c _ctypes/callproc.c _ctypes/stgdict.c _ctypes/cfield.c -I$(srcdir)/../../build/include/ffi
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
. $(dirname $0)/environment.sh
|
||||
|
||||
try $(dirname $0)/build-libffi.sh
|
||||
try $(dirname $0)/build-python.sh
|
||||
try $(dirname $0)/reduce-python.sh
|
||||
try $(dirname $0)/build-ios.sh
|
||||
|
@ -12,6 +13,7 @@ try $(dirname $0)/build-sdlmixer.sh
|
|||
try $(dirname $0)/build-libjpeg.sh
|
||||
try $(dirname $0)/build-pil.sh
|
||||
try $(dirname $0)/build-kivy.sh
|
||||
try $(dirname $0)/build-pyobjus.sh
|
||||
|
||||
echo '== Build done'
|
||||
echo "Available libraries in $BUILDROOT/lib"
|
||||
|
|
|
@ -3,16 +3,16 @@
|
|||
. $(dirname $0)/environment.sh
|
||||
|
||||
if [ ! -f $CACHEROOT/libffi-$FFI_VERSION.tar.gz ]; then
|
||||
try curl -L ftp://sourceware.org/pub/libffi/libffi-$FFI_VERSION.tar.gz > $CACHEROOT/libffi-$FFI_VERSION.tar.gz
|
||||
try curl -L ftp://sourceware.org/pub/libffi/libffi-$FFI_VERSION.tar.gz > $CACHEROOT/libffi-$FFI_VERSION.tar.gz
|
||||
fi
|
||||
if [ ! -d $TMPROOT/libffi-$FFI_VERSION ]; then
|
||||
try rm -rf $TMPROOT/libffi-$FFI_VERSION
|
||||
try tar xvf $CACHEROOT/libffi-$FFI_VERSION.tar.gz
|
||||
try mv libffi-$FFI_VERSION $TMPROOT
|
||||
try rm -rf $TMPROOT/libffi-$FFI_VERSION
|
||||
try tar xvf $CACHEROOT/libffi-$FFI_VERSION.tar.gz
|
||||
try mv libffi-$FFI_VERSION $TMPROOT
|
||||
fi
|
||||
|
||||
if [ -f $TMPROOT/libffi-$FFI_VERSION/Release-iphoneos/libffi.a ]; then
|
||||
exit 0;
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
# lib not found, compile it
|
||||
|
|
|
@ -50,21 +50,23 @@ ln -s "$IOSSDKROOT/usr/lib/libgcc_s.1.dylib" extralibs/libgcc_s.10.4.dylib || ec
|
|||
|
||||
# Copy our setup for modules
|
||||
try cp $KIVYIOSROOT/src/python_files/ModulesSetup Modules/Setup.local
|
||||
try cat $KIVYIOSROOT/src/python_files/ModulesSetup.mobile >> Modules/Setup.local
|
||||
try cp $KIVYIOSROOT/src/python_files/_scproxy.py Lib/_scproxy.py
|
||||
|
||||
try ./configure CC="$ARM_CC" LD="$ARM_LD" \
|
||||
CFLAGS="$ARM_CFLAGS" \
|
||||
LDFLAGS="$ARM_LDFLAGS -Lextralibs/ -lsqlite3" \
|
||||
--without-pymalloc \
|
||||
--disable-toolbox-glue \
|
||||
--host=armv7-apple-darwin \
|
||||
--prefix=/python \
|
||||
CFLAGS="$ARM_CFLAGS" \
|
||||
LDFLAGS="$ARM_LDFLAGS -Lextralibs/ -lsqlite3 -L$BUILDROOT/lib -undefined dynamic_lookup" \
|
||||
--without-pymalloc \
|
||||
--disable-toolbox-glue \
|
||||
--host=armv7-apple-darwin \
|
||||
--prefix=/python \
|
||||
--without-doc-strings
|
||||
|
||||
try make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen \
|
||||
CROSS_COMPILE_TARGET=yes
|
||||
|
||||
try make install HOSTPYTHON=./hostpython CROSS_COMPILE_TARGET=yes prefix="$BUILDROOT/python"
|
||||
try make install HOSTPYTHON=./hostpython CROSS_COMPILE_TARGET=yes \
|
||||
prefix="$BUILDROOT/python"
|
||||
|
||||
try mv -f $BUILDROOT/python/lib/libpython2.7.a $BUILDROOT/lib/
|
||||
|
||||
|
|
Loading…
Reference in a new issue