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:
parent
875b56127c
commit
a3641aac25
@ -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)
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include "storagetest.h"
|
||||
#include <QStandardPaths>
|
||||
|
||||
#include "../private/storage_p.h"
|
||||
#include "plasma/private/storage_p.h"
|
||||
|
||||
void StorageTest::initTestCase()
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -1,2 +0,0 @@
|
||||
#include "../../plasma/accessappletjob.h"
|
||||
|
@ -1,2 +0,0 @@
|
||||
#include "../../plasma/accessmanager.h"
|
||||
|
@ -1,2 +0,0 @@
|
||||
#include "../../plasma/applet.h"
|
||||
|
@ -1 +0,0 @@
|
||||
#include "../../plasma/scripting/appletscript.h"
|
@ -1,2 +0,0 @@
|
||||
#include "../../plasma/authorizationinterface.h"
|
||||
|
@ -1,2 +0,0 @@
|
||||
#include "../../plasma/authorizationmanager.h"
|
||||
|
@ -1,2 +0,0 @@
|
||||
#include "../../plasma/authorizationrule.h"
|
||||
|
@ -1,2 +0,0 @@
|
||||
#include "../../plasma/clientpinrequest.h"
|
||||
|
@ -1 +0,0 @@
|
||||
#include "../../plasma/configloader.h"
|
@ -1,2 +0,0 @@
|
||||
#include "../../plasma/containment.h"
|
||||
|
@ -1,2 +0,0 @@
|
||||
#include "../../plasma/containmentactions.h"
|
||||
|
@ -1 +0,0 @@
|
||||
#include "../../plasma/corona.h"
|
@ -1,2 +0,0 @@
|
||||
#include "../../plasma/credentials.h"
|
||||
|
@ -1 +0,0 @@
|
||||
#include "../../plasma/datacontainer.h"
|
@ -1 +0,0 @@
|
||||
#include "../../plasma/dataengine.h"
|
@ -1 +0,0 @@
|
||||
#include "../../plasma/dataengineconsumer.h"
|
@ -1 +0,0 @@
|
||||
#include "../../plasma/scripting/dataenginescript.h"
|
@ -1 +0,0 @@
|
||||
#include "../../plasma/framesvg.h"
|
@ -1 +0,0 @@
|
||||
#include "../../plasma/package.h"
|
@ -1 +0,0 @@
|
||||
#include "../../plasma/packagestructure.h"
|
@ -1 +0,0 @@
|
||||
#include "../../plasma/plasma.h"
|
@ -1 +0,0 @@
|
||||
#include "../../plasma/pluginloader.h"
|
@ -1 +0,0 @@
|
||||
#include "../../plasma/scripting/scriptengine.h"
|
@ -1 +0,0 @@
|
||||
#include "../../plasma/service.h"
|
@ -1 +0,0 @@
|
||||
#include "../../plasma/servicejob.h"
|
@ -1 +0,0 @@
|
||||
#include "../../plasma/svg.h"
|
@ -1 +0,0 @@
|
||||
#include "../../plasma/theme.h"
|
@ -1 +0,0 @@
|
||||
#include "../../plasma/version.h"
|
@ -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
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
#include <Plasma/Package>
|
||||
|
||||
#include <plasmaquick/plasmaquick_export.h>
|
||||
#include <plasmaquick_export.h>
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include <QQmlListProperty>
|
||||
#include <QAbstractListModel>
|
||||
|
||||
#include <plasmaquick/plasmaquick_export.h>
|
||||
#include <plasmaquick_export.h>
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
#include <QQuickView>
|
||||
|
||||
#include <plasmaquick/plasmaquick_export.h>
|
||||
#include <plasmaquick_export.h>
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
|
@ -1,2 +0,0 @@
|
||||
#include "../../plasmaquick/configview.h"
|
||||
|
@ -1,2 +0,0 @@
|
||||
#include "../../plasmaquick/packageurlinterceptor.h"
|
||||
|
@ -1,2 +0,0 @@
|
||||
#include "../../plasmaquick/plasmaquickview.h"
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#include <QQmlAbstractUrlInterceptor>
|
||||
|
||||
#include <plasmaquick/plasmaquick_export.h>
|
||||
#include <plasmaquick_export.h>
|
||||
|
||||
#include <Plasma/Package>
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#include <Plasma/PluginLoader>
|
||||
|
||||
#include <plasmaquick/plasmaquick_export.h>
|
||||
#include <plasmaquick_export.h>
|
||||
|
||||
class PLASMAQUICK_EXPORT ShellPluginLoader : public Plasma::PluginLoader
|
||||
{
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
#include <QtQuick/QQuickView>
|
||||
|
||||
#include <plasmaquick/plasmaquick_export.h>
|
||||
#include <plasmaquick_export.h>
|
||||
#include "plasma/corona.h"
|
||||
#include "plasma/containment.h"
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include <QQmlEngine>
|
||||
#include <QSet>
|
||||
|
||||
#include <Plasma/AppletScript>
|
||||
#include <plasma/scripting/appletscript.h>
|
||||
|
||||
class AppletInterface;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user