Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
linphone-cmake-builder
Commits
41d306b5
Commit
41d306b5
authored
Mar 10, 2016
by
François Grisez
Browse files
Makes the code changing the id of libopenh264 more resilient to SO version upgrading
parent
b416d5a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
builders/openh264/postinstall.cmake
View file @
41d306b5
...
...
@@ -28,6 +28,16 @@ if(EXISTS ${INSTALL_PREFIX}/bin/openh264.dll AND NOT EXISTS ${INSTALL_PREFIX}/li
execute_process
(
COMMAND
"
${
PYTHON_EXECUTABLE
}
"
"
${
SOURCE_DIR
}
/cmake/importlib.py"
"
${
INSTALL_PREFIX
}
/bin/openh264.dll"
"
${
INSTALL_PREFIX
}
/lib/openh264.lib"
)
endif
()
if
(
EXISTS
${
INSTALL_PREFIX
}
/lib/libopenh264.
0
.dylib
)
execute_process
(
COMMAND install_name_tool -id @rpath/libopenh264.
0
.dylib
${
INSTALL_PREFIX
}
/lib/libopenh264.
0
.dylib
)
if
(
EXISTS
${
INSTALL_PREFIX
}
/lib/libopenh264.
1
.dylib
)
execute_process
(
COMMAND install_name_tool -id @rpath/libopenh264.
1
.dylib
${
INSTALL_PREFIX
}
/lib/libopenh264.
1
.dylib
)
endif
()
file
(
GLOB OPENH264_LIBS
"
${
INSTALL_PREFIX
}
/lib/libopenh264.*.dylib"
)
foreach
(
OPENH264_LIB IN LISTS
${
OPENH264_LIBS
}
)
string
(
REGEX REPLACE
".+/(libopenh264\..\.dylib)$"
"@rpath/\1"
OPENH264_LIB_ID
${
OPENH264_LIB
}
)
execute_process
(
COMMAND install_name_tool -id
${
OPENH264_LIB_ID
}
${
OPENH264_LIB
}
)
endforeach
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment