generic: generate export headers

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-07-28 01:38:38 +03:00
parent 235e203095
commit 3baa761344
58 changed files with 241 additions and 494 deletions

View file

@ -2,6 +2,7 @@ project( kio_network )
include_directories( include_directories(
../network ../network
${CMAKE_CURRENT_BINARY_DIR}/../network
) )
set( kio_network_SRCS set( kio_network_SRCS

View file

@ -2,6 +2,7 @@ project( networkwatcher )
include_directories( include_directories(
../network ../network
${CMAKE_CURRENT_BINARY_DIR}/../network
../ioslave ../ioslave
) )
set( kded_networkwatcher_SRCS set( kded_networkwatcher_SRCS

View file

@ -51,6 +51,12 @@ set( molletnetwork_LINK_LIBS
add_library( molletnetwork SHARED ${molletnetwork_LIB_SRCS} ) add_library( molletnetwork SHARED ${molletnetwork_LIB_SRCS} )
target_link_libraries( molletnetwork ${molletnetwork_LINK_LIBS} ) target_link_libraries( molletnetwork ${molletnetwork_LINK_LIBS} )
set_target_properties( molletnetwork PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
set_target_properties(molletnetwork PROPERTIES
VERSION ${GENERIC_LIB_VERSION}
SOVERSION ${GENERIC_LIB_SOVERSION}
)
generate_export_header(molletnetwork)
install( TARGETS molletnetwork ${INSTALL_TARGETS_DEFAULT_ARGS} ) install( TARGETS molletnetwork ${INSTALL_TARGETS_DEFAULT_ARGS} )

View file

@ -1,44 +0,0 @@
/*
This file is part of the Mollet network library, part of the KDE project.
Copyright 2009 Friedrich W. H. Kossebau <kossebau@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) version 3, or any
later version accepted by the membership of KDE e.V. (or its
successor approved by the membership of KDE e.V.), which shall
act as a proxy defined in Section 6 of version 3 of the license.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MOLLETNETWORK_EXPORT_H
#define MOLLETNETWORK_EXPORT_H
// KDE
#include <kdemacros.h>
#ifndef MOLLETNETWORK_EXPORT
// building the library?
# if defined(MAKE_MOLLETNETWORK_LIB)
# define MOLLETNETWORK_EXPORT KDE_EXPORT
// using the library
# else
# define MOLLETNETWORK_EXPORT KDE_IMPORT
# endif
#endif
# ifndef MOLLETNETWORK_EXPORT_DEPRECATED
# define MOLLETNETWORK_EXPORT_DEPRECATED KDE_DEPRECATED MOLLETNETWORK_EXPORT
# endif
#endif

View file

@ -7,6 +7,8 @@ include_directories(
${CMAKE_SOURCE_DIR}/libs/ksysguard ${CMAKE_SOURCE_DIR}/libs/ksysguard
${CMAKE_SOURCE_DIR}/libs/ksysguard/processcore ${CMAKE_SOURCE_DIR}/libs/ksysguard/processcore
${CMAKE_SOURCE_DIR}/libs/plasmagenericshell ${CMAKE_SOURCE_DIR}/libs/plasmagenericshell
# for plasmagenericshell_export.h
${CMAKE_BINARY_DIR}/libs/plasmagenericshell
# for kworkspace_export.h # for kworkspace_export.h
${CMAKE_BINARY_DIR}/libs/kworkspace ${CMAKE_BINARY_DIR}/libs/kworkspace
) )

View file

@ -5,7 +5,10 @@ add_subdirectory(backend)
########### kwalletd ############### ########### kwalletd ###############
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/backend) include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/backend
${CMAKE_CURRENT_BINARY_DIR}/backend
)
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=285) add_definitions(-DKDE_DEFAULT_DEBUG_AREA=285)

View file

@ -3,7 +3,10 @@
check_include_files(stdint.h HAVE_STDINT_H) check_include_files(stdint.h HAVE_STDINT_H)
check_include_files(sys/bitypes.h HAVE_SYS_BITYPES_H) check_include_files(sys/bitypes.h HAVE_SYS_BITYPES_H)
configure_file (config-kwalletbackend.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwalletbackend.h ) configure_file(
config-kwalletbackend.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/config-kwalletbackend.h
)
########### kwalletbackend ############### ########### kwalletbackend ###############
@ -20,7 +23,13 @@ add_library(kwalletbackend SHARED ${kwalletbackend_LIB_SRCS})
target_link_libraries(kwalletbackend ${KDE4_KDEUI_LIBS}) target_link_libraries(kwalletbackend ${KDE4_KDEUI_LIBS})
set_target_properties(kwalletbackend PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) set_target_properties(kwalletbackend PROPERTIES
VERSION ${GENERIC_LIB_VERSION}
SOVERSION ${GENERIC_LIB_SOVERSION}
)
generate_export_header(kwalletbackend)
install(TARGETS kwalletbackend ${INSTALL_TARGETS_DEFAULT_ARGS}) install(TARGETS kwalletbackend ${INSTALL_TARGETS_DEFAULT_ARGS})
if(ENABLE_TESTING) if(ENABLE_TESTING)

View file

@ -31,7 +31,7 @@
#endif #endif
#include "blockcipher.h" #include "blockcipher.h"
#include <kwallet_export.h> #include "kwalletbackend_export.h"
/* @internal /* @internal
*/ */

View file

@ -1,36 +0,0 @@
/* This file is part of the KDE project
Copyright (C) 2006 David Faure <faure@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KWALLET_EXPORT_H
#define KWALLET_EXPORT_H
/* needed for KDE_EXPORT and KDE_IMPORT macros */
#include <kdemacros.h>
#ifndef KWALLETBACKEND_EXPORT
# if defined(MAKE_KWALLETBACKEND_LIB)
/* We are building this library */
# define KWALLETBACKEND_EXPORT KDE_EXPORT
# else
/* We are using this library */
# define KWALLETBACKEND_EXPORT KDE_IMPORT
# endif
#endif
#endif

View file

@ -25,6 +25,8 @@
#include <QtCore/QString> #include <QtCore/QString>
#include <QtCore/QStringList> #include <QtCore/QStringList>
#include <QtCore/QMap> #include <QtCore/QMap>
#include <kdemacros.h>
#include "kwalletentry.h" #include "kwalletentry.h"
#include "backendpersisthandler.h" #include "backendpersisthandler.h"

View file

@ -25,7 +25,7 @@
#include <QtCore/QString> #include <QtCore/QString>
#include <QtCore/QDataStream> #include <QtCore/QDataStream>
#include "kwallet_export.h" #include "kwalletbackend_export.h"
#include "kwallet.h" #include "kwallet.h"
namespace KWallet { namespace KWallet {

View file

@ -1,3 +1,8 @@
include_directories(
# for taskmanager_export.h
${CMAKE_BINARY_DIR}/libs
)
add_subdirectory(kephal) add_subdirectory(kephal)
add_subdirectory(kworkspace) add_subdirectory(kworkspace)
add_subdirectory(oxygen) add_subdirectory(oxygen)

View file

@ -21,9 +21,15 @@ set_target_properties(plasmaclock PROPERTIES
SOVERSION ${GENERIC_LIB_SOVERSION} SOVERSION ${GENERIC_LIB_SOVERSION}
) )
generate_export_header(plasmaclock)
#clockapplet.h #clockapplet.h
install( install(
FILES clockapplet.h calendar.h calendartable.h plasmaclock_export.h FILES
clockapplet.h
calendar.h
calendartable.h
${CMAKE_CURRENT_BINARY_DIR}/plasmaclock_export.h
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/plasmaclock DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/plasmaclock
COMPONENT Devel COMPONENT Devel
) )

View file

@ -1,40 +0,0 @@
/* This file is part of the KDE project
Copyright (C) 2007 David Faure <faure@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef PLASMACLOCK_EXPORT_H
#define PLASMACLOCK_EXPORT_H
/* needed for KDE_EXPORT and KDE_IMPORT macros */
#include <kdemacros.h>
#ifndef PLASMACLOCK_EXPORT
# if defined(MAKE_PLASMACLOCK_LIB)
/* We are building this library */
# define PLASMACLOCK_EXPORT KDE_EXPORT
# else
/* We are using this library */
# define PLASMACLOCK_EXPORT KDE_IMPORT
# endif
#endif
# ifndef PLASMACLOCK_EXPORT_DEPRECATED
# define PLASMACLOCK_EXPORT_DEPRECATED KDE_DEPRECATED PLASMACLOCK_EXPORT
# endif
#endif

View file

@ -1,4 +1,5 @@
include_directories( include_directories(
${CMAKE_CURRENT_BINARY_DIR}
# for kworkspace_export.h # for kworkspace_export.h
${CMAKE_BINARY_DIR}/libs/kworkspace ${CMAKE_BINARY_DIR}/libs/kworkspace
) )
@ -61,6 +62,8 @@ set_target_properties(plasmagenericshell PROPERTIES
SOVERSION ${GENERIC_LIB_SOVERSION} SOVERSION ${GENERIC_LIB_SOVERSION}
) )
generate_export_header(plasmagenericshell)
install(DIRECTORY widgetsexplorer/package/ install(DIRECTORY widgetsexplorer/package/
DESTINATION ${KDE4_DATA_INSTALL_DIR}/plasma/packages/org.kde.desktop.widgetexplorer DESTINATION ${KDE4_DATA_INSTALL_DIR}/plasma/packages/org.kde.desktop.widgetexplorer
PATTERN "Messages.sh" EXCLUDE PATTERN "Messages.sh" EXCLUDE

View file

@ -1,40 +0,0 @@
/* This file is part of the KDE project
Copyright (C) 2007 David Faure <faure@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef PLASMAGENERICSHELL_EXPORT_H
#define PLASMAGENERICSHELL_EXPORT_H
/* needed for KDE_EXPORT and KDE_IMPORT macros */
#include <kdemacros.h>
#ifndef PLASMAGENERICSHELL_EXPORT
# if defined(MAKE_PLASMAGENERICSHELL_LIB)
/* We are building this library */
# define PLASMAGENERICSHELL_EXPORT KDE_EXPORT
# else
/* We are using this library */
# define PLASMAGENERICSHELL_EXPORT KDE_IMPORT
# endif
#endif
# ifndef PLASMAGENERICSHELL_EXPORT_DEPRECATED
# define PLASMAGENERICSHELL_EXPORT_DEPRECATED KDE_DEPRECATED PLASMAGENERICSHELL_EXPORT
# endif
#endif

View file

@ -24,7 +24,7 @@
#include <QtCore/qrect.h> #include <QtCore/qrect.h>
#include <QStringList> #include <QStringList>
#include "../plasmagenericshell_export.h" #include "plasmagenericshell_export.h"
namespace Plasma namespace Plasma
{ {

View file

@ -25,7 +25,7 @@
#include <KConfigGroup> #include <KConfigGroup>
#include "../plasmagenericshell_export.h" #include "plasmagenericshell_export.h"
namespace Plasma namespace Plasma
{ {

View file

@ -26,7 +26,7 @@
#include "applet.h" #include "applet.h"
#include "../plasmagenericshell_export.h" #include "plasmagenericshell_export.h"
namespace Plasma namespace Plasma
{ {

View file

@ -21,7 +21,8 @@
#define TEMPLATETEMPLATEPACKAGE_H #define TEMPLATETEMPLATEPACKAGE_H
#include <Plasma/PackageStructure> #include <Plasma/PackageStructure>
#include "../plasmagenericshell_export.h"
#include "plasmagenericshell_export.h"
namespace WorkspaceScripting namespace WorkspaceScripting
{ {

View file

@ -23,7 +23,7 @@
#include <QScriptEngine> #include <QScriptEngine>
#include <QScriptValue> #include <QScriptValue>
#include "../plasmagenericshell_export.h" #include "plasmagenericshell_export.h"
namespace Plasma namespace Plasma
{ {

View file

@ -24,7 +24,7 @@
#include "applet.h" #include "applet.h"
#include "../plasmagenericshell_export.h" #include "plasmagenericshell_export.h"
namespace Plasma namespace Plasma
{ {

View file

@ -45,6 +45,8 @@ set_target_properties(taskmanager PROPERTIES
SOVERSION ${GENERIC_LIB_SOVERSION} SOVERSION ${GENERIC_LIB_SOVERSION}
) )
generate_export_header(taskmanager)
install( install(
TARGETS taskmanager TARGETS taskmanager
EXPORT kdeworkspaceLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} EXPORT kdeworkspaceLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}
@ -62,7 +64,7 @@ install(FILES
taskgroup.h taskgroup.h
taskitem.h taskitem.h
taskmanager.h taskmanager.h
taskmanager_export.h ${CMAKE_CURRENT_BINARY_DIR}/taskmanager_export.h
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/taskmanager COMPONENT Devel DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/taskmanager COMPONENT Devel
) )

View file

@ -24,6 +24,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#ifndef TASKITEM_H #ifndef TASKITEM_H
#define TASKITEM_H #define TASKITEM_H
#include <kdemacros.h>
#include <taskmanager/abstractgroupableitem.h> #include <taskmanager/abstractgroupableitem.h>
#include <taskmanager/startup.h> #include <taskmanager/startup.h>
#include <taskmanager/task.h> #include <taskmanager/task.h>

View file

@ -1,45 +0,0 @@
/*****************************************************************
Copyright 2008 Aaron Seigo <aseigo@kde.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
******************************************************************/
#ifndef TASKMANAGER_EXPORT_H
#define TASKMANAGER_EXPORT_H
/* needed for TASKMANAGER_EXPORT and KDE_IMPORT macros */
#include <kdemacros.h>
#ifndef TASKMANAGER_EXPORT
# if defined(MAKE_TASKMANAGER_LIB)
/* We are building this library */
# define TASKMANAGER_EXPORT KDE_EXPORT
# else
/* We are using this library */
# define TASKMANAGER_EXPORT KDE_IMPORT
# endif
#endif
# ifndef TASKMANAGER_EXPORT_DEPRECATED
# define TASKMANAGER_EXPORT_DEPRECATED KDE_DEPRECATED TASKMANAGER_EXPORT
# endif
#endif

View file

@ -1,3 +1,7 @@
include_directories(
# for plasmaclock_export.h
${CMAKE_BINARY_DIR}/libs/plasmaclock
)
set(clock_SRCS set(clock_SRCS
clock.cpp clock.cpp
@ -5,7 +9,11 @@ set(clock_SRCS
) )
kde4_add_plugin(plasma_applet_clock ${clock_SRCS}) kde4_add_plugin(plasma_applet_clock ${clock_SRCS})
target_link_libraries(plasma_applet_clock ${KDE4_PLASMA_LIBS} plasmaclock ${KDE4_KIO_LIBS}) target_link_libraries(plasma_applet_clock
${KDE4_PLASMA_LIBS}
${KDE4_KIO_LIBS}
plasmaclock
)
install(TARGETS plasma_applet_clock DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}) install(TARGETS plasma_applet_clock DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES plasma-applet-analogclock.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR}) install(FILES plasma-applet-analogclock.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})

View file

@ -1,12 +1,21 @@
project(plasma-applet-calendar) project(plasma-applet-calendar)
include_directories(
# for plasmaclock_export.h
${CMAKE_BINARY_DIR}/libs/plasmaclock
)
set(calendar_SRCS set(calendar_SRCS
calendar.cpp) calendar.cpp)
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS}) add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
kde4_add_plugin(plasma_applet_calendar ${calendar_SRCS}) kde4_add_plugin(plasma_applet_calendar ${calendar_SRCS})
target_link_libraries(plasma_applet_calendar ${KDE4_PLASMA_LIBS} plasmaclock ${KDE4_KIO_LIBS}) target_link_libraries(plasma_applet_calendar
${KDE4_PLASMA_LIBS}
${KDE4_KIO_LIBS}
plasmaclock
)
install(TARGETS plasma_applet_calendar DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}) install(TARGETS plasma_applet_calendar DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES plasma-applet-calendar.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR}) install(FILES plasma-applet-calendar.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})

View file

@ -1,5 +1,10 @@
project(plasma-dig-clock) project(plasma-dig-clock)
include_directories(
# for plasmaclock_export.h
${CMAKE_BINARY_DIR}/libs/plasmaclock
)
set(clock_SRCS set(clock_SRCS
clock.cpp clock.cpp
clockConfig.ui clockConfig.ui
@ -8,9 +13,10 @@ set(clock_SRCS
kde4_add_plugin(plasma_applet_dig_clock ${clock_SRCS}) kde4_add_plugin(plasma_applet_dig_clock ${clock_SRCS})
target_link_libraries(plasma_applet_dig_clock target_link_libraries(plasma_applet_dig_clock
${KDE4_PLASMA_LIBS} ${KDE4_PLASMA_LIBS}
plasmaclock
${KDE4_KDEUI_LIBS} ${KDE4_KDEUI_LIBS}
${KDE4_KIO_LIBS}) ${KDE4_KIO_LIBS}
plasmaclock
)
install(TARGETS plasma_applet_dig_clock DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}) install(TARGETS plasma_applet_dig_clock DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES plasma-applet-digitalclock.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR}) install(FILES plasma-applet-digitalclock.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})

View file

@ -1,6 +1,10 @@
####################################################################################### #######################################################################################
# Kickoff Library # Kickoff Library
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
set(libkickoff_SRCS set(libkickoff_SRCS
core/kickoffmodel.cpp core/kickoffmodel.cpp
core/kickoffabstractmodel.cpp core/kickoffabstractmodel.cpp
@ -31,6 +35,9 @@ set(Kickoff_LIBS ${KDE4_KIO_LIBS} ${KDE4_KFILE_LIBS} ${KDE4_SOLID_LIBS} kworkspa
add_library(kickoff SHARED ${libkickoff_SRCS}) add_library(kickoff SHARED ${libkickoff_SRCS})
target_link_libraries(kickoff ${KDE4_PLASMA_LIBS} ${Kickoff_LIBS}) target_link_libraries(kickoff ${KDE4_PLASMA_LIBS} ${Kickoff_LIBS})
generate_export_header(kickoff)
install(TARGETS kickoff ${INSTALL_TARGETS_DEFAULT_ARGS}) install(TARGETS kickoff ${INSTALL_TARGETS_DEFAULT_ARGS})
####################################################################################### #######################################################################################

View file

@ -21,7 +21,7 @@
#ifndef APPLICATIONMODEL_H #ifndef APPLICATIONMODEL_H
#define APPLICATIONMODEL_H #define APPLICATIONMODEL_H
#include "core/kickoff_export.h" #include "kickoff_export.h"
#include "core/kickoffabstractmodel.h" #include "core/kickoffabstractmodel.h"
#include "core/models.h" #include "core/models.h"

View file

@ -20,7 +20,7 @@
#ifndef FAVORITESMODEL_H #ifndef FAVORITESMODEL_H
#define FAVORITESMODEL_H #define FAVORITESMODEL_H
#include "core/kickoff_export.h" #include "kickoff_export.h"
#include "core/kickoffmodel.h" #include "core/kickoffmodel.h"
#include "core/models.h" #include "core/models.h"

View file

@ -22,7 +22,7 @@
#include <QtCore/QObject> #include <QtCore/QObject>
#include "core/kickoff_export.h" #include "kickoff_export.h"
#include "core/urlitemlauncher.h" #include "core/urlitemlauncher.h"
namespace Kickoff namespace Kickoff

View file

@ -1,40 +0,0 @@
/* This file is part of the KDE project
Copyright (C) 2009 Sebastian Sauer <mail@dipe.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KICKOFF_EXPORT_H
#define KICKOFF_EXPORT_H
/* needed for KDE_EXPORT and KDE_IMPORT macros */
#include <kdemacros.h>
#ifndef KICKOFF_EXPORT
# if defined(MAKE_KICKOFF_LIB)
/* We are building this library */
# define KICKOFF_EXPORT KDE_EXPORT
# else
/* We are using this library */
# define KICKOFF_EXPORT KDE_IMPORT
# endif
#endif
# ifndef KICKOFF_EXPORT_DEPRECATED
# define KICKOFF_EXPORT_DEPRECATED KDE_DEPRECATED KICKOFF_EXPORT
# endif
#endif

View file

@ -20,8 +20,8 @@
#ifndef KRUNNERMODEL_H #ifndef KRUNNERMODEL_H
#define KRUNNERMODEL_H #define KRUNNERMODEL_H
#include "kickoff_export.h"
#include "core/models.h" #include "core/models.h"
#include "core/kickoff_export.h"
#include "core/kickoffmodel.h" #include "core/kickoffmodel.h"
#include "core/urlitemlauncher.h" #include "core/urlitemlauncher.h"

View file

@ -20,7 +20,7 @@
#ifndef LEAVEMODEL_H #ifndef LEAVEMODEL_H
#define LEAVEMODEL_H #define LEAVEMODEL_H
#include "core/kickoff_export.h" #include "kickoff_export.h"
#include <QStandardItemModel> #include <QStandardItemModel>

View file

@ -20,7 +20,7 @@
#ifndef RECENTAPPLICATIONS_H #ifndef RECENTAPPLICATIONS_H
#define RECENTAPPLICATIONS_H #define RECENTAPPLICATIONS_H
#include "core/kickoff_export.h" #include "kickoff_export.h"
// Qt // Qt
#include <QtCore/QObject> #include <QtCore/QObject>

View file

@ -20,8 +20,7 @@
#ifndef RECENTLYUSEDMODEL_H #ifndef RECENTLYUSEDMODEL_H
#define RECENTLYUSEDMODEL_H #define RECENTLYUSEDMODEL_H
// Qt #include "kickoff_export.h"
#include "core/kickoff_export.h"
#include "core/kickoffmodel.h" #include "core/kickoffmodel.h"
#include "core/models.h" #include "core/models.h"

View file

@ -21,7 +21,7 @@
#ifndef SYSTEMMODEL_H #ifndef SYSTEMMODEL_H
#define SYSTEMMODEL_H #define SYSTEMMODEL_H
#include "core/kickoff_export.h" #include "kickoff_export.h"
#include "core/kickoffproxymodel.h" #include "core/kickoffproxymodel.h"
#include <QThread> #include <QThread>

View file

@ -21,12 +21,13 @@
#ifndef URLITEMLAUNCHER_H #ifndef URLITEMLAUNCHER_H
#define URLITEMLAUNCHER_H #define URLITEMLAUNCHER_H
#include "core/kickoff_export.h" #include "kickoff_export.h"
#include <QObject> #include <QObject>
#include <QModelIndex>
#include <solid/storageaccess.h> #include <solid/storageaccess.h>
#include <QModelIndex>
class KUrl; class KUrl;
namespace Kickoff namespace Kickoff

View file

@ -1,5 +1,11 @@
project(plasma-pager) project(plasma-pager)
include_directories(
# for taskmanager_export.h
${CMAKE_BINARY_DIR}/libs
${CMAKE_BINARY_DIR}/libs/taskmanager
)
set(pager_SRCS set(pager_SRCS
model.cpp model.cpp
pager.cpp pager.cpp
@ -12,7 +18,8 @@ target_link_libraries(plasma_applet_pager
${KDE4_PLASMA_LIBS} ${KDE4_PLASMA_LIBS}
${KDE4_KCMUTILS_LIBS} ${KDE4_KCMUTILS_LIBS}
${QT_QTDECLARATIVE_LIBRARY} ${QT_QTDECLARATIVE_LIBRARY}
taskmanager) taskmanager
)
install(TARGETS plasma_applet_pager DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}) install(TARGETS plasma_applet_pager DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES plasma-pager-default.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR}) install(FILES plasma-pager-default.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})

View file

@ -8,9 +8,19 @@ set(lib_SRCS
applet.cpp applet.cpp
plotter.cpp plotter.cpp
) )
add_library(plasma_applet-system-monitor SHARED ${lib_SRCS}) add_library(plasma_applet-system-monitor SHARED ${lib_SRCS})
target_link_libraries(plasma_applet-system-monitor ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS}) target_link_libraries(plasma_applet-system-monitor
set_target_properties(plasma_applet-system-monitor PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) ${KDE4_PLASMA_LIBS}
${KDE4_KDEUI_LIBS}
)
set_target_properties(plasma_applet-system-monitor PROPERTIES
VERSION ${GENERIC_LIB_VERSION}
SOVERSION ${GENERIC_LIB_SOVERSION}
)
generate_export_header(plasma_applet-system-monitor BASE_NAME plasma_applet_system_monitor)
# HDD Space Monitor # HDD Space Monitor
@ -86,10 +96,12 @@ kde4_add_plugin(plasma_applet_system-monitor ${system-monitor_SRCS})
target_link_libraries(plasma_applet_system-monitor ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} plasma_applet-system-monitor) target_link_libraries(plasma_applet_system-monitor ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} plasma_applet-system-monitor)
# Install # Install
install(TARGETS install(
plasma_applet-system-monitor TARGETS plasma_applet-system-monitor
${INSTALL_TARGETS_DEFAULT_ARGS}) ${INSTALL_TARGETS_DEFAULT_ARGS}
install(TARGETS )
install(
TARGETS
plasma_applet_sm_hdd_activity plasma_applet_sm_hdd_activity
plasma_applet_sm_hdd plasma_applet_sm_hdd
plasma_applet_sm_temperature plasma_applet_sm_temperature
@ -98,8 +110,10 @@ install(TARGETS
plasma_applet_sm_cpu plasma_applet_sm_cpu
plasma_applet_sm_ram plasma_applet_sm_ram
plasma_applet_system-monitor plasma_applet_system-monitor
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}) DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}
install(FILES )
install(
FILES
plasma-applet-sm_hdd_activity.desktop plasma-applet-sm_hdd_activity.desktop
plasma-applet-sm_hdd.desktop plasma-applet-sm_hdd.desktop
plasma-applet-sm_temperature.desktop plasma-applet-sm_temperature.desktop
@ -108,7 +122,9 @@ install(FILES
plasma-applet-sm_cpu.desktop plasma-applet-sm_cpu.desktop
plasma-applet-sm_ram.desktop plasma-applet-sm_ram.desktop
plasma-applet-system-monitor.desktop plasma-applet-system-monitor.desktop
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}) DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
install(FILES )
hdd_panel.svgz install(
DESTINATION ${KDE4_DATA_INSTALL_DIR}/desktoptheme/default/system-monitor/) FILES hdd_panel.svgz
DESTINATION ${KDE4_DATA_INSTALL_DIR}/desktoptheme/default/system-monitor/
)

View file

@ -22,7 +22,7 @@
#include <Plasma/Applet> #include <Plasma/Applet>
#include "sm_export.h" #include "plasma_applet_system_monitor_export.h"
#define MINIMUM 24 #define MINIMUM 24
#define PREFERRED 200 #define PREFERRED 200
@ -37,7 +37,7 @@ namespace Plasma {
namespace SM { namespace SM {
class SM_EXPORT Applet : public Plasma::Applet class PLASMA_APPLET_SYSTEM_MONITOR_EXPORT Applet : public Plasma::Applet
{ {
Q_OBJECT Q_OBJECT
public: public:

View file

@ -21,9 +21,9 @@
#define MONITORBUTTON_HEADER #define MONITORBUTTON_HEADER
#include <Plasma/PushButton> #include <Plasma/PushButton>
#include "sm_export.h" #include "plasma_applet_system_monitor_export.h"
class SM_EXPORT MonitorButton : public Plasma::PushButton class PLASMA_APPLET_SYSTEM_MONITOR_EXPORT MonitorButton : public Plasma::PushButton
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(QString image READ image WRITE setImage) Q_PROPERTY(QString image READ image WRITE setImage)

View file

@ -21,9 +21,9 @@
#define MONITORICON_HEADER #define MONITORICON_HEADER
#include <QGraphicsWidget> #include <QGraphicsWidget>
#include "sm_export.h" #include "plasma_applet_system_monitor_export.h"
class SM_EXPORT MonitorIcon : public QGraphicsWidget class PLASMA_APPLET_SYSTEM_MONITOR_EXPORT MonitorIcon : public QGraphicsWidget
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(QString image READ image WRITE setImage) Q_PROPERTY(QString image READ image WRITE setImage)

View file

@ -21,7 +21,7 @@
#include <QGraphicsWidget> #include <QGraphicsWidget>
#include "sm_export.h" #include "plasma_applet_system_monitor_export.h"
#include <QGraphicsLinearLayout> #include <QGraphicsLinearLayout>
@ -33,7 +33,7 @@ namespace Plasma {
namespace SM { namespace SM {
class SM_EXPORT Plotter : public QGraphicsWidget class PLASMA_APPLET_SYSTEM_MONITOR_EXPORT Plotter : public QGraphicsWidget
{ {
Q_OBJECT Q_OBJECT
public: public:

View file

@ -1,40 +0,0 @@
/* This file is part of the KDE project
Copyright (C) 2007 David Faure <faure@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef SM_EXPORT_H
#define SM_EXPORT_H
/* needed for KDE_EXPORT and KDE_IMPORT macros */
#include <kdemacros.h>
#ifndef SM_EXPORT
# if defined(MAKE_PLASMA_APPLET_SYSTEM_MONITOR_LIB)
/* We are building this library */
# define SM_EXPORT KDE_EXPORT
# else
/* We are using this library */
# define SM_EXPORT KDE_IMPORT
# endif
#endif
# ifndef SM_EXPORT_DEPRECATED
# define SM_EXPORT_DEPRECATED KDE_DEPRECATED SM_EXPORT
# endif
#endif

View file

@ -1,5 +1,11 @@
project(plasma-tasks) project(plasma-tasks)
include_directories(
# for taskmanager_export.h
${CMAKE_BINARY_DIR}/libs
${CMAKE_BINARY_DIR}/libs/taskmanager
)
set(tasks_SRCS set(tasks_SRCS
tasks.cpp tasks.cpp
support/draghelper.cpp support/draghelper.cpp
@ -11,7 +17,12 @@ set(tasks_SRCS
kde4_add_plugin(plasma_applet_tasks ${tasks_SRCS}) kde4_add_plugin(plasma_applet_tasks ${tasks_SRCS})
target_link_libraries(plasma_applet_tasks ${KDE4_KDEUI_LIBS} ${KDE4_PLASMA_LIBS} ${QT_QTDECLARATIVE_LIBRARY} taskmanager) target_link_libraries(plasma_applet_tasks
${KDE4_KDEUI_LIBS}
${KDE4_PLASMA_LIBS}
${QT_QTDECLARATIVE_LIBRARY}
taskmanager
)
install(TARGETS plasma_applet_tasks DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}) install(TARGETS plasma_applet_tasks DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES plasma-tasks-default.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR}) install(FILES plasma-tasks-default.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})

View file

@ -1,5 +1,11 @@
project(plasma-windowlist) project(plasma-windowlist)
include_directories(
# for taskmanager_export.h
${CMAKE_BINARY_DIR}/libs
${CMAKE_BINARY_DIR}/libs/taskmanager
)
set(windowlist_SRCS WindowList.cpp) set(windowlist_SRCS WindowList.cpp)
kde4_add_plugin(plasma_applet_windowlist ${windowlist_SRCS}) kde4_add_plugin(plasma_applet_windowlist ${windowlist_SRCS})

View file

@ -4,18 +4,27 @@ project(geolocation)
set(plasma_geolocation_interface_SRCS geolocationprovider.cpp) set(plasma_geolocation_interface_SRCS geolocationprovider.cpp)
add_library(plasma-geolocation-interface SHARED ${plasma_geolocation_interface_SRCS}) add_library(plasma-geolocation-interface SHARED ${plasma_geolocation_interface_SRCS})
target_link_libraries(plasma-geolocation-interface PRIVATE ${KDE4_KIO_LIBS} ${KDE4_PLASMA_LIBS}) target_link_libraries(plasma-geolocation-interface PUBLIC
target_link_libraries(plasma-geolocation-interface ${KDE4_KIO_LIBS}
PUBLIC ${KDE4_KIO_LIBS} ${KDE4_PLASMA_LIBS}) ${KDE4_PLASMA_LIBS}
)
set_target_properties(plasma-geolocation-interface PROPERTIES set_target_properties(plasma-geolocation-interface PROPERTIES
VERSION ${GENERIC_LIB_VERSION} VERSION ${GENERIC_LIB_VERSION}
SOVERSION ${GENERIC_LIB_SOVERSION} SOVERSION ${GENERIC_LIB_SOVERSION}
) )
generate_export_header(plasma-geolocation-interface BASE_NAME geolocation)
install(TARGETS plasma-geolocation-interface ${INSTALL_TARGETS_DEFAULT_ARGS}) install(TARGETS plasma-geolocation-interface ${INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES geolocationprovider.h geolocation_export.h install(
FILES
geolocationprovider.h
${CMAKE_CURRENT_BINARY_DIR}/geolocation_export.h
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/plasma/geolocation DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/plasma/geolocation
COMPONENT Devel) COMPONENT Devel
)
#install(FILES includes/Interface #install(FILES includes/Interface
# DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/KDE/Plasma/Geolocation # DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/KDE/Plasma/Geolocation
@ -29,7 +38,8 @@ target_link_libraries(plasma_engine_geolocation
${KDE4_PLASMA_LIBS} ${KDE4_PLASMA_LIBS}
${KDE4_KDECORE_LIBS} ${KDE4_KDECORE_LIBS}
${KDE4_KIO_LIBS} ${KDE4_KIO_LIBS}
${KDE4_SOLID_LIBS}) ${KDE4_SOLID_LIBS}
)
install(TARGETS plasma_engine_geolocation DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}) install(TARGETS plasma_engine_geolocation DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES plasma-dataengine-geolocation.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR}) install(FILES plasma-dataengine-geolocation.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})

View file

@ -1,41 +0,0 @@
/* This file is part of the KDE project
Copyright (C) 2007 David Faure <faure@kde.org>
Copyright (C) 2009 Petri Damsten <damu@iki.fi>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef GEOLOCATION_EXPORT_H
#define GEOLOCATION_EXPORT_H
/* needed for KDE_EXPORT and KDE_IMPORT macros */
#include <kdemacros.h>
#ifndef GEOLOCATION_EXPORT
# if defined(MAKE_PLASMA_GEOLOCATION_INTERFACE_LIB)
/* We are building this library */
# define GEOLOCATION_EXPORT KDE_EXPORT
# else
/* We are using this library */
# define GEOLOCATION_EXPORT KDE_IMPORT
# endif
#endif
# ifndef GEOLOCATION_EXPORT_DEPRECATED
# define GEOLOCATION_EXPORT_DEPRECATED KDE_DEPRECATED GEOLOCATION_EXPORT
# endif
#endif

View file

@ -1,3 +1,9 @@
include_directories(
# for taskmanager_export.h
${CMAKE_BINARY_DIR}/libs
${CMAKE_BINARY_DIR}/libs/taskmanager
)
set(tasks_engine_SRCS set(tasks_engine_SRCS
tasksengine.cpp tasksengine.cpp
tasksource.cpp tasksource.cpp
@ -7,7 +13,11 @@ set(tasks_engine_SRCS
) )
kde4_add_plugin(plasma_engine_tasks ${tasks_engine_SRCS}) kde4_add_plugin(plasma_engine_tasks ${tasks_engine_SRCS})
target_link_libraries(plasma_engine_tasks ${KDE4_KDEUI_LIBS} ${KDE4_PLASMA_LIBS} taskmanager) target_link_libraries(plasma_engine_tasks
${KDE4_KDEUI_LIBS}
${KDE4_PLASMA_LIBS}
taskmanager
)
install(TARGETS plasma_engine_tasks DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}) install(TARGETS plasma_engine_tasks DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES plasma-dataengine-tasks.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR}) install(FILES plasma-dataengine-tasks.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})

View file

@ -1,3 +1,8 @@
include_directories(
${CMAKE_CURRENT_BINARY_DIR}/ions
)
ADD_SUBDIRECTORY(ions) ADD_SUBDIRECTORY(ions)
SET(weather_SRCS weatherengine.cpp) SET(weather_SRCS weatherengine.cpp)

View file

@ -12,6 +12,8 @@ set_target_properties(weather_ion PROPERTIES
SOVERSION ${GENERIC_LIB_SOVERSION} SOVERSION ${GENERIC_LIB_SOVERSION}
) )
generate_export_header(weather_ion BASE_NAME ion)
install( install(
TARGETS weather_ion TARGETS weather_ion
EXPORT kdeworkspaceLibraryTargets EXPORT kdeworkspaceLibraryTargets
@ -19,7 +21,9 @@ install(
) )
install( install(
FILES ion.h ion_export.h FILES
ion.h
${CMAKE_CURRENT_BINARY_DIR}/ion_export.h
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/plasma/weather DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/plasma/weather
COMPONENT Devel COMPONENT Devel
) )

View file

@ -1,40 +0,0 @@
/* This file is part of the KDE project
Copyright (C) 2007 David Faure <faure@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef ION_EXPORT_H
#define ION_EXPORT_H
/* needed for KDE_EXPORT and KDE_IMPORT macros */
#include <kdemacros.h>
#ifndef ION_EXPORT
# if defined(MAKE_WEATHER_ION_LIB)
/* We are building this library */
# define ION_EXPORT KDE_EXPORT
# else
/* We are using this library */
# define ION_EXPORT KDE_IMPORT
# endif
#endif
# ifndef ION_EXPORT_DEPRECATED
# define ION_EXPORT_DEPRECATED KDE_DEPRECATED ION_EXPORT
# endif
#endif

View file

@ -1,3 +1,8 @@
include_directories(
# for plasmagenericshell_export.h
${CMAKE_BINARY_DIR}/libs/plasmagenericshell
)
add_subdirectory(plasma-desktop) add_subdirectory(plasma-desktop)
add_subdirectory(plasma-overlay) add_subdirectory(plasma-overlay)
add_subdirectory(plasma-windowed) add_subdirectory(plasma-windowed)

View file

@ -8,7 +8,12 @@ IF(CMAKE_SOURCE_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
ENDIF(CMAKE_SOURCE_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") ENDIF(CMAKE_SOURCE_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
INCLUDE_DIRECTORIES (${CMAKE_CURRENT_SOURCE_DIR}/core ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES}) INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}/core
${CMAKE_CURRENT_BINARY_DIR}/core
${CMAKE_BINARY_DIR}
${KDE4_INCLUDES}
)
ADD_SUBDIRECTORY(core) ADD_SUBDIRECTORY(core)
ADD_SUBDIRECTORY(app) ADD_SUBDIRECTORY(app)

View file

@ -10,7 +10,7 @@ set(systemsettingsview_LIB_SRCS
) )
set(systemsettingsview_LIB_HDRS set(systemsettingsview_LIB_HDRS
systemsettingsview_export.h ${CMAKE_CURRENT_BINARY_DIR}/systemsettingsview_export.h
MenuItem.h MenuItem.h
MenuModel.h MenuModel.h
MenuProxyModel.h MenuProxyModel.h
@ -23,6 +23,8 @@ add_library(systemsettingsview SHARED ${systemsettingsview_LIB_SRCS})
target_link_libraries(systemsettingsview ${KDE4_KDECORE_LIBS} ${KDE4_KIO_LIBS} ${KDE4_KCMUTILS_LIBS}) target_link_libraries(systemsettingsview ${KDE4_KDECORE_LIBS} ${KDE4_KIO_LIBS} ${KDE4_KCMUTILS_LIBS})
generate_export_header(systemsettingsview)
install( TARGETS systemsettingsview ${INSTALL_TARGETS_DEFAULT_ARGS} ) install( TARGETS systemsettingsview ${INSTALL_TARGETS_DEFAULT_ARGS} )
install( FILES ${systemsettingsview_LIB_HDRS} DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/systemsettingsview COMPONENT Devel) install( FILES ${systemsettingsview_LIB_HDRS} DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/systemsettingsview COMPONENT Devel)
INSTALL( FILES systemsettingsview.desktop systemsettingsexternalapp.desktop DESTINATION ${KDE4_SERVICETYPES_INSTALL_DIR}) INSTALL( FILES systemsettingsview.desktop systemsettingsexternalapp.desktop DESTINATION ${KDE4_SERVICETYPES_INSTALL_DIR})

View file

@ -1,40 +0,0 @@
/**************************************************************************
* Copyright (C) 2009 Ben Cooksley <bcooksley@kde.org> *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation; either version 2 *
* of the License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
* 02110-1301, USA. *
***************************************************************************/
#ifndef SYSTEMSETTINGSVIEW_EXPORT_H
#define SYSTEMSETTINGSVIEW_EXPORT_H
// needed for KDE_EXPORT and KDE_IMPORT macros
#include <kdemacros.h>
#ifndef SYSTEMSETTINGSVIEW_EXPORT
# if defined(MAKE_SYSTEMSETTINGSVIEW_LIB)
// We are building this library
# define SYSTEMSETTINGSVIEW_EXPORT KDE_EXPORT
# else
// We are using this library
# define SYSTEMSETTINGSVIEW_EXPORT KDE_IMPORT
# endif
#endif
# ifndef SYSTEMSETTINGSVIEW_EXPORT_DEPRECATED
# define SYSTEMSETTINGSVIEW_EXPORT_DEPRECATED KDE_DEPRECATED SYSTEMSETTINGSVIEW_EXPORT
# endif
#endif