mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
CI: Add rpath info to _obspython
This commit is contained in:
parent
4e6bbb984f
commit
285d9bd6f1
|
@ -197,6 +197,8 @@ for path, external, copy_as in inspected:
|
|||
filename = path
|
||||
rpath = ""
|
||||
if external:
|
||||
if copy_as == "Python":
|
||||
continue
|
||||
id_ = "-id '@rpath/%s'"%copy_as
|
||||
filename = prefix + "bin/" +copy_as
|
||||
rpath = "-add_rpath @loader_path/ -add_rpath @executable_path/"
|
||||
|
|
11
deps/obs-scripting/obspython/CMakeLists.txt
vendored
11
deps/obs-scripting/obspython/CMakeLists.txt
vendored
|
@ -45,6 +45,17 @@ function(install_plugin_bin_swig target additional_target)
|
|||
set_target_properties(${additional_target} PROPERTIES
|
||||
PREFIX "")
|
||||
|
||||
if (APPLE)
|
||||
set_property(
|
||||
TARGET ${additional_target}
|
||||
APPEND
|
||||
PROPERTY INSTALL_RPATH
|
||||
"/usr/local/Cellar/python3/3.6.4_2/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()
|
||||
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/obspython.py"
|
||||
DESTINATION "${OBS_SCRIPT_PLUGIN_DESTINATION}")
|
||||
install(TARGETS "${additional_target}"
|
||||
|
|
Loading…
Reference in a new issue