Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Multimedia
Kdenlive
Commits
04ee4fa9
Commit
04ee4fa9
authored
Nov 02, 2017
by
Vincent Pinon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make KCrash optional
parent
9041c04c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
CMakeLists.txt
CMakeLists.txt
+2
-2
src/CMakeLists.txt
src/CMakeLists.txt
+5
-1
src/main.cpp
src/main.cpp
+4
-0
No files found.
CMakeLists.txt
View file @
04ee4fa9
...
...
@@ -90,8 +90,8 @@ else()
endif
()
find_package
(
KF5 REQUIRED COMPONENTS Archive Bookmarks CoreAddons Config ConfigWidgets
DBusAddons KIO WidgetsAddons NotifyConfig NewStuff XmlGui Notifications GuiAddons TextWidgets IconThemes
Crash
OPTIONAL_COMPONENTS DocTools FileMetaData
)
DBusAddons KIO WidgetsAddons NotifyConfig NewStuff XmlGui Notifications GuiAddons TextWidgets IconThemes
OPTIONAL_COMPONENTS DocTools FileMetaData
Crash
)
if
(
KF5FileMetaData_FOUND
)
message
(
STATUS
"Found KF5 FileMetadata to extract file metadata"
)
...
...
src/CMakeLists.txt
View file @
04ee4fa9
...
...
@@ -277,7 +277,6 @@ target_link_libraries(kdenlive
KF5::Notifications
KF5::TextWidgets
KF5::IconThemes
KF5::Crash
Qt5::Svg
${
OPENGL_LIBRARIES
}
${
OPENGLES_LIBRARIES
}
...
...
@@ -295,6 +294,11 @@ if (KF5_FILEMETADATA)
target_link_libraries
(
kdenlive KF5::FileMetaData
)
endif
()
if
(
KF5Crash_FOUND
)
add_definitions
(
-DKF5_USE_CRASH
)
target_link_libraries
(
kdenlive KF5::Crash
)
endif
()
qt5_use_modules
(
kdenlive Script Widgets Concurrent Qml Quick
)
if
(
Qt5WebKitWidgets_FOUND
)
...
...
src/main.cpp
View file @
04ee4fa9
...
...
@@ -26,7 +26,9 @@
#include "kxmlgui_version.h"
#include <KAboutData>
#ifdef KF5_USE_CRASH
#include <KCrash>
#endif
#include <KIconLoader>
#include <KSharedConfig>
#include <KConfigGroup>
...
...
@@ -142,7 +144,9 @@ int main(int argc, char *argv[])
parser
.
process
(
app
);
aboutData
.
processCommandLine
(
&
parser
);
#ifdef KF5_USE_CRASH
KCrash
::
initialize
();
#endif
QString
clipsToLoad
=
parser
.
value
(
QStringLiteral
(
"i"
));
QString
mltPath
=
parser
.
value
(
QStringLiteral
(
"mlt-path"
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment