Bundle frameworks and fix dynamic library paths to allow distribution
- Also updated readme and removed unused sfml-network dependency - Remove redundant inclusion of /opt/local library search paths, as my Boost is in /usr/local and trying to compile against the MacPorts version doesn't work for some reason - Use absolute paths instead of relative paths for linked frameworks and libraries in the project structure - Don't try to link SFML.framework as it only contains headers, not libraries - Add freetype to the project (was always a dependency, just more explicit now)
This commit is contained in:
21
osx/fix_dylibs.sh
Executable file
21
osx/fix_dylibs.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
# fix_dylibs.sh
|
||||
# BoE
|
||||
#
|
||||
# Created by Celtic Minstrel on 14-04-17.
|
||||
#
|
||||
|
||||
echo Fixing boost dylib install names...
|
||||
|
||||
EXEPATH=@executable_path/../Frameworks
|
||||
BOEPATH="$BUILT_PRODUCTS_DIR/$EXECUTABLE_PATH"
|
||||
BFSPATH="$BUILT_PRODUCTS_DIR/$FRAMEWORKS_FOLDER_PATH/libboost_filesystem.dylib"
|
||||
|
||||
# Update references in the executable file
|
||||
install_name_tool -change libboost_system.dylib "$EXEPATH/libboost_system.dylib" "$BOEPATH"
|
||||
install_name_tool -change libboost_filesystem.dylib "$EXEPATH/libboost_filesystem.dylib" "$BOEPATH"
|
||||
|
||||
# Update references within Boost
|
||||
install_name_tool -change libboost_system.dylib "$EXEPATH/libboost_system.dylib" "$BFSPATH"
|
||||
|
Reference in New Issue
Block a user