2018-03-17 17:52:45 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
|
2013-07-02 00:50:32 +01:00
|
|
|
project(kdeconnect)
|
2013-08-21 17:25:44 +01:00
|
|
|
|
2016-07-22 11:46:45 +01:00
|
|
|
set(KDECONNECT_VERSION_MAJOR 1)
|
2018-04-08 15:15:46 +01:00
|
|
|
set(KDECONNECT_VERSION_MINOR 3)
|
2018-09-06 17:20:35 +01:00
|
|
|
set(KDECONNECT_VERSION_PATCH 2)
|
2018-09-06 17:23:11 +01:00
|
|
|
|
2015-02-05 07:52:07 +00:00
|
|
|
set(KDECONNECT_VERSION "${KDECONNECT_VERSION_MAJOR}.${KDECONNECT_VERSION_MINOR}.${KDECONNECT_VERSION_PATCH}")
|
|
|
|
|
Build kdeconnect on sailfish and port some simple plugins
Summary:
Below is a lost of the commits, but, in summary
Port the build system for Sailfish, which means selectively building only the bits we need/can, and only against the KF5 libs that are available.
Allow to build on Qt 5.6
Switch from knotification to nemo notification (not complete!)
Add a very simple example sailfish app.
Note, there is still much missing functionality. Notifications dont work, pairing sort of works but not really, but when it is paired you can send a ping to the desktop client
Dont build kio for Sailfish
Port core build system
Port daemon buld system
Require CoreAddons on Sailfish
Port plugins build for sailfish and include the ping plugin for now
Final build changes for sailfish.
Disable tests and other not needed parts
Add includes for QCA
Fix build errors on sailfish
Get core/ to build on sailfish
Get interfaces/ to build on sailfish
Build daemon on sailfish
On sailfish, dont install the kcm file
Start port plugin to sailfish
Fixup installed files
Add sfos app
Hack declarative plugin to give a public interface
Build sfos app
Compile declarativeplugin into the sfos app for now
Redefine qAsConst for qt 5.6
Packaging fixes
Use official icon
Package .desktop
Reviewers: #kde_connect, apol, nicolasfella, albertvaka
Reviewed By: #kde_connect, apol, nicolasfella, albertvaka
Subscribers: kdeconnect, andyholmes, albertvaka, kossebau, mtijink, vonreth, apol, #kde_connect, nicolasfella
Tags: #kde_connect
Differential Revision: https://phabricator.kde.org/D10703
2018-08-02 20:10:59 +01:00
|
|
|
find_package(PkgConfig)
|
|
|
|
|
|
|
|
if (SAILFISHOS)
|
|
|
|
set(KF5_MIN_VERSION "5.31.0")
|
|
|
|
set(QT_MIN_VERSION "5.6.0")
|
|
|
|
set(KF5_REQUIRED_COMPONENTS I18n DBusAddons CoreAddons IconThemes Config)
|
|
|
|
set(KF5_OPTIONAL_COMPONENTS)
|
|
|
|
set(QCA_MIN_VERSION 2.0.0)
|
|
|
|
pkg_search_module(SFOS REQUIRED sailfishapp)
|
|
|
|
pkg_check_modules(QCA2 qca2-qt5>=${QCA_MIN_VERSION} REQUIRED)
|
|
|
|
add_definitions(-DSAILFISHOS)
|
|
|
|
include_directories(${QCA2_INCLUDEDIR})
|
|
|
|
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
|
|
|
|
else()
|
|
|
|
set(KF5_MIN_VERSION "5.42.0")
|
|
|
|
set(QT_MIN_VERSION "5.7.0")
|
|
|
|
set(KF5_REQUIRED_COMPONENTS I18n ConfigWidgets DBusAddons IconThemes Notifications KIO KCMUtils)
|
2018-08-06 09:45:53 +01:00
|
|
|
set(KF5_OPTIONAL_COMPONENTS DocTools)
|
2018-08-06 09:43:38 +01:00
|
|
|
if(UNIX)
|
|
|
|
set(KF5_OPTIONAL_COMPONENTS ${KF5_OPTIONAL_COMPONENTS} PulseAudioQt)
|
|
|
|
endif()
|
Build kdeconnect on sailfish and port some simple plugins
Summary:
Below is a lost of the commits, but, in summary
Port the build system for Sailfish, which means selectively building only the bits we need/can, and only against the KF5 libs that are available.
Allow to build on Qt 5.6
Switch from knotification to nemo notification (not complete!)
Add a very simple example sailfish app.
Note, there is still much missing functionality. Notifications dont work, pairing sort of works but not really, but when it is paired you can send a ping to the desktop client
Dont build kio for Sailfish
Port core build system
Port daemon buld system
Require CoreAddons on Sailfish
Port plugins build for sailfish and include the ping plugin for now
Final build changes for sailfish.
Disable tests and other not needed parts
Add includes for QCA
Fix build errors on sailfish
Get core/ to build on sailfish
Get interfaces/ to build on sailfish
Build daemon on sailfish
On sailfish, dont install the kcm file
Start port plugin to sailfish
Fixup installed files
Add sfos app
Hack declarative plugin to give a public interface
Build sfos app
Compile declarativeplugin into the sfos app for now
Redefine qAsConst for qt 5.6
Packaging fixes
Use official icon
Package .desktop
Reviewers: #kde_connect, apol, nicolasfella, albertvaka
Reviewed By: #kde_connect, apol, nicolasfella, albertvaka
Subscribers: kdeconnect, andyholmes, albertvaka, kossebau, mtijink, vonreth, apol, #kde_connect, nicolasfella
Tags: #kde_connect
Differential Revision: https://phabricator.kde.org/D10703
2018-08-02 20:10:59 +01:00
|
|
|
set(QCA_MIN_VERSION "2.1.0")
|
|
|
|
find_package(Qca-qt5 ${QCA_MIN_VERSION} REQUIRED)
|
|
|
|
add_definitions(-DQT_NO_URL_CAST_FROM_STRING -DQT_NO_KEYWORDS)
|
|
|
|
endif()
|
2013-06-06 04:57:06 +01:00
|
|
|
|
2018-03-17 17:52:45 +00:00
|
|
|
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
|
2018-01-22 09:34:38 +00:00
|
|
|
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_SOURCE_DIR}/cmake)
|
2014-06-14 15:34:00 +01:00
|
|
|
|
2018-05-26 22:06:56 +01:00
|
|
|
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Quick Network)
|
Build kdeconnect on sailfish and port some simple plugins
Summary:
Below is a lost of the commits, but, in summary
Port the build system for Sailfish, which means selectively building only the bits we need/can, and only against the KF5 libs that are available.
Allow to build on Qt 5.6
Switch from knotification to nemo notification (not complete!)
Add a very simple example sailfish app.
Note, there is still much missing functionality. Notifications dont work, pairing sort of works but not really, but when it is paired you can send a ping to the desktop client
Dont build kio for Sailfish
Port core build system
Port daemon buld system
Require CoreAddons on Sailfish
Port plugins build for sailfish and include the ping plugin for now
Final build changes for sailfish.
Disable tests and other not needed parts
Add includes for QCA
Fix build errors on sailfish
Get core/ to build on sailfish
Get interfaces/ to build on sailfish
Build daemon on sailfish
On sailfish, dont install the kcm file
Start port plugin to sailfish
Fixup installed files
Add sfos app
Hack declarative plugin to give a public interface
Build sfos app
Compile declarativeplugin into the sfos app for now
Redefine qAsConst for qt 5.6
Packaging fixes
Use official icon
Package .desktop
Reviewers: #kde_connect, apol, nicolasfella, albertvaka
Reviewed By: #kde_connect, apol, nicolasfella, albertvaka
Subscribers: kdeconnect, andyholmes, albertvaka, kossebau, mtijink, vonreth, apol, #kde_connect, nicolasfella
Tags: #kde_connect
Differential Revision: https://phabricator.kde.org/D10703
2018-08-02 20:10:59 +01:00
|
|
|
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS ${KF5_REQUIRED_COMPONENTS})
|
|
|
|
if (KF5_OPTIONAL_COMPONENTS)
|
|
|
|
find_package(KF5 ${KF5_MIN_VERSION} COMPONENTS ${KF5_OPTIONAL_COMPONENTS})
|
|
|
|
endif()
|
2015-03-01 20:17:46 +00:00
|
|
|
|
2018-03-29 00:46:12 +01:00
|
|
|
find_package(Phonon4Qt5 4.9.0 NO_MODULE)
|
|
|
|
set_package_properties(Phonon4Qt5 PROPERTIES
|
|
|
|
DESCRIPTION "Qt-based audio library"
|
|
|
|
TYPE OPTIONAL
|
|
|
|
PURPOSE "Required for Find My Device plugin"
|
|
|
|
)
|
2013-06-06 04:57:06 +01:00
|
|
|
|
2015-03-10 04:59:36 +00:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR})
|
|
|
|
|
2015-02-05 07:52:07 +00:00
|
|
|
configure_file(kdeconnect-version.h.in ${CMAKE_CURRENT_BINARY_DIR}/kdeconnect-version.h)
|
|
|
|
|
2014-06-16 19:02:07 +01:00
|
|
|
include(KDEInstallDirs)
|
2016-01-28 14:01:29 +00:00
|
|
|
include(KDECompilerSettings NO_POLICY_SCOPE)
|
2014-06-16 19:02:07 +01:00
|
|
|
include(KDECMakeSettings)
|
|
|
|
include(ECMAddTests)
|
|
|
|
include(ECMSetupVersion)
|
|
|
|
include(ECMInstallIcons)
|
|
|
|
include(FeatureSummary)
|
2013-07-04 18:17:22 +01:00
|
|
|
|
2015-03-19 15:36:53 +00:00
|
|
|
include(KDEConnectMacros.cmake)
|
|
|
|
|
2014-06-14 13:31:31 +01:00
|
|
|
include(GenerateExportHeader)
|
2014-09-12 23:49:56 +01:00
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
2013-06-06 04:57:06 +01:00
|
|
|
|
2014-06-14 14:22:40 +01:00
|
|
|
add_subdirectory(core)
|
Build kdeconnect on sailfish and port some simple plugins
Summary:
Below is a lost of the commits, but, in summary
Port the build system for Sailfish, which means selectively building only the bits we need/can, and only against the KF5 libs that are available.
Allow to build on Qt 5.6
Switch from knotification to nemo notification (not complete!)
Add a very simple example sailfish app.
Note, there is still much missing functionality. Notifications dont work, pairing sort of works but not really, but when it is paired you can send a ping to the desktop client
Dont build kio for Sailfish
Port core build system
Port daemon buld system
Require CoreAddons on Sailfish
Port plugins build for sailfish and include the ping plugin for now
Final build changes for sailfish.
Disable tests and other not needed parts
Add includes for QCA
Fix build errors on sailfish
Get core/ to build on sailfish
Get interfaces/ to build on sailfish
Build daemon on sailfish
On sailfish, dont install the kcm file
Start port plugin to sailfish
Fixup installed files
Add sfos app
Hack declarative plugin to give a public interface
Build sfos app
Compile declarativeplugin into the sfos app for now
Redefine qAsConst for qt 5.6
Packaging fixes
Use official icon
Package .desktop
Reviewers: #kde_connect, apol, nicolasfella, albertvaka
Reviewed By: #kde_connect, apol, nicolasfella, albertvaka
Subscribers: kdeconnect, andyholmes, albertvaka, kossebau, mtijink, vonreth, apol, #kde_connect, nicolasfella
Tags: #kde_connect
Differential Revision: https://phabricator.kde.org/D10703
2018-08-02 20:10:59 +01:00
|
|
|
if(NOT SAILFISHOS)
|
|
|
|
add_subdirectory(kcm)
|
|
|
|
add_subdirectory(kcmplugin)
|
|
|
|
add_subdirectory(daemon)
|
|
|
|
endif()
|
|
|
|
|
2018-08-02 21:53:23 +01:00
|
|
|
if(NOT WIN32 AND NOT SAILFISHOS)
|
|
|
|
add_subdirectory(kio)
|
|
|
|
add_subdirectory(plasmoid)
|
2016-06-20 01:17:51 +01:00
|
|
|
endif()
|
Build kdeconnect on sailfish and port some simple plugins
Summary:
Below is a lost of the commits, but, in summary
Port the build system for Sailfish, which means selectively building only the bits we need/can, and only against the KF5 libs that are available.
Allow to build on Qt 5.6
Switch from knotification to nemo notification (not complete!)
Add a very simple example sailfish app.
Note, there is still much missing functionality. Notifications dont work, pairing sort of works but not really, but when it is paired you can send a ping to the desktop client
Dont build kio for Sailfish
Port core build system
Port daemon buld system
Require CoreAddons on Sailfish
Port plugins build for sailfish and include the ping plugin for now
Final build changes for sailfish.
Disable tests and other not needed parts
Add includes for QCA
Fix build errors on sailfish
Get core/ to build on sailfish
Get interfaces/ to build on sailfish
Build daemon on sailfish
On sailfish, dont install the kcm file
Start port plugin to sailfish
Fixup installed files
Add sfos app
Hack declarative plugin to give a public interface
Build sfos app
Compile declarativeplugin into the sfos app for now
Redefine qAsConst for qt 5.6
Packaging fixes
Use official icon
Package .desktop
Reviewers: #kde_connect, apol, nicolasfella, albertvaka
Reviewed By: #kde_connect, apol, nicolasfella, albertvaka
Subscribers: kdeconnect, andyholmes, albertvaka, kossebau, mtijink, vonreth, apol, #kde_connect, nicolasfella
Tags: #kde_connect
Differential Revision: https://phabricator.kde.org/D10703
2018-08-02 20:10:59 +01:00
|
|
|
|
2014-02-19 20:10:41 +00:00
|
|
|
add_subdirectory(icon)
|
2014-06-14 14:22:40 +01:00
|
|
|
add_subdirectory(interfaces)
|
2018-11-02 01:58:02 +00:00
|
|
|
add_subdirectory(data)
|
2014-06-14 14:22:40 +01:00
|
|
|
|
2015-06-13 00:30:38 +01:00
|
|
|
option(EXPERIMENTALAPP_ENABLED OFF)
|
|
|
|
if(EXPERIMENTALAPP_ENABLED)
|
|
|
|
add_subdirectory(app)
|
|
|
|
endif()
|
2014-06-14 15:34:00 +01:00
|
|
|
add_subdirectory(plugins)
|
2014-04-01 02:12:31 +01:00
|
|
|
add_subdirectory(cli)
|
2018-08-02 21:53:23 +01:00
|
|
|
add_subdirectory(declarativeplugin)
|
Build kdeconnect on sailfish and port some simple plugins
Summary:
Below is a lost of the commits, but, in summary
Port the build system for Sailfish, which means selectively building only the bits we need/can, and only against the KF5 libs that are available.
Allow to build on Qt 5.6
Switch from knotification to nemo notification (not complete!)
Add a very simple example sailfish app.
Note, there is still much missing functionality. Notifications dont work, pairing sort of works but not really, but when it is paired you can send a ping to the desktop client
Dont build kio for Sailfish
Port core build system
Port daemon buld system
Require CoreAddons on Sailfish
Port plugins build for sailfish and include the ping plugin for now
Final build changes for sailfish.
Disable tests and other not needed parts
Add includes for QCA
Fix build errors on sailfish
Get core/ to build on sailfish
Get interfaces/ to build on sailfish
Build daemon on sailfish
On sailfish, dont install the kcm file
Start port plugin to sailfish
Fixup installed files
Add sfos app
Hack declarative plugin to give a public interface
Build sfos app
Compile declarativeplugin into the sfos app for now
Redefine qAsConst for qt 5.6
Packaging fixes
Use official icon
Package .desktop
Reviewers: #kde_connect, apol, nicolasfella, albertvaka
Reviewed By: #kde_connect, apol, nicolasfella, albertvaka
Subscribers: kdeconnect, andyholmes, albertvaka, kossebau, mtijink, vonreth, apol, #kde_connect, nicolasfella
Tags: #kde_connect
Differential Revision: https://phabricator.kde.org/D10703
2018-08-02 20:10:59 +01:00
|
|
|
|
|
|
|
if (NOT SAILFISHOS)
|
|
|
|
add_subdirectory(indicator)
|
|
|
|
add_subdirectory(urlhandler)
|
|
|
|
add_subdirectory(nautilus-extension)
|
|
|
|
else()
|
|
|
|
add_subdirectory(sfos)
|
|
|
|
endif()
|
2018-03-25 19:40:59 +01:00
|
|
|
|
|
|
|
option(SMSAPP_ENABLED OFF)
|
|
|
|
if(SMSAPP_ENABLED)
|
|
|
|
find_package(KF5People REQUIRED)
|
2018-10-08 15:55:44 +01:00
|
|
|
find_package(KF5PeopleVCard)
|
|
|
|
set_package_properties(KF5PeopleVCard PROPERTIES
|
|
|
|
PURPOSE "Read vcards from the file system"
|
|
|
|
URL "https://phabricator.kde.org/source/kpeoplevcard/"
|
|
|
|
TYPE RUNTIME
|
|
|
|
)
|
|
|
|
|
2018-03-25 19:40:59 +01:00
|
|
|
add_subdirectory(smsapp)
|
|
|
|
endif()
|
Build kdeconnect on sailfish and port some simple plugins
Summary:
Below is a lost of the commits, but, in summary
Port the build system for Sailfish, which means selectively building only the bits we need/can, and only against the KF5 libs that are available.
Allow to build on Qt 5.6
Switch from knotification to nemo notification (not complete!)
Add a very simple example sailfish app.
Note, there is still much missing functionality. Notifications dont work, pairing sort of works but not really, but when it is paired you can send a ping to the desktop client
Dont build kio for Sailfish
Port core build system
Port daemon buld system
Require CoreAddons on Sailfish
Port plugins build for sailfish and include the ping plugin for now
Final build changes for sailfish.
Disable tests and other not needed parts
Add includes for QCA
Fix build errors on sailfish
Get core/ to build on sailfish
Get interfaces/ to build on sailfish
Build daemon on sailfish
On sailfish, dont install the kcm file
Start port plugin to sailfish
Fixup installed files
Add sfos app
Hack declarative plugin to give a public interface
Build sfos app
Compile declarativeplugin into the sfos app for now
Redefine qAsConst for qt 5.6
Packaging fixes
Use official icon
Package .desktop
Reviewers: #kde_connect, apol, nicolasfella, albertvaka
Reviewed By: #kde_connect, apol, nicolasfella, albertvaka
Subscribers: kdeconnect, andyholmes, albertvaka, kossebau, mtijink, vonreth, apol, #kde_connect, nicolasfella
Tags: #kde_connect
Differential Revision: https://phabricator.kde.org/D10703
2018-08-02 20:10:59 +01:00
|
|
|
|
2015-10-19 02:25:17 +01:00
|
|
|
if(KF5DocTools_FOUND)
|
|
|
|
add_subdirectory(doc)
|
|
|
|
endif()
|
2014-11-30 01:52:43 +00:00
|
|
|
|
Build kdeconnect on sailfish and port some simple plugins
Summary:
Below is a lost of the commits, but, in summary
Port the build system for Sailfish, which means selectively building only the bits we need/can, and only against the KF5 libs that are available.
Allow to build on Qt 5.6
Switch from knotification to nemo notification (not complete!)
Add a very simple example sailfish app.
Note, there is still much missing functionality. Notifications dont work, pairing sort of works but not really, but when it is paired you can send a ping to the desktop client
Dont build kio for Sailfish
Port core build system
Port daemon buld system
Require CoreAddons on Sailfish
Port plugins build for sailfish and include the ping plugin for now
Final build changes for sailfish.
Disable tests and other not needed parts
Add includes for QCA
Fix build errors on sailfish
Get core/ to build on sailfish
Get interfaces/ to build on sailfish
Build daemon on sailfish
On sailfish, dont install the kcm file
Start port plugin to sailfish
Fixup installed files
Add sfos app
Hack declarative plugin to give a public interface
Build sfos app
Compile declarativeplugin into the sfos app for now
Redefine qAsConst for qt 5.6
Packaging fixes
Use official icon
Package .desktop
Reviewers: #kde_connect, apol, nicolasfella, albertvaka
Reviewed By: #kde_connect, apol, nicolasfella, albertvaka
Subscribers: kdeconnect, andyholmes, albertvaka, kossebau, mtijink, vonreth, apol, #kde_connect, nicolasfella
Tags: #kde_connect
Differential Revision: https://phabricator.kde.org/D10703
2018-08-02 20:10:59 +01:00
|
|
|
if(BUILD_TESTING AND NOT SAILFISHOS)
|
2015-09-07 16:42:37 +01:00
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|
2015-09-14 12:51:50 +01:00
|
|
|
|
|
|
|
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
|