mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-30 17:58:37 +08:00
deps/scripting: Add python rpaths to the obs binary on OSX
Closes jp9000/obs-studio#1127
This commit is contained in:
@@ -3,4 +3,4 @@ export PATH=/usr/local/opt/ccache/libexec:$PATH
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -DENABLE_SPARKLE_UPDATER=ON -DCMAKE_OSX_DEPLOYMENT_TARGET=10.10 -DDepsPath=/tmp/obsdeps -DVLCPath=$PWD/../../vlc-master -DBUILD_BROWSER=ON -DCEF_ROOT_DIR=$PWD/../../cef_binary_${CEF_BUILD_VERSION}_macosx64 ..
|
||||
cmake -DPYTHON_LIBRARY=/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/lib/libpython3.6.dylib -DPYTHON_INCLUDE_DIR=/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -DENABLE_SPARKLE_UPDATER=ON -DCMAKE_OSX_DEPLOYMENT_TARGET=10.10 -DDepsPath=/tmp/obsdeps -DVLCPath=$PWD/../../vlc-master -DBUILD_BROWSER=ON -DCEF_ROOT_DIR=$PWD/../../cef_binary_${CEF_BUILD_VERSION}_macosx64 ..
|
||||
|
||||
@@ -17,7 +17,7 @@ sudo installer -pkg ./Packages.pkg -target /
|
||||
brew update
|
||||
|
||||
#Base OBS Deps and ccache
|
||||
brew install qt5 jack speexdsp ccache
|
||||
brew install qt5 jack speexdsp ccache python3
|
||||
|
||||
export PATH=/usr/local/opt/ccache/libexec:$PATH
|
||||
ccache -s || echo "CCache is not available."
|
||||
|
||||
@@ -270,6 +270,17 @@ target_link_libraries(obs
|
||||
${LIBCURL_LIBRARIES}
|
||||
${obs_PLATFORM_LIBRARIES})
|
||||
|
||||
if (APPLE)
|
||||
set_property(
|
||||
TARGET obs
|
||||
APPEND
|
||||
PROPERTY INSTALL_RPATH
|
||||
"/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/lib/"
|
||||
"/Library/Frameworks/Python.framework/Versions/3.6/lib/"
|
||||
"/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/"
|
||||
)
|
||||
endif()
|
||||
|
||||
define_graphic_modules(obs)
|
||||
|
||||
install_obs_core(obs)
|
||||
|
||||
Reference in New Issue
Block a user