2014-11-13 01:04:59 +02:00
|
|
|
project(kdecore)
|
|
|
|
|
|
|
|
# Generate config-kstandarddirs.h
|
2015-10-31 12:01:45 +02:00
|
|
|
configure_file(
|
|
|
|
config-kstandarddirs.h.cmake
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/config-kstandarddirs.h
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
# Generate kdeversion.h
|
2015-10-31 12:01:45 +02:00
|
|
|
configure_file(
|
|
|
|
util/kdeversion.h.cmake
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kdeversion.h
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
# Configure checks for date/
|
|
|
|
include(date/ConfigureChecks.cmake)
|
2015-10-31 12:01:45 +02:00
|
|
|
configure_file(
|
|
|
|
date/config-date.h.cmake
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/date/config-date.h
|
|
|
|
)
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}/date)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
# Configure checks for compression/
|
|
|
|
include(compression/ConfigureChecks.cmake)
|
2015-10-31 12:01:45 +02:00
|
|
|
configure_file(
|
|
|
|
compression/config-compression.h.cmake
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/compression/config-compression.h
|
|
|
|
)
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}/compression)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-10-31 12:01:45 +02:00
|
|
|
include_directories(
|
|
|
|
${KDE4_KDECORE_INCLUDES}
|
|
|
|
${KDE4_KDEUI_INCLUDES}
|
|
|
|
${ZLIB_INCLUDE_DIR}
|
|
|
|
${QT_INCLUDES}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/auth
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/sonnet
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
# kdecore_OPTIONAL_SRCS is used to collect source files
|
|
|
|
# which are not always compiled into kdecore
|
|
|
|
# if it's used, *always* append to it
|
|
|
|
set(kdecore_OPTIONAL_SRCS)
|
|
|
|
# same for optional libs
|
|
|
|
set(kdecore_OPTIONAL_LIBS)
|
|
|
|
|
|
|
|
add_definitions(-DQT_NO_CAST_FROM_ASCII)
|
|
|
|
|
|
|
|
# compile bzip2 support if available
|
|
|
|
if(BZIP2_FOUND)
|
2015-10-31 12:01:45 +02:00
|
|
|
include_directories(${BZIP2_INCLUDE_DIR})
|
|
|
|
set(kdecore_OPTIONAL_SRCS ${kdecore_OPTIONAL_SRCS} compression/kbzip2filter.cpp)
|
|
|
|
set(kdecore_OPTIONAL_LIBS ${kdecore_OPTIONAL_LIBS} ${BZIP2_LIBRARIES})
|
2014-11-13 01:04:59 +02:00
|
|
|
endif(BZIP2_FOUND)
|
|
|
|
|
|
|
|
# compile lzma support if available
|
|
|
|
if(LIBLZMA_FOUND)
|
2015-10-31 12:01:45 +02:00
|
|
|
include_directories(${LIBLZMA_INCLUDE_DIRS})
|
|
|
|
set(kdecore_OPTIONAL_SRCS ${kdecore_OPTIONAL_SRCS} compression/kxzfilter.cpp)
|
|
|
|
set(kdecore_OPTIONAL_LIBS ${kdecore_OPTIONAL_LIBS} ${LIBLZMA_LIBRARIES})
|
2014-11-13 01:04:59 +02:00
|
|
|
endif(LIBLZMA_FOUND)
|
|
|
|
|
|
|
|
# compile Gettext support if available
|
|
|
|
if(LIBINTL_FOUND)
|
2015-10-31 12:01:45 +02:00
|
|
|
include_directories(${LIBINTL_INCLUDE_DIR})
|
|
|
|
set(kdecore_OPTIONAL_LIBS ${kdecore_OPTIONAL_LIBS} ${LIBINTL_LIBRARIES})
|
|
|
|
endif()
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2016-05-13 10:12:13 +00:00
|
|
|
# compile Enchant if available
|
2016-05-12 11:07:11 +00:00
|
|
|
if(ENCHANT_FOUND)
|
|
|
|
include_directories(
|
|
|
|
${ENCHANT_INCLUDE_DIR}
|
|
|
|
"${ENCHANT_INCLUDE_DIR}/.."
|
|
|
|
)
|
|
|
|
set(kdecore_OPTIONAL_SRCS
|
|
|
|
${kdecore_OPTIONAL_SRCS}
|
|
|
|
sonnet/enchantclient.cpp
|
|
|
|
sonnet/enchantdict.cpp
|
|
|
|
)
|
|
|
|
set(kdecore_OPTIONAL_LIBS ${kdecore_OPTIONAL_LIBS} ${ENCHANT_LIBRARIES})
|
|
|
|
endif()
|
|
|
|
|
2015-10-31 12:01:45 +02:00
|
|
|
add_subdirectory(kconfig_compiler)
|
2015-09-01 01:05:33 +03:00
|
|
|
if(ENABLE_TESTING)
|
2015-10-31 12:01:45 +02:00
|
|
|
add_subdirectory(tests)
|
|
|
|
add_subdirectory(sonnet/tests)
|
2015-09-01 01:05:33 +03:00
|
|
|
endif()
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
set(kdecore_LIB_SRCS
|
2015-09-01 01:05:33 +03:00
|
|
|
compression/kgzipfilter.cpp
|
|
|
|
compression/kfilterbase.cpp
|
|
|
|
compression/kfilterdev.cpp
|
|
|
|
config/kconfig.cpp
|
|
|
|
config/kconfigbase.cpp
|
|
|
|
config/kconfigdata.cpp
|
|
|
|
config/kconfiggroup.cpp
|
|
|
|
config/kconfigini.cpp
|
|
|
|
config/kdesktopfile.cpp
|
|
|
|
config/ksharedconfig.cpp
|
|
|
|
config/kcoreconfigskeleton.cpp
|
2019-07-12 14:09:24 +00:00
|
|
|
config/ksettings.cpp
|
2015-09-01 01:05:33 +03:00
|
|
|
date/kcalendarera.cpp
|
|
|
|
date/kcalendarsystem.cpp
|
|
|
|
date/kcalendarsystemcoptic.cpp
|
|
|
|
date/kcalendarsystemethiopian.cpp
|
|
|
|
date/kcalendarsystemqdate.cpp
|
|
|
|
date/kcalendarsystemgregorian.cpp
|
|
|
|
date/kcalendarsystemislamiccivil.cpp
|
|
|
|
date/kcalendarsystemhebrew.cpp
|
|
|
|
date/kcalendarsystemindiannational.cpp
|
|
|
|
date/kcalendarsystemjalali.cpp
|
|
|
|
date/kcalendarsystemjapanese.cpp
|
|
|
|
date/kcalendarsystemjulian.cpp
|
|
|
|
date/kcalendarsystemminguo.cpp
|
|
|
|
date/kcalendarsystemthai.cpp
|
|
|
|
date/kdatetime.cpp
|
|
|
|
date/kdatetimeformatter.cpp
|
|
|
|
date/kdatetimeparser.cpp
|
|
|
|
date/kdayperiod.cpp
|
|
|
|
date/klocalizeddate.cpp
|
|
|
|
date/ktimezone.cpp
|
|
|
|
date/ksystemtimezone.cpp
|
|
|
|
io/kdebug.cpp
|
|
|
|
io/kdirwatch.cpp
|
|
|
|
io/kfilesystemtype_p.cpp
|
|
|
|
io/kmessage.cpp
|
|
|
|
io/kmountpoint.cpp
|
|
|
|
io/kprocess.cpp
|
|
|
|
io/ksavefile.cpp
|
|
|
|
io/ktempdir.cpp
|
|
|
|
io/ktemporaryfile.cpp
|
|
|
|
io/kurl.cpp
|
|
|
|
jobs/kcompositejob.cpp
|
|
|
|
jobs/kjob.cpp
|
|
|
|
jobs/kjobuidelegate.cpp
|
|
|
|
jobs/kjobtrackerinterface.cpp
|
2022-09-25 17:41:18 +03:00
|
|
|
kernel/kauthorization.cpp
|
2015-09-01 01:05:33 +03:00
|
|
|
kernel/kaboutdata.cpp
|
|
|
|
kernel/kcmdlineargs.cpp
|
|
|
|
kernel/kdbusconnectionpool.cpp
|
|
|
|
kernel/kglobal.cpp
|
|
|
|
kernel/kcomponentdata.cpp
|
|
|
|
kernel/kstandarddirs.cpp
|
|
|
|
kernel/ktoolinvocation.cpp
|
|
|
|
services/kfoldermimetype.cpp
|
|
|
|
services/kmimetypefactory.cpp
|
|
|
|
services/kmimemagicrule.cpp
|
|
|
|
services/kmimetypetrader.cpp
|
|
|
|
services/kmimetype.cpp
|
|
|
|
services/kmimeglobsfileparser.cpp
|
|
|
|
services/kmimetyperepository.cpp
|
|
|
|
services/kservice.cpp
|
|
|
|
services/kserviceaction.cpp
|
|
|
|
services/kservicefactory.cpp
|
|
|
|
services/kservicegroup.cpp
|
|
|
|
services/kservicegroupfactory.cpp
|
|
|
|
services/kserviceoffer.cpp
|
|
|
|
services/kservicetype.cpp
|
|
|
|
services/kservicetypefactory.cpp
|
|
|
|
services/kservicetypetrader.cpp
|
|
|
|
services/ktraderparse.cpp
|
|
|
|
services/ktraderparsetree.cpp
|
|
|
|
services/yacc.c
|
|
|
|
services/lex.c
|
|
|
|
services/kplugininfo.cpp
|
|
|
|
sonnet/loader.cpp
|
|
|
|
sonnet/speller.cpp
|
|
|
|
sonnet/filter.cpp
|
|
|
|
sonnet/settings.cpp
|
|
|
|
sonnet/backgroundchecker.cpp
|
|
|
|
sonnet/backgroundengine.cpp
|
|
|
|
sonnet/globals.cpp
|
|
|
|
|
|
|
|
localization/kcatalog.cpp
|
|
|
|
localization/kcharsets.cpp
|
|
|
|
localization/klocale.cpp
|
|
|
|
localization/klocale_kde.cpp
|
|
|
|
localization/klocalizedstring.cpp
|
|
|
|
localization/kuitsemantics.cpp
|
|
|
|
localization/kuitformats.cpp
|
|
|
|
localization/common_helpers.cpp
|
|
|
|
sycoca/ksycoca.cpp
|
|
|
|
sycoca/ksycocadict.cpp
|
|
|
|
sycoca/ksycocaentry.cpp
|
|
|
|
sycoca/ksycocafactory.cpp
|
|
|
|
sycoca/kprotocolinfo.cpp
|
|
|
|
sycoca/kprotocolinfofactory.cpp
|
|
|
|
text/kstringhandler.cpp
|
|
|
|
util/kautostart.cpp
|
|
|
|
util/kdedmodule.cpp
|
2022-04-26 21:40:44 +03:00
|
|
|
util/kdevicedatabase.cpp
|
2015-09-01 01:05:33 +03:00
|
|
|
util/kdeversion.cpp
|
|
|
|
util/klauncher_iface.cpp
|
|
|
|
util/kmacroexpander.cpp
|
|
|
|
util/kpluginfactory.cpp
|
|
|
|
util/kpluginloader.cpp
|
|
|
|
util/kshell.cpp
|
|
|
|
util/krandom.cpp
|
2021-07-15 22:39:03 +03:00
|
|
|
util/kunitconversion.cpp
|
2015-09-01 01:05:33 +03:00
|
|
|
util/qtest_kde.cpp
|
|
|
|
|
|
|
|
kernel/ktoolinvocation_x11.cpp
|
|
|
|
kernel/kstandarddirs_unix.cpp
|
|
|
|
io/klockfile_unix.cpp
|
|
|
|
util/kshell_unix.cpp
|
|
|
|
util/kuser_unix.cpp
|
|
|
|
util/kmacroexpander_unix.cpp
|
|
|
|
|
|
|
|
${kdecore_OPTIONAL_SRCS}
|
2014-11-13 01:04:59 +02:00
|
|
|
)
|
|
|
|
|
2015-10-31 12:01:45 +02:00
|
|
|
if(NOT Q_WS_X11 AND NOT Q_WS_QWS)
|
|
|
|
add_definitions(-DNO_DISPLAY)
|
|
|
|
endif()
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
add_library(kdecore ${LIBRARY_TYPE} ${kdecore_LIB_SRCS})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-09-04 01:57:47 +00:00
|
|
|
target_link_libraries(kdecore PRIVATE
|
|
|
|
${ZLIB_LIBRARY}
|
|
|
|
${CMAKE_THREAD_LIBS_INIT}
|
|
|
|
${kdecore_OPTIONAL_LIBS}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-10-31 12:01:45 +02:00
|
|
|
target_link_libraries(kdecore PUBLIC
|
|
|
|
${QT_QTCORE_LIBRARY}
|
2020-02-09 21:45:50 +00:00
|
|
|
${QT_QTNETWORK_LIBRARY}
|
|
|
|
${QT_QTXML_LIBRARY}
|
|
|
|
${QT_QTDBUS_LIBRARY}
|
2015-10-31 12:01:45 +02:00
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
set_target_properties(kdecore PROPERTIES
|
2015-10-31 12:01:45 +02:00
|
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-10-31 12:01:45 +02:00
|
|
|
install(
|
|
|
|
TARGETS kdecore
|
|
|
|
EXPORT kdelibsLibraryTargets
|
|
|
|
${INSTALL_TARGETS_DEFAULT_ARGS}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
2015-10-31 12:01:45 +02:00
|
|
|
configure_file(
|
|
|
|
localization/all_languages.desktop
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/all_languages
|
|
|
|
@ONLY
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
add_executable(kde4-config kde-config.cpp )
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
target_link_libraries(kde4-config ${KDE4_KDECORE_LIBS})
|
|
|
|
|
2015-10-31 12:01:45 +02:00
|
|
|
install(TARGETS kde4-config ${INSTALL_TARGETS_DEFAULT_ARGS})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
########### install files ###############
|
2015-10-31 12:01:45 +02:00
|
|
|
|
2016-04-27 18:43:11 +00:00
|
|
|
generate_export_header(kdecore)
|
|
|
|
|
2015-10-31 12:01:45 +02:00
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
localization/entry.desktop
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/all_languages
|
2021-02-26 20:15:41 +02:00
|
|
|
DESTINATION ${KDE4_LOCALE_INSTALL_DIR}
|
2014-11-13 01:04:59 +02:00
|
|
|
)
|
|
|
|
|
2015-10-31 12:01:45 +02:00
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
kdebug.areas
|
|
|
|
kdebugrc
|
2021-02-26 20:15:41 +02:00
|
|
|
DESTINATION ${KDE4_CONFIG_INSTALL_DIR}
|
2014-11-13 01:04:59 +02:00
|
|
|
)
|
|
|
|
|
2015-10-31 12:01:45 +02:00
|
|
|
install(
|
|
|
|
FILES
|
2016-04-27 18:43:11 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kdecore_export.h
|
2015-10-31 12:01:45 +02:00
|
|
|
compression/kfilterbase.h
|
|
|
|
compression/kfilterdev.h
|
|
|
|
config/kconfig.h
|
|
|
|
config/kconfigbase.h
|
|
|
|
config/kconfiggroup.h
|
|
|
|
config/kdesktopfile.h
|
|
|
|
config/ksharedconfig.h
|
|
|
|
config/kcoreconfigskeleton.h
|
2019-07-12 14:09:24 +00:00
|
|
|
config/ksettings.h
|
2015-10-31 12:01:45 +02:00
|
|
|
date/kcalendarsystem.h
|
|
|
|
date/kdatetime.h
|
|
|
|
date/klocalizeddate.h
|
|
|
|
date/ksystemtimezone.h
|
|
|
|
date/ktimezone.h
|
|
|
|
io/kdebug.h
|
|
|
|
io/kdirwatch.h
|
|
|
|
io/kmessage.h
|
|
|
|
io/kprocess.h
|
|
|
|
io/klockfile.h
|
|
|
|
io/kmountpoint.h
|
|
|
|
io/ksavefile.h
|
|
|
|
io/ktempdir.h
|
|
|
|
io/ktemporaryfile.h
|
|
|
|
io/kurl.h
|
|
|
|
jobs/kcompositejob.h
|
|
|
|
jobs/kjob.h
|
|
|
|
jobs/kjobuidelegate.h
|
|
|
|
jobs/kjobtrackerinterface.h
|
|
|
|
kernel/kaboutdata.h
|
2022-09-25 17:41:18 +03:00
|
|
|
kernel/kauthorization.h
|
2015-10-31 12:01:45 +02:00
|
|
|
kernel/kcmdlineargs.h
|
|
|
|
kernel/kdbusconnectionpool.h
|
|
|
|
kernel/kglobal.h
|
|
|
|
kernel/kcomponentdata.h
|
|
|
|
kernel/kstandarddirs.h
|
|
|
|
kernel/ktoolinvocation.h
|
|
|
|
services/kmimetype.h
|
|
|
|
services/kmimetypetrader.h
|
|
|
|
services/kservice.h
|
|
|
|
services/kserviceaction.h
|
|
|
|
services/kservicegroup.h
|
|
|
|
#services/kservicefactory.h: do not install, internal API
|
|
|
|
services/kservicetype.h
|
|
|
|
#services/kservicetypefactory.h: do not install, internal API
|
|
|
|
services/kservicetypetrader.h
|
|
|
|
#services/kserviceoffer.h: do not install, internal API
|
|
|
|
services/kplugininfo.h
|
|
|
|
localization/kcharsets.h
|
|
|
|
localization/klocale.h
|
|
|
|
localization/klocalizedstring.h
|
|
|
|
sycoca/kprotocolinfo.h
|
|
|
|
sycoca/ksycoca.h
|
|
|
|
sycoca/ksycocaentry.h
|
|
|
|
sycoca/ksycocatype.h
|
|
|
|
text/kstringhandler.h
|
|
|
|
util/kautostart.h
|
|
|
|
util/kde_file.h
|
|
|
|
util/kdedmodule.h
|
2022-04-26 21:40:44 +03:00
|
|
|
util/kdevicedatabase.h
|
2015-10-31 12:01:45 +02:00
|
|
|
util/klauncher_iface.h
|
|
|
|
util/kmacroexpander.h
|
|
|
|
util/kpluginfactory.h
|
|
|
|
util/kpluginloader.h
|
|
|
|
util/kshell.h
|
|
|
|
util/krandom.h
|
2021-07-15 22:39:03 +03:00
|
|
|
util/kunitconversion.h
|
2015-10-31 12:01:45 +02:00
|
|
|
util/ksharedptr.h
|
|
|
|
util/ksortablelist.h
|
|
|
|
util/kuser.h
|
|
|
|
util/qtest_kde.h
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kdeversion.h
|
2021-02-26 20:15:41 +02:00
|
|
|
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}
|
2015-10-31 12:01:45 +02:00
|
|
|
COMPONENT Devel
|
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
sonnet/backgroundchecker.h
|
|
|
|
sonnet/speller.h
|
|
|
|
sonnet/globals.h
|
2021-02-26 20:15:41 +02:00
|
|
|
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/sonnet
|
2015-10-31 12:01:45 +02:00
|
|
|
COMPONENT Devel
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-10-31 12:01:45 +02:00
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
services/kplugininfo.desktop
|
2021-02-26 20:15:41 +02:00
|
|
|
DESTINATION ${KDE4_SERVICETYPES_INSTALL_DIR}
|
2014-11-13 01:04:59 +02:00
|
|
|
)
|
|
|
|
|
2022-04-29 13:42:03 +03:00
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
pci.ids
|
|
|
|
usb.ids
|
2022-04-29 18:14:29 +03:00
|
|
|
kde4_pci.ids
|
|
|
|
kde4_usb.ids
|
2022-04-29 13:42:03 +03:00
|
|
|
DESTINATION ${KDE4_DATA_INSTALL_DIR}/kdevicedatabase
|
|
|
|
)
|
2022-09-25 09:06:37 +03:00
|
|
|
|
|
|
|
install(
|
|
|
|
FILES
|
2022-09-25 17:41:18 +03:00
|
|
|
dbus_policy.stub
|
|
|
|
dbus_service.stub
|
2022-09-25 09:06:37 +03:00
|
|
|
DESTINATION ${KDE4_DATA_INSTALL_DIR}/kauth
|
|
|
|
COMPONENT Devel
|
|
|
|
)
|