Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show All 31 Lines | 7 | set(kservice_SRCS | |||
---|---|---|---|---|---|
32 | sycoca/kbuildservicetypefactory.cpp | 32 | sycoca/kbuildservicetypefactory.cpp | ||
33 | sycoca/kbuildservicefactory.cpp | 33 | sycoca/kbuildservicefactory.cpp | ||
34 | sycoca/kbuildservicegroupfactory.cpp | 34 | sycoca/kbuildservicegroupfactory.cpp | ||
35 | sycoca/kbuildsycoca.cpp | 35 | sycoca/kbuildsycoca.cpp | ||
36 | sycoca/kctimefactory.cpp | 36 | sycoca/kctimefactory.cpp | ||
37 | sycoca/kmimeassociations.cpp | 37 | sycoca/kmimeassociations.cpp | ||
38 | sycoca/vfolder_menu.cpp | 38 | sycoca/vfolder_menu.cpp | ||
39 | plugin/kplugintrader.cpp | 39 | plugin/kplugintrader.cpp | ||
40 | plugin/kdbusservicestarter.cpp | | |||
41 | ) | 40 | ) | ||
41 | if (TARGET Qt5::DBus) | ||||
42 | list(APPEND kservice_SRCS plugin/kdbusservicestarter.cpp) | ||||
43 | endif() | ||||
42 | ecm_qt_declare_logging_category(kservice_SRCS HEADER servicesdebug.h IDENTIFIER SERVICES CATEGORY_NAME kf5.kservice.services) | 44 | ecm_qt_declare_logging_category(kservice_SRCS HEADER servicesdebug.h IDENTIFIER SERVICES CATEGORY_NAME kf5.kservice.services) | ||
43 | ecm_qt_declare_logging_category(kservice_SRCS HEADER sycocadebug.h IDENTIFIER SYCOCA CATEGORY_NAME kf5.kservice.sycoca) | 45 | ecm_qt_declare_logging_category(kservice_SRCS HEADER sycocadebug.h IDENTIFIER SYCOCA CATEGORY_NAME kf5.kservice.sycoca) | ||
44 | 46 | | |||
45 | if (WIN32) | 47 | if (WIN32) | ||
46 | LIST(APPEND kservice_SRCS | 48 | LIST(APPEND kservice_SRCS | ||
47 | kdeinit/ktoolinvocation_win.cpp | 49 | kdeinit/ktoolinvocation_win.cpp | ||
48 | ) | 50 | ) | ||
49 | endif() | 51 | endif() | ||
Show All 15 Lines | |||||
65 | ) | 67 | ) | ||
66 | add_flex_bison_dependency(TraderLexer TraderParser) | 68 | add_flex_bison_dependency(TraderLexer TraderParser) | ||
67 | list(APPEND kservice_SRCS ${BISON_TraderParser_OUTPUTS} ${FLEX_TraderLexer_OUTPUTS}) | 69 | list(APPEND kservice_SRCS ${BISON_TraderParser_OUTPUTS} ${FLEX_TraderLexer_OUTPUTS}) | ||
68 | set_property(SOURCE ${CMAKE_CURRENT_BINARY_DIR}/yacc.h PROPERTY SKIP_AUTOMOC TRUE) # don't run automoc on this file | 70 | set_property(SOURCE ${CMAKE_CURRENT_BINARY_DIR}/yacc.h PROPERTY SKIP_AUTOMOC TRUE) # don't run automoc on this file | ||
69 | 71 | | |||
70 | # kservice cannot depend on kinit (because kinit->kio->kservice), so we need a copy of org.kde.KLauncher.xml here. | 72 | # kservice cannot depend on kinit (because kinit->kio->kservice), so we need a copy of org.kde.KLauncher.xml here. | ||
71 | # And I don't want to have it here as a source file (who wants to edit dbus xml by hand), so it can be | 73 | # And I don't want to have it here as a source file (who wants to edit dbus xml by hand), so it can be | ||
72 | # generated from klauncher's implementation header. | 74 | # generated from klauncher's implementation header. | ||
75 | if (TARGET Qt5::DBus) | ||||
73 | qt5_add_dbus_interface(kservice_SRCS kdeinit/org.kde.KLauncher.xml klauncher_iface) | 76 | qt5_add_dbus_interface(kservice_SRCS kdeinit/org.kde.KLauncher.xml klauncher_iface) | ||
77 | endif() | ||||
74 | 78 | | |||
75 | add_library(KF5Service ${kservice_SRCS}) | 79 | add_library(KF5Service ${kservice_SRCS}) | ||
76 | if(WIN32) | 80 | if(WIN32) | ||
77 | #unistd.h does not exist on windows | 81 | #unistd.h does not exist on windows | ||
78 | target_compile_definitions(KF5Service PRIVATE YY_NO_UNISTD_H=1) | 82 | target_compile_definitions(KF5Service PRIVATE YY_NO_UNISTD_H=1) | ||
79 | endif() | 83 | endif() | ||
80 | generate_export_header(KF5Service BASE_NAME KService) | 84 | generate_export_header(KF5Service BASE_NAME KService) | ||
81 | add_library(KF5::Service ALIAS KF5Service) | 85 | add_library(KF5::Service ALIAS KF5Service) | ||
Show All 9 Lines | |||||
91 | target_include_directories(KF5Service INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/KService>") | 95 | target_include_directories(KF5Service INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/KService>") | ||
92 | 96 | | |||
93 | target_link_libraries(KF5Service | 97 | target_link_libraries(KF5Service | ||
94 | PUBLIC | 98 | PUBLIC | ||
95 | KF5::ConfigCore # KConfig and friends | 99 | KF5::ConfigCore # KConfig and friends | ||
96 | KF5::CoreAddons # KShell KPluginLoader | 100 | KF5::CoreAddons # KShell KPluginLoader | ||
97 | PRIVATE | 101 | PRIVATE | ||
98 | KF5::I18n | 102 | KF5::I18n | ||
99 | KF5::DBusAddons # KDEInitInterface | | |||
100 | Qt5::Xml # (for vfolder menu) QDomDocument | 103 | Qt5::Xml # (for vfolder menu) QDomDocument | ||
101 | ) | 104 | ) | ||
105 | if (TARGET KF5::DBusAddons) | ||||
106 | target_link_libraries(KF5Service PRIVATE KF5::DBusAddons) # KDEInitInterface | ||||
107 | endif() | ||||
102 | 108 | | |||
103 | set_target_properties(KF5Service PROPERTIES VERSION ${KSERVICE_VERSION_STRING} | 109 | set_target_properties(KF5Service PROPERTIES VERSION ${KSERVICE_VERSION_STRING} | ||
104 | SOVERSION ${KSERVICE_SOVERSION} | 110 | SOVERSION ${KSERVICE_SOVERSION} | ||
105 | EXPORT_NAME Service | 111 | EXPORT_NAME Service | ||
106 | ) | 112 | ) | ||
107 | 113 | | |||
108 | ecm_generate_headers(KService_HEADERS | 114 | ecm_generate_headers(KService_HEADERS | ||
109 | HEADER_NAMES | 115 | HEADER_NAMES | ||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |