Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
2b46a4c5
Commit
2b46a4c5
authored
Feb 14, 2017
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle packaging for Windows.
parent
a1184fe1
Changes
35
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
1509 additions
and
1 deletion
+1509
-1
additional_steps.cmake
cmake_builder/additional_steps.cmake
+27
-0
CMakeLists.txt
cmake_builder/linphone_package/CMakeLists.txt
+339
-0
NSIS.template.in
cmake_builder/linphone_package/NSIS.template.in
+982
-0
README.openh264.txt.in
cmake_builder/linphone_package/README.openh264.txt.in
+20
-0
WindowsPackaging.cmake.in
cmake_builder/linphone_package/WindowsPackaging.cmake.in
+34
-0
linphone-banner.bmp
cmake_builder/linphone_package/linphone-banner.bmp
+0
-0
openh264-install.nsi.in
cmake_builder/linphone_package/openh264-install.nsi.in
+7
-0
openh264-uninstall.nsi
cmake_builder/linphone_package/openh264-uninstall.nsi
+1
-0
antlr3c.list.in
cmake_builder/linphone_package/sdk_content/antlr3c.list.in
+1
-0
bctoolbox.list.in
cmake_builder/linphone_package/sdk_content/bctoolbox.list.in
+5
-0
bcunit.list.in
cmake_builder/linphone_package/sdk_content/bcunit.list.in
+1
-0
bellesip.list.in
cmake_builder/linphone_package/sdk_content/bellesip.list.in
+5
-0
bv16.list.in
cmake_builder/linphone_package/sdk_content/bv16.list.in
+1
-0
bzrtp.list.in
cmake_builder/linphone_package/sdk_content/bzrtp.list.in
+2
-0
ffmpeg.list.in
cmake_builder/linphone_package/sdk_content/ffmpeg.list.in
+4
-0
gsm.list.in
cmake_builder/linphone_package/sdk_content/gsm.list.in
+1
-0
linphone.list.in
cmake_builder/linphone_package/sdk_content/linphone.list.in
+9
-0
mbedtls.list.in
cmake_builder/linphone_package/sdk_content/mbedtls.list.in
+3
-0
ms2.list.in
cmake_builder/linphone_package/sdk_content/ms2.list.in
+8
-0
ms2plugins.list.in
...e_builder/linphone_package/sdk_content/ms2plugins.list.in
+1
-0
openh264.list.in
cmake_builder/linphone_package/sdk_content/openh264.list.in
+1
-0
opus.list.in
cmake_builder/linphone_package/sdk_content/opus.list.in
+1
-0
ortp.list.in
cmake_builder/linphone_package/sdk_content/ortp.list.in
+6
-0
polarssl.list.in
cmake_builder/linphone_package/sdk_content/polarssl.list.in
+1
-0
speex.list.in
cmake_builder/linphone_package/sdk_content/speex.list.in
+1
-0
sqlite3.list.in
cmake_builder/linphone_package/sdk_content/sqlite3.list.in
+1
-0
srtp.list.in
cmake_builder/linphone_package/sdk_content/srtp.list.in
+1
-0
vcard.list.in
cmake_builder/linphone_package/sdk_content/vcard.list.in
+6
-0
xml2.list.in
cmake_builder/linphone_package/sdk_content/xml2.list.in
+1
-0
zlib.list.in
cmake_builder/linphone_package/sdk_content/zlib.list.in
+1
-0
signtool.py
cmake_builder/linphone_package/signtool.py
+28
-0
uninstall.nsi
cmake_builder/linphone_package/uninstall.nsi
+7
-0
CMakeLists.txt
linphone-desktop/CMakeLists.txt
+1
-1
linphone.ico
linphone-desktop/linphone.ico
+0
-0
linphone.rc
linphone-desktop/linphone.rc
+2
-0
No files found.
cmake_builder/additional_steps.cmake
View file @
2b46a4c5
...
...
@@ -29,3 +29,30 @@ if(LINPHONE_BUILDER_TARGET STREQUAL linphoneqt AND WIN32)
add_custom_command
(
OUTPUT
"
${
SHORTCUT_PATH
}
"
COMMAND
"cscript"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/winshortcut.vbs"
)
add_custom_target
(
linphoneqt_winshortcut ALL DEPENDS
"
${
SHORTCUT_PATH
}
"
TARGET_linphone_builder
)
endif
()
# Packaging
if
(
ENABLE_PACKAGING
)
get_cmake_property
(
_varnames VARIABLES
)
set
(
ENABLE_VARIABLES
)
foreach
(
_varname
${
_varnames
}
)
if
(
_varname MATCHES
"^ENABLE_.*"
)
list
(
APPEND ENABLE_VARIABLES -D
${
_varname
}
=
${${
_varname
}}
)
endif
()
endforeach
()
if
(
LINPHONE_BUILDER_TARGET STREQUAL linphoneqt
)
# Linphone and linphone SDK packages
linphone_builder_apply_flags
()
linphone_builder_set_ep_directories
(
linphone_package
)
linphone_builder_expand_external_project_vars
()
ExternalProject_Add
(
TARGET_linphone_package
DEPENDS TARGET_linphone_builder
TMP_DIR
${
ep_tmp
}
BINARY_DIR
${
ep_build
}
SOURCE_DIR
"
${
CMAKE_CURRENT_LIST_DIR
}
/linphone_package"
DOWNLOAD_COMMAND
""
CMAKE_GENERATOR
${
CMAKE_GENERATOR
}
CMAKE_ARGS
${
LINPHONE_BUILDER_EP_ARGS
}
-DCMAKE_INSTALL_PREFIX=
${
LINPHONE_BUILDER_WORK_DIR
}
/PACKAGE -DTOOLS_DIR=
${
CMAKE_BINARY_DIR
}
/programs -DLINPHONE_OUTPUT_DIR=
${
CMAKE_INSTALL_PREFIX
}
-DLINPHONE_DESKTOP_DIR=
${
CMAKE_CURRENT_LIST_DIR
}
/../linphone-desktop -DLINPHONE_SOURCE_DIR=
${
EP_linphone_SOURCE_DIR
}
${
ENABLE_VARIABLES
}
-DOPENH264_VERSION=
${
OPENH264_VERSION
}
)
endif
()
endif
()
cmake_builder/linphone_package/CMakeLists.txt
0 → 100644
View file @
2b46a4c5
This diff is collapsed.
Click to expand it.
cmake_builder/linphone_package/NSIS.template.in
0 → 100644
View file @
2b46a4c5
This diff is collapsed.
Click to expand it.
cmake_builder/linphone_package/README.openh264.txt.in
0 → 100644
View file @
2b46a4c5
H264 codec
----------
Mediastreamer 2 uses Cisco's OpenH264 library as H264 codec. OpenH264 is an
open source library but H264 is a coding format protected by a patent from
MPEG-LA. That's why that bundle does not embed any OpenH264 library and so you
will not able to use H264 out-the-box.
Fortunatly, Cisco Systems Inc. distribute OpenH264 in its binary form that you
can use in Mediastreamer without paying much royalties to MPEG-LA. However,
that binary file as a restrictive licence. See http://www.openh264.org/BINARY_LICENSE.txt form more information.
Installation procedure
----------------------
The Cisco's provided OpenH264 library is available at this address:
http://ciscobinary.openh264.org/libopenh264-@OPENH264_VERSION@-osx64.dylib.bz2 for MacOS
http://ciscobinary.openh264.org/openh264-@OPENH264_VERSION@-win32msvc.dll.bz2 for Windows (32 bit)
Once you get the library, uncompress it into <SDK_location>/lib/libopenh264.1.dylib
On Windows, the library must be installed into <SDK_location>\bin\openh264.dll
cmake_builder/linphone_package/WindowsPackaging.cmake.in
0 → 100644
View file @
2b46a4c5
############################################################################
# WindowsPackaging.cmake
# Copyright (C) 2014 Belledonne Communications, Grenoble France
#
############################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
############################################################################
if(NOT "${CMAKE_INSTALL_PREFIX}" MATCHES .*/_CPack_Packages/.*)
execute_process(
COMMAND ${CMAKE_CPACK_COMMAND} -G NSIS
RESULT_VARIABLE CPACK_COMMAND_SUCCESS
)
if(@PERFORM_SIGNING@)
execute_process(
COMMAND @SIGNTOOL_COMMAND@ @CMAKE_CURRENT_BINARY_DIR@/@CPACK_PACKAGE_FILE_NAME@.exe
)
endif()
endif()
cmake_builder/linphone_package/linphone-banner.bmp
0 → 100644
View file @
2b46a4c5
25.2 KB
cmake_builder/linphone_package/openh264-install.nsi.in
0 → 100644
View file @
2b46a4c5
SectionGetFlags ${msopenh264} $0
IntOp $0 $0 & ${SF_SELECTED}
IntCmpU $0 0 done done download
download:
NSISdl::download http://ciscobinary.openh264.org/openh264-@OPENH264_VERSION@-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
cmake_builder/linphone_package/openh264-uninstall.nsi
0 → 100644
View file @
2b46a4c5
Delete $INSTDIR\lib\mediastreamer\plugins\openh264.dll
\ No newline at end of file
cmake_builder/linphone_package/sdk_content/antlr3c.list.in
0 → 100644
View file @
2b46a4c5
@LIBDIR@/@LIBPREFIX@antlr3c*.@LIBEXT@
cmake_builder/linphone_package/sdk_content/bctoolbox.list.in
0 → 100644
View file @
2b46a4c5
@LIBDIR@/@LIBPREFIX@bctoolbox*.@LIBEXT@
include/bctoolbox/*
lib/bctoolbox*.lib
lib/pkgconfig/bctoolbox*.pc
share/bctoolbox/cmake/*
cmake_builder/linphone_package/sdk_content/bcunit.list.in
0 → 100644
View file @
2b46a4c5
@LIBDIR@/@LIBPREFIX@bcunit*.@LIBEXT@
\ No newline at end of file
cmake_builder/linphone_package/sdk_content/bellesip.list.in
0 → 100644
View file @
2b46a4c5
@LIBDIR@/@LIBPREFIX@bellesip*.@LIBEXT@
include/belle-sip/*
lib/bellesip*.lib
lib/pkgconfig/belle-sip.pc
share/BelleSIP/cmake/*
cmake_builder/linphone_package/sdk_content/bv16.list.in
0 → 100644
View file @
2b46a4c5
@LIBDIR@/@LIBPREFIX@bv16*.@LIBEXT@
\ No newline at end of file
cmake_builder/linphone_package/sdk_content/bzrtp.list.in
0 → 100644
View file @
2b46a4c5
@LIBDIR@/@LIBPREFIX@bzrtp*.@LIBEXT@
share/bzrtp/cmake
cmake_builder/linphone_package/sdk_content/ffmpeg.list.in
0 → 100644
View file @
2b46a4c5
@LIBDIR@/@LIBPREFIX@avcodec*.@LIBEXT@
@LIBDIR@/@LIBPREFIX@avutil*.@LIBEXT@
@LIBDIR@/@LIBPREFIX@swscale*.@LIBEXT@
@LIBDIR@/@LIBPREFIX@swresample*.@LIBEXT@
cmake_builder/linphone_package/sdk_content/gsm.list.in
0 → 100644
View file @
2b46a4c5
@LIBDIR@/@LIBPREFIX@gsm*.@LIBEXT@
\ No newline at end of file
cmake_builder/linphone_package/sdk_content/linphone.list.in
0 → 100644
View file @
2b46a4c5
@LIBDIR@/@LIBPREFIX@linphone*.@LIBEXT@
@LIBDIR@/@LIBPREFIX@iconv*.@LIBEXT@
@LIBDIR@/@LIBPREFIX@intl*.@LIBEXT@
include/linphone/*
lib/linphone*.lib
share/doc/linphone-*
share/Linphone/cmake/*
share/sounds/linphone/*
share/locale/*/LC_MESSAGES/linphone.mo
cmake_builder/linphone_package/sdk_content/mbedtls.list.in
0 → 100644
View file @
2b46a4c5
@LIBDIR@/@LIBPREFIX@mbedcrypto*.@LIBEXT@
@LIBDIR@/@LIBPREFIX@mbedx509*.@LIBEXT@
@LIBDIR@/@LIBPREFIX@mbedtls*.@LIBEXT@
cmake_builder/linphone_package/sdk_content/ms2.list.in
0 → 100644
View file @
2b46a4c5
@LIBDIR@/@LIBPREFIX@mediastreamer_base*.@LIBEXT@
@LIBDIR@/@LIBPREFIX@mediastreamer_voip*.@LIBEXT@
include/mediastreamer2/*
lib/mediastreamer_base*.lib
lib/mediastreamer_voip*.lib
share/doc/mediastreamer2-*
share/images/nowebcamCIF.jpg
share/Mediastreamer2/cmake/*
cmake_builder/linphone_package/sdk_content/ms2plugins.list.in
0 → 100644
View file @
2b46a4c5
lib/mediastreamer/plugins/*.@PLUGINEXT@
cmake_builder/linphone_package/sdk_content/openh264.list.in
0 → 100644
View file @
2b46a4c5
README.openh264.txt
cmake_builder/linphone_package/sdk_content/opus.list.in
0 → 100644
View file @
2b46a4c5
@LIBDIR@/@LIBPREFIX@opus*.@LIBEXT@
\ No newline at end of file
cmake_builder/linphone_package/sdk_content/ortp.list.in
0 → 100644
View file @
2b46a4c5
@LIBDIR@/@LIBPREFIX@ortp*.@LIBEXT@
include/ortp/*
lib/ortp*.lib
lib/pkgconfig/ortp.pc
share/doc/oRTP-*
share/oRTP/cmake/*
cmake_builder/linphone_package/sdk_content/polarssl.list.in
0 → 100644
View file @
2b46a4c5
@LIBDIR@/@LIBPREFIX@polarssl*.@LIBEXT@
cmake_builder/linphone_package/sdk_content/speex.list.in
0 → 100644
View file @
2b46a4c5
@LIBDIR@/@LIBPREFIX@speex*.@LIBEXT@
\ No newline at end of file
cmake_builder/linphone_package/sdk_content/sqlite3.list.in
0 → 100644
View file @
2b46a4c5
@LIBDIR@/@LIBPREFIX@sqlite3*.@LIBEXT@
cmake_builder/linphone_package/sdk_content/srtp.list.in
0 → 100644
View file @
2b46a4c5
@LIBDIR@/@LIBPREFIX@srtp*.@LIBEXT@
\ No newline at end of file
cmake_builder/linphone_package/sdk_content/vcard.list.in
0 → 100644
View file @
2b46a4c5
@LIBDIR@/@LIBPREFIX@belr*.@LIBEXT@
@LIBDIR@/@LIBPREFIX@belcard*.@LIBEXT@
lib/belr*.lib
lib/belcard*.lib
share/Belr/cmake
share/Belcard/cmake
cmake_builder/linphone_package/sdk_content/xml2.list.in
0 → 100644
View file @
2b46a4c5
@LIBDIR@/@LIBPREFIX@xml2*.@LIBEXT@
\ No newline at end of file
cmake_builder/linphone_package/sdk_content/zlib.list.in
0 → 100644
View file @
2b46a4c5
@LIBDIR@/@LIBPREFIX@zlib*.@LIBEXT@
\ No newline at end of file
cmake_builder/linphone_package/signtool.py
0 → 100644
View file @
2b46a4c5
#!/usr/bin/env python
import
os
,
sys
import
subprocess
class
PassFile
:
def
__init__
(
self
,
file
):
self
.
file
=
file
def
password
(
self
,
v
):
file
=
open
(
self
.
file
,
"r"
);
line
=
file
.
readline
()
.
strip
()
file
.
close
()
return
line
if
__name__
==
'__main__'
:
if
len
(
sys
.
argv
)
<=
2
:
sys
.
exit
(
0
)
for
i
,
arg
in
enumerate
(
sys
.
argv
):
if
arg
==
"/p"
:
if
(
i
+
1
)
==
len
(
sys
.
argv
):
print
"Missing password argument"
sys
.
exit
(
3
)
try
:
sys
.
argv
[
i
+
1
]
=
PassFile
(
sys
.
argv
[
i
+
1
])
.
password
(
None
)
except
IOError
:
print
"Password file not found"
sys
.
exit
(
3
)
actual_args
=
sys
.
argv
[
1
:]
ret
=
subprocess
.
call
(
actual_args
)
sys
.
exit
(
ret
)
cmake_builder/linphone_package/uninstall.nsi
0 → 100644
View file @
2b46a4c5
FindWindow $0 "gdkWindowToplevel" "Linphone"
StrCmp $0 0 notRunningInUninstall
MessageBox MB_OK|MB_ICONEXCLAMATION "Linphone is running. Please close it first and restart the uninstall program." /SD IDOK
Abort
notRunningInUninstall:
linphone-desktop/CMakeLists.txt
View file @
2b46a4c5
...
...
@@ -207,7 +207,7 @@ qt5_add_resources(RESOURCES ${QRC_RESOURCES})
# Build.
# Note: `update_translations` is provided by `languages/CMakeLists.txt`.
if
(
WIN32
)
add_executable
(
${
TARGET_NAME
}
WIN32
${
SOURCES
}
${
HEADERS
}
${
RESOURCES
}
)
add_executable
(
${
TARGET_NAME
}
WIN32
${
SOURCES
}
${
HEADERS
}
${
RESOURCES
}
linphone.rc
)
else
()
add_executable
(
${
TARGET_NAME
}
${
SOURCES
}
${
HEADERS
}
${
RESOURCES
}
)
endif
()
...
...
linphone-desktop/linphone.ico
0 → 100644
View file @
2b46a4c5
361 KB
linphone-desktop/linphone.rc
0 → 100644
View file @
2b46a4c5
A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "linphone.ico"
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