Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
1 | include (CheckFunctionExists) | 1 | include (CheckFunctionExists) | ||
---|---|---|---|---|---|
2 | # FIXME: temporary | ||||
3 | remove_definitions(-DQT_NO_CAST_FROM_ASCII) | ||||
4 | # FIXME: temporary | ||||
5 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-pedantic") | ||||
2 | 6 | | |||
3 | check_function_exists("strsignal" HAVE_STRSIGNAL) | 7 | check_function_exists("strsignal" HAVE_STRSIGNAL) | ||
4 | check_function_exists("uname" HAVE_UNAME) | 8 | check_function_exists("uname" HAVE_UNAME) | ||
5 | 9 | | |||
6 | if (NOT DEBUG_PACKAGE_INSTALLER_NAME) | 10 | if (NOT DEBUG_PACKAGE_INSTALLER_NAME) | ||
7 | set (DEBUG_PACKAGE_INSTALLER_NAME "installdbgsymbols.sh") | 11 | set (DEBUG_PACKAGE_INSTALLER_NAME "installdbgsymbols.sh") | ||
8 | endif () | 12 | endif () | ||
9 | 13 | | |||
10 | configure_file (config-drkonqi.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-drkonqi.h ) | 14 | configure_file (config-drkonqi.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-drkonqi.h ) | ||
11 | 15 | | |||
16 | add_subdirectory( bugzillaintegration/libbugzilla ) | ||||
12 | add_subdirectory( data ) | 17 | add_subdirectory( data ) | ||
13 | add_subdirectory( parser ) | 18 | add_subdirectory( parser ) | ||
14 | if ( WIN32 ) | 19 | if ( WIN32 ) | ||
15 | find_package(KDEWin REQUIRED) | 20 | find_package(KDEWin REQUIRED) | ||
16 | # for finding drkonqi_debug.h | 21 | # for finding drkonqi_debug.h | ||
17 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) | 22 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) | ||
18 | add_subdirectory( kdbgwin ) | 23 | add_subdirectory( kdbgwin ) | ||
19 | endif () | 24 | endif () | ||
Show All 9 Lines | 26 | set(drkonqi_SRCS | |||
29 | drkonqi.cpp | 34 | drkonqi.cpp | ||
30 | drkonqibackends.cpp | 35 | drkonqibackends.cpp | ||
31 | detachedprocessmonitor.cpp | 36 | detachedprocessmonitor.cpp | ||
32 | debugpackageinstaller.cpp | 37 | debugpackageinstaller.cpp | ||
33 | systeminformation.cpp | 38 | systeminformation.cpp | ||
34 | crashedapplication.cpp | 39 | crashedapplication.cpp | ||
35 | debugger.cpp | 40 | debugger.cpp | ||
36 | debuggerlaunchers.cpp | 41 | debuggerlaunchers.cpp | ||
42 | ptracer.cpp | ||||
37 | debuggermanager.cpp | 43 | debuggermanager.cpp | ||
38 | applicationdetailsexamples.cpp | 44 | applicationdetailsexamples.cpp | ||
39 | gdbhighlighter.cpp | 45 | gdbhighlighter.cpp | ||
40 | statusnotifier.cpp | 46 | statusnotifier.cpp | ||
41 | ) | 47 | ) | ||
42 | 48 | | |||
43 | ki18n_wrap_ui(drkonqi_SRCS | 49 | ki18n_wrap_ui(drkonqi_SRCS | ||
44 | ui/maindialog.ui | 50 | ui/maindialog.ui | ||
Show All 11 Lines | 60 | set(drkonqi_SRCS | |||
56 | bugzillaintegration/bugzillalib.cpp | 62 | bugzillaintegration/bugzillalib.cpp | ||
57 | bugzillaintegration/reportassistantdialog.cpp | 63 | bugzillaintegration/reportassistantdialog.cpp | ||
58 | bugzillaintegration/reportassistantpage.cpp | 64 | bugzillaintegration/reportassistantpage.cpp | ||
59 | bugzillaintegration/reportassistantpages_base.cpp | 65 | bugzillaintegration/reportassistantpages_base.cpp | ||
60 | bugzillaintegration/reportassistantpages_bugzilla.cpp | 66 | bugzillaintegration/reportassistantpages_bugzilla.cpp | ||
61 | bugzillaintegration/reportassistantpages_bugzilla_duplicates.cpp | 67 | bugzillaintegration/reportassistantpages_bugzilla_duplicates.cpp | ||
62 | bugzillaintegration/reportinterface.cpp | 68 | bugzillaintegration/reportinterface.cpp | ||
63 | bugzillaintegration/productmapping.cpp | 69 | bugzillaintegration/productmapping.cpp | ||
64 | bugzillaintegration/parsebugbacktraces.cpp # Requires kxmlrpcclient | 70 | bugzillaintegration/parsebugbacktraces.cpp | ||
65 | bugzillaintegration/duplicatefinderjob.cpp | 71 | bugzillaintegration/duplicatefinderjob.cpp | ||
66 | ) | 72 | ) | ||
67 | ki18n_wrap_ui(drkonqi_SRCS | 73 | ki18n_wrap_ui(drkonqi_SRCS | ||
68 | bugzillaintegration/ui/assistantpage_introduction.ui | 74 | bugzillaintegration/ui/assistantpage_introduction.ui | ||
69 | bugzillaintegration/ui/assistantpage_bugawareness.ui | 75 | bugzillaintegration/ui/assistantpage_bugawareness.ui | ||
70 | bugzillaintegration/ui/assistantpage_conclusions.ui | 76 | bugzillaintegration/ui/assistantpage_conclusions.ui | ||
71 | bugzillaintegration/ui/assistantpage_conclusions_dialog.ui | 77 | bugzillaintegration/ui/assistantpage_conclusions_dialog.ui | ||
72 | bugzillaintegration/ui/assistantpage_bugzilla_login.ui | 78 | bugzillaintegration/ui/assistantpage_bugzilla_login.ui | ||
73 | bugzillaintegration/ui/assistantpage_bugzilla_duplicates.ui | 79 | bugzillaintegration/ui/assistantpage_bugzilla_duplicates.ui | ||
74 | bugzillaintegration/ui/assistantpage_bugzilla_duplicates_dialog.ui | 80 | bugzillaintegration/ui/assistantpage_bugzilla_duplicates_dialog.ui | ||
75 | bugzillaintegration/ui/assistantpage_bugzilla_duplicates_dialog_confirmation.ui | 81 | bugzillaintegration/ui/assistantpage_bugzilla_duplicates_dialog_confirmation.ui | ||
76 | bugzillaintegration/ui/assistantpage_bugzilla_information.ui | 82 | bugzillaintegration/ui/assistantpage_bugzilla_information.ui | ||
77 | bugzillaintegration/ui/assistantpage_bugzilla_preview.ui | 83 | bugzillaintegration/ui/assistantpage_bugzilla_preview.ui | ||
78 | bugzillaintegration/ui/assistantpage_bugzilla_send.ui | 84 | bugzillaintegration/ui/assistantpage_bugzilla_send.ui | ||
79 | ) | 85 | ) | ||
80 | 86 | | |||
81 | ecm_qt_declare_logging_category(drkonqi_SRCS HEADER drkonqi_debug.h IDENTIFIER DRKONQI_LOG CATEGORY_NAME org.kde.drkonqi) | 87 | ecm_qt_declare_logging_category(drkonqi_SRCS HEADER drkonqi_debug.h IDENTIFIER DRKONQI_LOG CATEGORY_NAME org.kde.drkonqi) | ||
82 | 88 | | |||
83 | 89 | | |||
84 | add_executable(drkonqi ${drkonqi_SRCS}) | 90 | add_executable(drkonqi ${drkonqi_SRCS}) | ||
85 | ecm_mark_nongui_executable(drkonqi) | 91 | ecm_mark_nongui_executable(drkonqi) | ||
86 | 92 | | |||
87 | target_compile_definitions(drkonqi PRIVATE -DPROJECT_VERSION="${PROJECT_VERSION}") | | |||
88 | | ||||
89 | target_link_libraries(drkonqi | 93 | target_link_libraries(drkonqi | ||
90 | KF5::I18n | 94 | KF5::I18n | ||
91 | KF5::CoreAddons | 95 | KF5::CoreAddons | ||
92 | KF5::Service | 96 | KF5::Service | ||
93 | KF5::ConfigWidgets | 97 | KF5::ConfigWidgets | ||
94 | KF5::JobWidgets | 98 | KF5::JobWidgets | ||
95 | KF5::KIOCore | 99 | KF5::KIOCore | ||
96 | KF5::Crash | 100 | KF5::Crash | ||
97 | KF5::Completion | 101 | KF5::Completion | ||
98 | Qt5::DBus | 102 | Qt5::DBus | ||
99 | 103 | | |||
100 | KF5::XmlRpcClient | | |||
101 | KF5::WidgetsAddons | 104 | KF5::WidgetsAddons | ||
102 | KF5::Wallet | 105 | KF5::Wallet | ||
103 | 106 | | |||
104 | KF5::Notifications # for status notifier | 107 | KF5::Notifications # for status notifier | ||
105 | KF5::IdleTime # hide status notifier only if user saw it | 108 | KF5::IdleTime # hide status notifier only if user saw it | ||
106 | 109 | | |||
107 | drkonqi_backtrace_parser | 110 | drkonqi_backtrace_parser | ||
111 | qbugzilla | ||||
108 | ) | 112 | ) | ||
109 | if (${Qt5X11Extras_FOUND}) | 113 | if (${Qt5X11Extras_FOUND}) | ||
110 | target_link_libraries(drkonqi | 114 | target_link_libraries(drkonqi | ||
111 | Qt5::X11Extras | 115 | Qt5::X11Extras | ||
112 | ) | 116 | ) | ||
113 | endif() | 117 | endif() | ||
114 | if (APPLE) | 118 | if (APPLE) | ||
115 | target_link_libraries(drkonqi | 119 | target_link_libraries(drkonqi | ||
116 | KF5::WindowSystem | 120 | KF5::WindowSystem | ||
117 | ) | 121 | ) | ||
118 | endif() | 122 | endif() | ||
119 | 123 | | |||
120 | if (WIN32) | 124 | if (WIN32) | ||
121 | target_link_libraries(drkonqi kdewin) | 125 | target_link_libraries(drkonqi kdewin) | ||
122 | endif() | 126 | endif() | ||
123 | 127 | | |||
124 | install(TARGETS drkonqi DESTINATION ${KDE_INSTALL_LIBEXECDIR}) | 128 | install(TARGETS drkonqi DESTINATION ${KDE_INSTALL_LIBEXECDIR}) | ||
125 | configure_file(org.kde.drkonqi.desktop.cmake ${CMAKE_BINARY_DIR}/src/org.kde.drkonqi.desktop) | 129 | configure_file(org.kde.drkonqi.desktop.cmake ${CMAKE_BINARY_DIR}/src/org.kde.drkonqi.desktop) | ||
126 | install(PROGRAMS ${CMAKE_BINARY_DIR}/src/org.kde.drkonqi.desktop DESTINATION ${KDE_INSTALL_APPDIR}) | 130 | install(PROGRAMS ${CMAKE_BINARY_DIR}/src/org.kde.drkonqi.desktop DESTINATION ${KDE_INSTALL_APPDIR}) | ||
127 | 131 | | |||
132 | #add_subdirectory( tests ) | ||||
128 | 133 | | |||
129 | # Only go into tests once we have a drkonqi target so the tests can reference | 134 | add_subdirectory(bugzillaintegration/libbugzilla/autotests) | ||
130 | # it. | | |||
131 | add_subdirectory( tests ) | |