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
a62c588a
Commit
a62c588a
authored
Apr 16, 2015
by
François Grisez
Browse files
Enable to install msopenh264 while installing Linphone on Windows
parent
310e2cf1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
configs/desktop/CMakeLists.txt
configs/desktop/CMakeLists.txt
+17
-0
configs/desktop/openh264-install.nsi
configs/desktop/openh264-install.nsi
+6
-0
configs/desktop/openh264-uninstall.nsi
configs/desktop/openh264-uninstall.nsi
+1
-0
No files found.
configs/desktop/CMakeLists.txt
View file @
a62c588a
...
...
@@ -84,6 +84,12 @@ install(DIRECTORY "${LINPHONE_OUTPUT_DIR}/"
PATTERN
"bin/pango*.exe"
EXCLUDE
PATTERN
"bin/pkg-config.exe"
EXCLUDE
PATTERN
"bin/xmlwf.exe"
EXCLUDE
PATTERN
"bin/openh264.dll"
EXCLUDE
)
install
(
FILES
"
${
LINPHONE_OUTPUT_DIR
}
/lib/mediastreamer/plugins/libmsopenh264.dll"
DESTINATION
"./lib/mediastreamer/plugins"
COMPONENT
"msopenh264"
)
install
(
DIRECTORY
"
${
LINPHONE_OUTPUT_DIR
}
/lib/mediastreamer/plugins/"
...
...
@@ -113,6 +119,10 @@ set(CPACK_PACKAGE_VERSION_PATCH ${LINPHONE_MICRO_VERSION})
set
(
CPACK_PACKAGE_EXECUTABLES
"linphone;Linphone"
)
set
(
CPACK_PACKAGE_INSTALL_DIRECTORY
"Linphone"
)
set
(
CPACK_RESOURCE_FILE_LICENSE
"
${
LINPHONE_SOURCE_DIR
}
/COPYING"
)
set
(
CPACK_COMPONENT_MSOPENH264_DISPLAY_NAME
"OpenH264 codec"
)
set
(
CPACK_COMPONENT_MSOPENH264_DESCRIPTION
"Download the H264 codec implementation provided by Cisco Inc."
)
set
(
CPACK_COMPONENT_MSOPENH264_DISABLED True
)
if
(
WIN32
)
set
(
CPACK_GENERATOR
"NSIS"
)
set
(
CPACK_PACKAGE_ICON
"
${
CMAKE_CURRENT_SOURCE_DIR
}
\\\\
linphone-banner.bmp"
)
...
...
@@ -123,6 +133,13 @@ if(WIN32)
set
(
CPACK_NSIS_PACKAGE_NAME
"Linphone
${
LINPHONE_MAJOR_VERSION
}
.
${
LINPHONE_MINOR_VERSION
}
.
${
LINPHONE_MICRO_VERSION
}
"
)
set
(
CPACK_NSIS_URL_INFO_ABOUT
"http://www.linphone.org/"
)
set
(
CPACK_NSIS_MUI_FINISHPAGE_RUN
"linphone"
)
set
(
CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL
"ON"
)
# Add NSI instructions to download the openh264 codec from Cisco's servers whether msopenh264 has been installed
file
(
READ
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/openh264-install.nsi"
CPACK_NSIS_EXTRA_INSTALL_COMMANDS
)
# Add NSI instructions to delete the openh264 codecs while uninstalling Linphone
file
(
READ
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/openh264-uninstall.nsi"
CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS
)
# Sign the installer
set
(
TIMESTAMP_URL
"http://timestamp.verisign.com/scripts/timestamp.dll"
)
...
...
configs/desktop/openh264-install.nsi
0 → 100644
View file @
a62c588a
SectionGetFlags ${msopenh264} $0
IntOp $0 $0 & ${SF_SELECTED}
IntCmpU $0 0 done done download
download:
NSISdl::download http://ciscobinary.openh264.org/openh264-1.4.0-win32msvc.dll.bz2 $INSTDIR\lib\mediastreamer\plugins\openh264.dll
done:
\ No newline at end of file
configs/desktop/openh264-uninstall.nsi
0 → 100644
View file @
a62c588a
Delete $INSTDIR\lib\mediastreamer\plugins\openh264.dll
\ No newline at end of file
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