mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-12 19:27:11 +01:00
More MacOS work
This commit is contained in:
parent
106e0ada80
commit
715129566d
45
make_macos_dotapp.sh
Normal file
45
make_macos_dotapp.sh
Normal file
@ -0,0 +1,45 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Options
|
||||
BUILD_DIR=$1
|
||||
DOTAPP=$2
|
||||
|
||||
# Remove existing .app
|
||||
rm -rf $DOTAPP
|
||||
|
||||
# Create .app structure
|
||||
mkdir $DOTAPP
|
||||
mkdir $DOTAPP/MacOS
|
||||
mkdir $DOTAPP/Frameworks
|
||||
mkdir $DOTAPP/Resources
|
||||
|
||||
# Gather all dependencies
|
||||
|
||||
# Copy core and its dependencies
|
||||
cp $BUILD_DIR/sdrpp $DOTAPP/MacOS/
|
||||
cp $BUILD_DIR/core/libsdrpp_core.dylib $DOTAPP/Frameworks/
|
||||
|
||||
# Get dep paths
|
||||
LIBGLEW_PATH=$(sh macos/get_library_path.sh libGLEW)
|
||||
LIBFFTW3F_PATH=$(sh macos/get_library_path.sh libfftw3f)
|
||||
LIBGLFW_PATH=$(sh macos/get_library_path.sh libglfw)
|
||||
LIBVOLK_PATH=$(sh macos/get_library_path.sh libvolk)
|
||||
|
||||
# Modify path for sdrpp
|
||||
sh macos/set_library_path libglew @rpath/libglew.dylib $DOTAPP/MacOS/sdrpp
|
||||
sh macos/set_library_path libfftw3f @rpath/libfftw3f.dylib $DOTAPP/MacOS/sdrpp
|
||||
sh macos/set_library_path libglfw @rpath/libglfw.dylib $DOTAPP/MacOS/sdrpp
|
||||
sh macos/set_library_path libvolk @rpath/libvolk.dylib $DOTAPP/MacOS/sdrpp
|
||||
|
||||
# Modify path for libsdrpp_core
|
||||
sh macos/set_library_path libglew @rpath/libglew.dylib $DOTAPP/Frameworks/libsdrpp_core.dylib
|
||||
sh macos/set_library_path libfftw3f @rpath/libfftw3f.dylib $DOTAPP/Frameworks/libsdrpp_core.dylib
|
||||
sh macos/set_library_path libglfw @rpath/libglfw.dylib $DOTAPP/Frameworks/libsdrpp_core.dylib
|
||||
sh macos/set_library_path libvolk @rpath/libvolk.dylib $DOTAPP/Frameworks/libsdrpp_core.dylib
|
||||
|
||||
# Copy deps
|
||||
cp $LIBGLEW_PATH $DOTAPP/Frameworks/libglew.dylib
|
||||
cp $LIBFFTW3F_PATH $DOTAPP/Frameworks/libfftw3f.dylib
|
||||
cp $LIBGLFW_PATH $DOTAPP/Frameworks/libglfw.dylib
|
||||
cp $LIBVOLK_PATH $DOTAPP/Frameworks/libvolk.dylib
|
Loading…
Reference in New Issue
Block a user