Build osx script - #85
Conversation
-b | --build) APP_BUILD="$2"
-b --build <build_dir, default:SCRIPT/build> Folder into which to build the app
misl6
left a comment
There was a problem hiding this comment.
Hi @drernie !
I've left some comments, let me know what you think about it 😀
FYI:
Just as a info, as the PR I'm referring to is in WIP status and we still have to take some decisions on that.
A build script for SDL dependencies will likely be exposed soon by Kivy itself, so in order to avoid code duplication we will also need to make the appropriate changes here on kivy-sdk-packager. (Ref: kivy/kivy#8096 )
|
|
||
| echo "-- Set MACOSX_DEPLOYMENT_TARGET" | ||
| export SDKROOT=$(xcrun -sdk macosx --show-sdk-path) | ||
| export MACOSX_DEPLOYMENT_TARGET=$(xcrun --show-sdk-version) |
There was a problem hiding this comment.
Better to leave MACOSX_DEPLOYMENT_TARGET set to the minimum supported version.
There was a problem hiding this comment.
Unfortunately I didn't have that SDK installed, so it wouldn't build unless I changed it.
| APP_FRAME="${APP_DIR}/Contents/Frameworks" | ||
| SDL_HEAD="${APP_FRAME}/SDL2.framework/Headers" | ||
| APP_SDLH="${BUILD_DIR}/SDL/include" | ||
| # /Users/quilt/Documents/GitHub/quiltsync/build/SDL/include/SDL.h |
There was a problem hiding this comment.
Is this comment left here intentionally?
There was a problem hiding this comment.
Not intentional. I actually abandoned this half-way through, but wanted to share my learnings.
extracted from README and generalized