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
f0a90ded
Commit
f0a90ded
authored
Jan 25, 2017
by
Ghislain MARY
Committed by
Ronan Abhamon
Jan 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(app): integrate build of `linphone-qt` with `prepare.py`
parent
c5df0972
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
97 additions
and
15 deletions
+97
-15
CMakeLists.txt
cmake_builder/CMakeLists.txt
+24
-0
linphoneqt.cmake
cmake_builder/linphoneqt.cmake
+26
-0
CMakeLists.txt
linphone-desktop/CMakeLists.txt
+41
-14
prepare.conf
prepare.conf
+1
-1
prepare.py
prepare.py
+5
-0
No files found.
cmake_builder/CMakeLists.txt
0 → 100644
View file @
f0a90ded
############################################################################
# CMakeLists.txt
# 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.
#
############################################################################
lcb_define_target
(
"linphoneqt"
"linphone"
"ms2plugins"
)
cmake_builder/linphoneqt.cmake
0 → 100644
View file @
f0a90ded
############################################################################
# linphoneqt.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.
#
############################################################################
lcb_external_source_paths
(
"../linphone-desktop"
)
lcb_dependencies
(
"linphone"
)
linphone-desktop/CMakeLists.txt
View file @
f0a90ded
#
==============================================================================
#
###############################################################################
# CMakeLists.txt
# ==============================================================================
# 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.
#
################################################################################
cmake_minimum_required
(
VERSION 3.1
)
project
(
linphone
)
project
(
linphone
qt
)
set
(
LINPHONE_EXEC linphone-qt
)
set
(
CMAKE_CXX_STANDARD 11
)
include
(
GNUInstallDirs
)
# Use automatically moc from Qt5.
set
(
CMAKE_AUTOMOC ON
)
set
(
CMAKE_INCLUDE_CURRENT_DIR ON
)
...
...
@@ -38,18 +58,9 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DQT_QML_DEBUG -DQT_DECLARAT
set
(
QT5_PACKAGES Core Gui Quick Widgets QuickControls2 LinguistTools
)
set
(
LIBS
)
foreach
(
package
${
QT5_PACKAGES
}
)
# `qt5_create_translation` is provided from `LinguistTools` package.
# But the `Qt5::LinguistTools` lib does not exist. Remove it.
if
(
NOT
(
${
package
}
STREQUAL LinguistTools
))
list
(
APPEND LIBS
"Qt5::
${
package
}
"
)
endif
()
endforeach
()
find_package
(
Linphone REQUIRED
)
list
(
APPEND
LIBS
"
${
CMAKE_SOURCE_DIR
}
/../OUTPUT/desktop/lib64/liblinphone++.so"
)
set
(
LIBS
"
${
CMAKE_SOURCE_DIR
}
/../OUTPUT/desktop/lib64/liblinphone++.so"
)
set
(
SOURCES
src/app/App.cpp
...
...
@@ -168,7 +179,7 @@ execute_process(COMMAND ${CMAKE_COMMAND} -E copy
# Build.
# ------------------------------------------------------------------------------
find_package
(
Qt5 COMPONENTS
${
QT5_PACKAGES
}
)
find_package
(
Qt5 COMPONENTS
${
QT5_PACKAGES
}
REQUIRED
)
# Add languages support.
add_subdirectory
(
${
LANGUAGES_DIRECTORY
}
)
...
...
@@ -184,5 +195,21 @@ add_dependencies(${LINPHONE_EXEC} update_translations)
add_dependencies
(
update_translations check_qml
)
target_include_directories
(
${
LINPHONE_EXEC
}
SYSTEM PRIVATE
"
${
LINPHONE_INCLUDE_DIRS
}
"
)
foreach
(
package
${
QT5_PACKAGES
}
)
target_include_directories
(
${
LINPHONE_EXEC
}
SYSTEM PRIVATE
"
${
Qt5
${
package
}
_INCLUDE_DIRS
}
"
)
# `qt5_create_translation` is provided from `LinguistTools` package.
# But the `Qt5::LinguistTools` lib does not exist. Remove it.
if
(
NOT
(
${
package
}
STREQUAL LinguistTools
))
target_link_libraries
(
${
LINPHONE_EXEC
}
${
Qt5
${
package
}
_LIBRARIES
}
)
endif
()
endforeach
()
target_link_libraries
(
${
LINPHONE_EXEC
}
${
LIBS
}
${
LINPHONE_LIBRARIES
}
)
install
(
TARGETS
${
LINPHONE_EXEC
}
RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
LIBRARY DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
prepare.conf
View file @
f0a90ded
-
DENABLE_CXX_WRAPPER
=
YES
-
DENABLE_
JPEG
=
NO
-
DENABLE_
GTK_UI
=
NO
prepare.py
View file @
f0a90ded
...
...
@@ -51,6 +51,11 @@ class DesktopTarget(prepare.Target):
"-DCMAKE_SKIP_INSTALL_RPATH=YES"
,
"-DENABLE_RELATIVE_PREFIX=YES"
]
external_builders_path
=
os
.
path
.
join
(
current_path
,
'cmake_builder'
)
self
.
additional_args
=
[
"-DLINPHONE_BUILDER_EXTERNAL_BUILDERS_PATH="
+
external_builders_path
,
"-DLINPHONE_BUILDER_TARGET=linphoneqt"
]
class
DesktopRaspberryTarget
(
prepare
.
Target
):
...
...
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