...
 
Commits (4)
project(KDEConnectCore)
add_definitions(-DTRANSLATION_DOMAIN=\"kdeconnect-core\")
set(KDECONNECT_PRIVATE_DBUS_ADDR unix:path=/tmp/kdeconnect-dbus)
......
project(kdeconnectd)
add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-kded")
add_executable(kdeconnectd kdeconnectd.cpp)
......
project(KDEConnectInterfaces)
function(geninterface source_h output_h)
set(xml_file ${CMAKE_CURRENT_BINARY_DIR}/${output_h}.xml)
qt5_generate_dbus_interface( ${source_h} ${xml_file})
......@@ -23,11 +21,6 @@ set(libkdeconnect_SRC
# modeltest.cpp
)
set(libkdeconnect_public_HEADERS
KDEConnect/DevicesModel
KDEConnect/NotificationsModel
)
set(libkdeconnect_HEADERS
devicesmodel.h
notificationsmodel.h
......@@ -54,8 +47,6 @@ geninterface(${CMAKE_SOURCE_DIR}/plugins/sms/conversationsdbusinterface.h conver
geninterface(${CMAKE_SOURCE_DIR}/plugins/share/shareplugin.h shareinterface)
geninterface(${CMAKE_SOURCE_DIR}/plugins/remotesystemvolume/remotesystemvolumeplugin.h remotesystemvolumeinterface)
add_library(kdeconnectinterfaces SHARED ${libkdeconnect_SRC})
set_target_properties(kdeconnectinterfaces PROPERTIES
VERSION ${KDECONNECT_VERSION}
......@@ -64,8 +55,6 @@ set_target_properties(kdeconnectinterfaces PROPERTIES
generate_export_header(kdeconnectinterfaces EXPORT_FILE_NAME ${CMAKE_CURRENT_BINARY_DIR}/kdeconnectinterfaces_export.h BASE_NAME KDEConnectInterfaces)
target_include_directories(kdeconnectinterfaces PUBLIC ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR})
target_link_libraries(kdeconnectinterfaces
LINK_PUBLIC
Qt5::Gui
......@@ -76,19 +65,4 @@ LINK_PRIVATE
kdeconnectcore
)
configure_file(KDEConnectConfig.cmake.in ${CMAKE_BINARY_DIR}/interfaces/KDEConnectConfig.cmake @ONLY)
ecm_setup_version( "${KDECONNECT_VERSION_MAJOR}.${KDECONNECT_VERSION_MINOR}.${KDECONNECT_VERSION_PATCH}" VARIABLE_PREFIX KDECONNECTINTERFACES
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kdeconnectinterfaces_version.h"
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KDEConnectConfigVersion.cmake"
SOVERSION ${KDECONNECT_VERSION_MAJOR})
install(TARGETS kdeconnectinterfaces EXPORT kdeconnectLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
## Don't install header files until API/ABI policy is defined
#
# install(FILES ${libkdeconnect_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/kdeconnect COMPONENT Devel)
# install(FILES ${libkdeconnect_public_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/KDEConnect COMPONENT Devel)
# install(FILES ${CMAKE_BINARY_DIR}/interfaces/KDEConnectConfig.cmake
# ${CMAKE_BINARY_DIR}/interfaces/KDEConnectConfigVersion.cmake
# DESTINATION ${LIB_INSTALL_DIR}/cmake/KDEConnect)
# Find libkdeconnect
# Once done this will define
#
# KDECONNECT_FOUND - system has KDEConnect Library
# KDECONNECT_INCLUDES - the KDEConnect include directory
# KDECONNECT_LIBS - link these to use KDEConnect
# KDECONNECT_VERSION_MAJOR - the version of the KDEConnect Library
# KDECONNECT_VERSION_MINOR - the version of the KDEConnect Library
# KDECONNECT_VERSION_PATCH - the version of the KDEConnect Library
# KDECONNECT_VERSION - the version of the KDEConnect Library
# Copyright (c) 2014, Alexandr Akulich <akulichalexander@gmail.com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
find_library(KDECONNECT_LIBRARY NAMES kdeconnect HINTS ${KDE4_LIB_INSTALL_DIR} ${QT_LIBRARY_DIR})
find_path(KDECONNECT_INCLUDE_DIR NAMES kdeconnect_export.h HINTS ${KDE4_INCLUDE_INSTALL_DIR} ${QT_INCLUDE_DIR} ${INCLUDE_INSTALL_DIR} PATH_SUFFIXES kdeconnect)
get_filename_component(KDECONNECT_INCLUDE_DIR ${KDECONNECT_INCLUDE_DIR} PATH)
if(KDECONNECT_INCLUDE_DIR AND KDECONNECT_LIBRARY)
set(KDECONNECT_FOUND TRUE)
set(KDECONNECT_LIBS ${kdeconnect_LIB_DEPENDS} ${KDECONNECT_LIBRARY})
set(KDECONNECT_INCLUDES ${KDECONNECT_INCLUDE_DIR})
set(KDECONNECT_VERSION_MAJOR "@KDECONNECT_VERSION_MAJOR@")
set(KDECONNECT_VERSION_MINOR "@KDECONNECT_VERSION_MINOR@")
set(KDECONNECT_VERSION_PATCH "@KDECONNECT_VERSION_PATCH@")
set(KDECONNECT_VERSION "@KDECONNECT_VERSION@")
endif(KDECONNECT_INCLUDE_DIR AND KDECONNECT_LIBRARY)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(KDEConnect DEFAULT_MSG KDECONNECT_INCLUDE_DIR KDECONNECT_LIBRARY)
mark_as_advanced(KDECONNECT_INCLUDE_DIR KDECONNECT_LIBRARY)
project(kdeconnectpluginkcm)
add_definitions(-DTRANSLATION_DOMAIN=\"kdeconnect-core\")
add_library(kdeconnectpluginkcm kdeconnectpluginkcm.cpp)
......
......@@ -23,8 +23,6 @@
#include <QDebug>
#include <KLocalizedString>
#include "interfaces/dbusinterfaces.h"
K_EXPORT_PLASMA_RUNNER(installer, FindMyPhoneRunner)
FindMyPhoneRunner::FindMyPhoneRunner(QObject *parent, const QVariantList &args)
......
......@@ -23,7 +23,7 @@
#include <KRunner/AbstractRunner>
#include "interfaces/dbusinterfaces.h"
#include "dbusinterfaces.h"
class FindMyPhoneRunner : public Plasma::AbstractRunner
{
......
......@@ -22,8 +22,6 @@
#include <QDebug>
#include "interfaces/dbusinterfaces.h"
K_EXPORT_PLASMA_RUNNER(installer, RemoteCommandsRunner)
RemoteCommandsRunner::RemoteCommandsRunner(QObject *parent, const QVariantList &args)
......
......@@ -23,7 +23,7 @@
#include <KRunner/AbstractRunner>
#include "interfaces/dbusinterfaces.h"
#include "dbusinterfaces.h"
class RemoteCommandsRunner : public Plasma::AbstractRunner
{
......