forked from holzschu/python3_ios
-
Notifications
You must be signed in to change notification settings - Fork 1
/
building
16 lines (13 loc) · 892 Bytes
/
building
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
- downloaded Python-3.7.1 source code
- compile for Mac once, I guess:
mkdir macOS
setenv CFLAGS "-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/"
setenv CPPFLAGS "-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/"
./configure --without-gcc --prefix=$HOME/src/Xcode_iPad/python3_ios/macOS/
make install
- cross-compile:
setenv PATH /Users/holzschu/src/Xcode_iPad/python3_ios/macOS/bin/:$PATH
setenv CFLAGS "-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/"
setenv CPPFLAGS "-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/"
./configure --without-gcc --host=armv7-apple-darwin --build=x86_64-apple-darwin18.2.0
- todo: add libssh2 / openssl frameworks