#include <QStackedWidget>
#include <QLabel>
#include <QTextDocument>
+#include <QHideEvent>
class WrapLabel;
class KPixmapSequenceWidget;
-#include <QHideEvent>
class StatusWidget: public QStackedWidget
{
QString operatingSystem = "unspecified";
#ifdef HAVE_UNAME
struct utsname buf;
- if (uname(&buf) == -1) {
+ if (::uname(&buf) == -1) {
kDebug() << "call to uname failed" << perror;
} else {
operatingSystem = QString::fromLocal8Bit(buf.sysname) + ' '
+include_directories(
+ # for kworkspace_export.h
+ ${CMAKE_BINARY_DIR}/libs/kworkspace
+)
+
########### next target ###############
set(kcm_screensaver_PART_SRCS
+include_directories(
+ # for kworkspace_export.h
+ ${CMAKE_BINARY_DIR}/libs/kworkspace
+)
+
set(kcm_kdm_PART_SRCS
kdm-gen.cpp
kdm-theme.cpp
kdm-conv.cpp
main.cpp
kbackedcombobox.cpp
- positioner.cpp)
+ positioner.cpp
+)
kde4_add_plugin(kcm_kdm ${kcm_kdm_PART_SRCS})
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/libkhotkeysprivate
${CMAKE_CURRENT_BINARY_DIR}/libkhotkeysprivate
- )
+ # for kworkspace_export.h
+ ${CMAKE_BINARY_DIR}/libs/kworkspace
+)
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=1217)
# for dbus_add_activation_service
include(MacroDBusAddActivationService)
-include_directories(${CMAKE_SOURCE_DIR}/libs/ksysguard
- ${CMAKE_SOURCE_DIR}/libs/ksysguard/processcore
- ${CMAKE_SOURCE_DIR}/libs/plasmagenericshell)
+include_directories(
+ ${CMAKE_SOURCE_DIR}/libs/ksysguard
+ ${CMAKE_SOURCE_DIR}/libs/ksysguard/processcore
+ ${CMAKE_SOURCE_DIR}/libs/plasmagenericshell
+ # for kworkspace_export.h
+ ${CMAKE_BINARY_DIR}/libs/kworkspace
+)
set(krunner_KCFG_SRCS kcfg/krunnersettings.kcfgc kcfg/klaunchsettings.kcfgc)
set(krunner_dbusAppXML dbus/org.kde.krunner.App.xml)
VERSION ${GENERIC_LIB_VERSION}
SOVERSION ${GENERIC_LIB_SOVERSION}
)
-set_target_properties(kscreensaver PROPERTIES
- DEFINE_SYMBOL MAKE_KSCREENSAVER_LIB
-)
+
+generate_export_header(kscreensaver)
install(
TARGETS kscreensaver
FILES
kscreensaver.h
kscreensaver_vroot.h
- kscreensaver_export.h
+ ${CMAKE_CURRENT_BINARY_DIR}/kscreensaver_export.h
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}
COMPONENT Devel
)
+++ /dev/null
-/* This file is part of the KDE project
- Copyright (C) 2012 Andrius da Costa Ribas <andriusmao@gmail.com>
-
- 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 KSCREENSAVER_EXPORT_H
-#define KSCREENSAVER_EXPORT_H
-
-/* needed for KDE_EXPORT and KDE_IMPORT macros */
-#include <kdemacros.h>
-
-#ifndef KSCREENSAVER_EXPORT
-# if defined(MAKE_KSCREENSAVER_LIB)
- /* We are building this library */
-# define KSCREENSAVER_EXPORT KDE_EXPORT
-# else
- /* We are using this library */
-# define KSCREENSAVER_EXPORT KDE_IMPORT
-# endif
-#endif
-
-# ifndef KSCREENSAVER_EXPORT_DEPRECATED
-# define KSCREENSAVER_EXPORT_DEPRECATED KDE_DEPRECATED KSCREENSAVER_EXPORT
-# endif
-
-#endif
-add_subdirectory( kcm )
-
include_directories(
${CMAKE_SOURCE_DIR}/libs
${KDECLARATIVE_INCLUDE_DIR}
+ # for kworkspace_export.h
+ ${CMAKE_BINARY_DIR}/libs/kworkspace
)
+add_subdirectory( kcm )
+
if(ENABLE_TESTING)
add_subdirectory(tests)
endif()
set(KWIN_BUILD_KAPPMENU OFF)
endif()
-include_directories(${XCB_INCLUDE_DIR})
+include_directories(
+ ${XCB_INCLUDE_DIR}
+ # for kworkspace_export.h
+ ${CMAKE_BINARY_DIR}/libs/kworkspace
+)
# for kwin internal things
configure_file(config-kwin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwin.h)
-
set(kworkspace_LIB_SRCS
kdisplaymanager.cpp
kwindowlistmenu.cpp
set_target_properties(kworkspace PROPERTIES
VERSION ${GENERIC_LIB_VERSION}
SOVERSION ${GENERIC_LIB_SOVERSION}
- DEFINE_SYMBOL MAKE_KWORKSPACE_LIB
)
+generate_export_header(kworkspace)
+
install(
TARGETS kworkspace
EXPORT kdeworkspaceLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}
kdisplaymanager.h
kwindowlistmenu.h
kworkspace.h
- kworkspace_export.h
+ ${CMAKE_CURRENT_BINARY_DIR}/kworkspace_export.h
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/kworkspace
COMPONENT Devel
)
+++ /dev/null
-/* This file is part of the KDE project
- Copyright (C) 2011 Andrius da Costa Ribas <andriusmao@gmail.com>
-
- 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 KWORKSPACE_EXPORT_H
-#define KWORKSPACE_EXPORT_H
-
-/* needed for KDE_EXPORT and KDE_IMPORT macros */
-#include <kdemacros.h>
-
-#ifndef KWORKSPACE_EXPORT
-# if defined(MAKE_KWORKSPACE_LIB)
- /* We are building this library */
-# define KWORKSPACE_EXPORT KDE_EXPORT
-# else
- /* We are using this library */
-# define KWORKSPACE_EXPORT KDE_IMPORT
-# endif
-#endif
-
-# ifndef KWORKSPACE_EXPORT_DEPRECATED
-# define KWORKSPACE_EXPORT_DEPRECATED KDE_DEPRECATED KWORKSPACE_EXPORT
-# endif
-
-#endif
+include_directories(
+ # for kworkspace_export.h
+ ${CMAKE_BINARY_DIR}/libs/kworkspace
+)
+
if(ENABLE_TESTING)
add_subdirectory(tests)
endif()
+include_directories(
+ # for kworkspace_export.h
+ ${CMAKE_BINARY_DIR}/libs/kworkspace
+)
+
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=1204)
MACRO(installPackage dir component)
-include_directories(${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_CURRENT_BINARY_DIR})
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ # for kworkspace_export.h
+ ${CMAKE_BINARY_DIR}/libs/kworkspace
+)
add_subdirectory(actions)