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
cfdc43e6
Commit
cfdc43e6
authored
Feb 02, 2017
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create shortcut to run linphone from OUTPUT directory when building on Windows.
parent
6771d22c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
0 deletions
+39
-0
additional_steps.cmake
cmake_builder/additional_steps.cmake
+31
-0
winshortcut.vbs.in
cmake_builder/linphone_package/winshortcut.vbs.in
+6
-0
linphoneqt.cmake
cmake_builder/linphoneqt.cmake
+2
-0
No files found.
cmake_builder/additional_steps.cmake
0 → 100644
View file @
cfdc43e6
############################################################################
# additional_steps.cmake
# Copyright (C) 2017 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.
#
############################################################################
# Create a shortcut to linphone.exe in install prefix
if
(
LINPHONE_BUILDER_TARGET STREQUAL linphoneqt AND WIN32
)
set
(
SHORTCUT_PATH
"
${
CMAKE_INSTALL_PREFIX
}
/linphone.lnk"
)
set
(
SHORTCUT_TARGET_PATH
"
${
CMAKE_INSTALL_PREFIX
}
/bin/linphone.exe"
)
set
(
SHORTCUT_WORKING_DIRECTORY
"
${
CMAKE_INSTALL_PREFIX
}
"
)
configure_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/linphone_package/winshortcut.vbs.in"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/winshortcut.vbs"
@ONLY
)
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
()
cmake_builder/linphone_package/winshortcut.vbs.in
0 → 100644
View file @
cfdc43e6
Set oWS = WScript.CreateObject("WScript.Shell")
sLinkFile = "@SHORTCUT_PATH@"
Set oLink = oWS.CreateShortcut(sLinkFile)
oLink.TargetPath = "@SHORTCUT_TARGET_PATH@"
oLink.WorkingDirectory = "@SHORTCUT_WORKING_DIRECTORY@"
oLink.Save
cmake_builder/linphoneqt.cmake
View file @
cfdc43e6
...
@@ -24,3 +24,5 @@ lcb_external_source_paths("../linphone-desktop")
...
@@ -24,3 +24,5 @@ lcb_external_source_paths("../linphone-desktop")
lcb_dependencies
(
"linphone"
)
lcb_dependencies
(
"linphone"
)
# Add config step for packaging
set
(
LINPHONE_BUILDER_ADDITIONAL_CONFIG_STEPS
"
${
CMAKE_CURRENT_LIST_DIR
}
/additional_steps.cmake"
)
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