Commit c245b49a authored by François Grisez's avatar François Grisez

Fix cmake syntax

parent a62c588a
......@@ -135,11 +135,14 @@ if(WIN32)
set(CPACK_NSIS_MUI_FINISHPAGE_RUN "linphone")
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL "ON")
file(TO_NATIVE_PATH "${CMAKE_CURRENT_SOURCE_DIR}" DOS_STYLE_SOURCE_DIR)
string(REPLACE "\\" "\\\\" ESCAPED_DOS_STYLE_SOURCE_DIR "${DOS_STYLE_SOURCE_DIR}")
# 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)
set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "!include \\\"${ESCAPED_DOS_STYLE_SOURCE_DIR}\\\\openh264-install.nsi\\\"")
# 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)
set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "!include \\\"${ESCAPED_DOS_STYLE_SOURCE_DIR}\\\\openh264-uninstall.nsi\\\"")
# Sign the installer
set(TIMESTAMP_URL "http://timestamp.verisign.com/scripts/timestamp.dll")
......
......@@ -2,5 +2,6 @@ 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
NSISdl::download http://ciscobinary.openh264.org/openh264-1.4.0-win32msvc.dll.bz2 $INSTDIR\lib\mediastreamer\plugins\openh264.dll.bz2
ExecWait '"$INSTDIR\bin\bunzip2.exe" "$INSTDIR\lib\mediastreamer\plugins\openh264.dll.bz2"'
done:
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment