Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
1 | add_definitions(-DTRANSLATION_DOMAIN="xdg-desktop-portal-kde") | 1 | add_definitions(-DTRANSLATION_DOMAIN="xdg-desktop-portal-kde") | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | include_directories(${Qt5PrintSupport_PRIVATE_INCLUDE_DIRS}) | 3 | include_directories(${Qt5PrintSupport_PRIVATE_INCLUDE_DIRS}) | ||
4 | 4 | | |||
5 | set(xdg_desktop_portal_kde_SRCS | 5 | set(xdg_desktop_portal_kde_SRCS | ||
6 | xdg-desktop-portal-kde.cpp | 6 | xdg-desktop-portal-kde.cpp | ||
7 | access.cpp | 7 | access.cpp | ||
8 | accessdialog.cpp | 8 | accessdialog.cpp | ||
9 | appchooser.cpp | 9 | appchooser.cpp | ||
10 | appchooserdialog.cpp | 10 | appchooserdialog.cpp | ||
11 | appchooserdialogitem.cpp | | |||
12 | desktopportal.cpp | 11 | desktopportal.cpp | ||
13 | email.cpp | 12 | email.cpp | ||
14 | filechooser.cpp | 13 | filechooser.cpp | ||
15 | inhibit.cpp | 14 | inhibit.cpp | ||
16 | notification.cpp | 15 | notification.cpp | ||
17 | print.cpp | 16 | print.cpp | ||
18 | request.cpp | 17 | request.cpp | ||
19 | session.cpp | 18 | session.cpp | ||
Show All 16 Lines | 25 | if (SCREENCAST_ENABLED) | |||
36 | 35 | | |||
37 | ki18n_wrap_ui(xdg_desktop_portal_kde_SRCS | 36 | ki18n_wrap_ui(xdg_desktop_portal_kde_SRCS | ||
38 | screenchooserdialog.ui | 37 | screenchooserdialog.ui | ||
39 | remotedesktopdialog.ui) | 38 | remotedesktopdialog.ui) | ||
40 | endif() | 39 | endif() | ||
41 | 40 | | |||
42 | ki18n_wrap_ui(xdg_desktop_portal_kde_SRCS | 41 | ki18n_wrap_ui(xdg_desktop_portal_kde_SRCS | ||
43 | accessdialog.ui | 42 | accessdialog.ui | ||
43 | appchooserdialog.ui | ||||
44 | screenshotdialog.ui | 44 | screenshotdialog.ui | ||
45 | ) | 45 | ) | ||
46 | 46 | | |||
47 | add_executable(xdg-desktop-portal-kde ${xdg_desktop_portal_kde_SRCS}) | 47 | add_executable(xdg-desktop-portal-kde ${xdg_desktop_portal_kde_SRCS}) | ||
48 | 48 | | |||
49 | target_link_libraries(xdg-desktop-portal-kde | 49 | target_link_libraries(xdg-desktop-portal-kde | ||
50 | Qt5::Core | 50 | Qt5::Core | ||
51 | Qt5::DBus | 51 | Qt5::DBus | ||
52 | Qt5::Concurrent | 52 | Qt5::Concurrent | ||
53 | Qt5::PrintSupport | 53 | Qt5::PrintSupport | ||
54 | Qt5::QuickWidgets | ||||
54 | Qt5::Widgets | 55 | Qt5::Widgets | ||
55 | KF5::CoreAddons | 56 | KF5::CoreAddons | ||
56 | KF5::ConfigCore | 57 | KF5::ConfigCore | ||
57 | KF5::I18n | 58 | KF5::I18n | ||
59 | KF5::Declarative | ||||
58 | KF5::KIOFileWidgets | 60 | KF5::KIOFileWidgets | ||
59 | KF5::Notifications | 61 | KF5::Notifications | ||
60 | KF5::WaylandClient | 62 | KF5::WaylandClient | ||
61 | KF5::WidgetsAddons | 63 | KF5::WidgetsAddons | ||
62 | KF5::WindowSystem | 64 | KF5::WindowSystem | ||
63 | ) | 65 | ) | ||
64 | 66 | | |||
65 | if (SCREENCAST_ENABLED) | 67 | if (SCREENCAST_ENABLED) | ||
66 | target_link_libraries(xdg-desktop-portal-kde | 68 | target_link_libraries(xdg-desktop-portal-kde | ||
67 | PipeWire::PipeWire | 69 | PipeWire::PipeWire | ||
68 | ${Epoxy_LIBRARIES} | 70 | ${Epoxy_LIBRARIES} | ||
69 | GBM::GBM) | 71 | GBM::GBM) | ||
70 | endif() | 72 | endif() | ||
71 | 73 | | |||
72 | install(TARGETS xdg-desktop-portal-kde DESTINATION ${KDE_INSTALL_LIBEXECDIR}) | 74 | install(TARGETS xdg-desktop-portal-kde DESTINATION ${KDE_INSTALL_LIBEXECDIR}) | ||
75 | | ||||
76 | install(FILES | ||||
77 | qml/AppChooserDialog.qml | ||||
78 | DESTINATION ${KDE_INSTALL_DATADIR}/xdg-desktop-portal-kde/qml) |