Fix headers management in plasma-framework

Use generate headers instead of having them stored in the repository.
Figure out how relative paths are forwarded around, there were some weird
things.
Stop installing plasma header files in the KDE/ prefix.
This commit is contained in:
Aleix Pol 2014-03-17 16:28:24 +01:00
parent 875b56127c
commit a3641aac25
42 changed files with 39 additions and 78 deletions

View File

@ -12,6 +12,7 @@ include(GenerateExportHeader)
find_package(ECM 0.0.11 REQUIRED NO_MODULE) find_package(ECM 0.0.11 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR}) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
include(ECMGenerateHeaders)
include(KDEInstallDirs) include(KDEInstallDirs)
include(KDECMakeSettings) include(KDECMakeSettings)
include(KDECompilerSettings) include(KDECompilerSettings)

View File

@ -20,7 +20,7 @@
#include "storagetest.h" #include "storagetest.h"
#include <QStandardPaths> #include <QStandardPaths>
#include "../private/storage_p.h" #include "plasma/private/storage_p.h"
void StorageTest::initTestCase() void StorageTest::initTestCase()
{ {

View File

@ -132,10 +132,10 @@ PRIVATE
) )
target_include_directories(KF5Plasma PUBLIC target_include_directories(KF5Plasma PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..;${CMAKE_CURRENT_BINARY_DIR}/..;${CMAKE_CURRENT_SOURCE_DIR}/includes>" "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..;${CMAKE_CURRENT_BINARY_DIR};${CMAKE_CURRENT_BINARY_DIR}/Plasma>"
) )
target_include_directories(KF5Plasma INTERFACE target_include_directories(KF5Plasma INTERFACE
"$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR};${INCLUDE_INSTALL_DIR}/KDE>" "$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR};${INCLUDE_INSTALL_DIR}/Plasma>"
) )
set_target_properties(KF5Plasma PROPERTIES set_target_properties(KF5Plasma PROPERTIES
@ -146,36 +146,39 @@ set_target_properties(KF5Plasma PROPERTIES
########### install files ############### ########### install files ###############
generate_export_header(KF5Plasma BASE_NAME Plasma) generate_export_header(KF5Plasma BASE_NAME Plasma)
ecm_generate_headers(Plasma_CamelCase_HEADERS
set(Plasma_LIB_INCLUDES HEADER_NAMES
applet.h Applet
configloader.h ConfigLoader
containment.h Containment
containmentactions.h ContainmentActions
corona.h Corona
datacontainer.h DataContainer
dataengine.h DataEngine
dataengineconsumer.h DataEngineConsumer
pluginloader.h PluginLoader
framesvg.h FrameSvg
package.h Package
packagestructure.h PackageStructure
plasma.h Service
${CMAKE_CURRENT_BINARY_DIR}/plasma_export.h ServiceJob
service.h Svg
servicejob.h Theme
svg.h Plasma
theme.h REQUIRED_HEADERS Plasma_HEADERS
version.h) PREFIX Plasma
)
install(FILES install(FILES
${Plasma_LIB_INCLUDES} ${Plasma_CamelCase_HEADERS}
${Plasma_HEADERS}
${CMAKE_CURRENT_BINARY_DIR}/plasma_export.h
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma COMPONENT Devel) DESTINATION ${INCLUDE_INSTALL_DIR}/plasma COMPONENT Devel)
install(DIRECTORY install(DIRECTORY
includes/Plasma ${CMAKE_CURRENT_BINARY_DIR}/Plasma
DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/ COMPONENT Devel) DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel)
install(FILES install(FILES

View File

@ -1,2 +0,0 @@
#include "../../plasma/accessappletjob.h"

View File

@ -1,2 +0,0 @@
#include "../../plasma/accessmanager.h"

View File

@ -1,2 +0,0 @@
#include "../../plasma/applet.h"

View File

@ -1 +0,0 @@
#include "../../plasma/scripting/appletscript.h"

View File

@ -1,2 +0,0 @@
#include "../../plasma/authorizationinterface.h"

View File

@ -1,2 +0,0 @@
#include "../../plasma/authorizationmanager.h"

View File

@ -1,2 +0,0 @@
#include "../../plasma/authorizationrule.h"

View File

@ -1,2 +0,0 @@
#include "../../plasma/clientpinrequest.h"

View File

@ -1 +0,0 @@
#include "../../plasma/configloader.h"

View File

@ -1,2 +0,0 @@
#include "../../plasma/containment.h"

View File

@ -1,2 +0,0 @@
#include "../../plasma/containmentactions.h"

View File

@ -1 +0,0 @@
#include "../../plasma/corona.h"

View File

@ -1,2 +0,0 @@
#include "../../plasma/credentials.h"

View File

@ -1 +0,0 @@
#include "../../plasma/datacontainer.h"

View File

@ -1 +0,0 @@
#include "../../plasma/dataengine.h"

View File

@ -1 +0,0 @@
#include "../../plasma/dataengineconsumer.h"

View File

@ -1 +0,0 @@
#include "../../plasma/scripting/dataenginescript.h"

View File

@ -1 +0,0 @@
#include "../../plasma/framesvg.h"

View File

@ -1 +0,0 @@
#include "../../plasma/package.h"

View File

@ -1 +0,0 @@
#include "../../plasma/packagestructure.h"

View File

@ -1 +0,0 @@
#include "../../plasma/plasma.h"

View File

@ -1 +0,0 @@
#include "../../plasma/pluginloader.h"

View File

@ -1 +0,0 @@
#include "../../plasma/scripting/scriptengine.h"

View File

@ -1 +0,0 @@
#include "../../plasma/service.h"

View File

@ -1 +0,0 @@
#include "../../plasma/servicejob.h"

View File

@ -1 +0,0 @@
#include "../../plasma/svg.h"

View File

@ -1 +0,0 @@
#include "../../plasma/theme.h"

View File

@ -1 +0,0 @@
#include "../../plasma/version.h"

View File

@ -13,6 +13,7 @@ set(plasmaquick_LIB_SRC
add_library(KF5PlasmaQuick SHARED ${plasmaquick_LIB_SRC}) add_library(KF5PlasmaQuick SHARED ${plasmaquick_LIB_SRC})
add_library(KF5::PlasmaQuick ALIAS KF5PlasmaQuick) add_library(KF5::PlasmaQuick ALIAS KF5PlasmaQuick)
target_include_directories(KF5PlasmaQuick PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>")
target_link_libraries(KF5PlasmaQuick target_link_libraries(KF5PlasmaQuick
Qt5::Quick Qt5::Quick

View File

@ -28,7 +28,7 @@
#include <Plasma/Package> #include <Plasma/Package>
#include <plasmaquick/plasmaquick_export.h> #include <plasmaquick_export.h>
// //
// W A R N I N G // W A R N I N G

View File

@ -24,7 +24,7 @@
#include <QQmlListProperty> #include <QQmlListProperty>
#include <QAbstractListModel> #include <QAbstractListModel>
#include <plasmaquick/plasmaquick_export.h> #include <plasmaquick_export.h>
// //
// W A R N I N G // W A R N I N G

View File

@ -23,7 +23,7 @@
#include <QQuickView> #include <QQuickView>
#include <plasmaquick/plasmaquick_export.h> #include <plasmaquick_export.h>
// //
// W A R N I N G // W A R N I N G

View File

@ -1,2 +0,0 @@
#include "../../plasmaquick/configview.h"

View File

@ -1,2 +0,0 @@
#include "../../plasmaquick/packageurlinterceptor.h"

View File

@ -1,2 +0,0 @@
#include "../../plasmaquick/plasmaquickview.h"

View File

@ -22,7 +22,7 @@
#include <QQmlAbstractUrlInterceptor> #include <QQmlAbstractUrlInterceptor>
#include <plasmaquick/plasmaquick_export.h> #include <plasmaquick_export.h>
#include <Plasma/Package> #include <Plasma/Package>

View File

@ -22,7 +22,7 @@
#include <Plasma/PluginLoader> #include <Plasma/PluginLoader>
#include <plasmaquick/plasmaquick_export.h> #include <plasmaquick_export.h>
class PLASMAQUICK_EXPORT ShellPluginLoader : public Plasma::PluginLoader class PLASMAQUICK_EXPORT ShellPluginLoader : public Plasma::PluginLoader
{ {

View File

@ -21,7 +21,7 @@
#include <QtQuick/QQuickView> #include <QtQuick/QQuickView>
#include <plasmaquick/plasmaquick_export.h> #include <plasmaquick_export.h>
#include "plasma/corona.h" #include "plasma/corona.h"
#include "plasma/containment.h" #include "plasma/containment.h"

View File

@ -24,7 +24,7 @@
#include <QQmlEngine> #include <QQmlEngine>
#include <QSet> #include <QSet>
#include <Plasma/AppletScript> #include <plasma/scripting/appletscript.h>
class AppletInterface; class AppletInterface;