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)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
include(ECMGenerateHeaders)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings)

View File

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

View File

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

View File

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

View File

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

View File

@ -23,7 +23,7 @@
#include <QQuickView>
#include <plasmaquick/plasmaquick_export.h>
#include <plasmaquick_export.h>
//
// 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 <plasmaquick/plasmaquick_export.h>
#include <plasmaquick_export.h>
#include <Plasma/Package>

View File

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

View File

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

View File

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