From 4a226dc94f03a8bc262c537263ad536306897c48 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Tue, 23 Oct 2018 17:30:18 +0200 Subject: Fix plasma dependency --- src/meson.build | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/meson.build') diff --git a/src/meson.build b/src/meson.build index 0af2be0..99231d2 100644 --- a/src/meson.build +++ b/src/meson.build @@ -9,14 +9,18 @@ poi_moc = qt5.preprocess( dependencies: dep_qt5 ) -features = [] -if dep_breakpad.found() - features += '-DBreakpadEnabled' +optdepends = [] +if get_option('Breakpad').enabled() + optdepends += dep_breakpad +endif + +if get_option('Plasma').enabled() + optdepends += dep_plasma endif poi = executable('poi', install: true, - cpp_args: ['-DQAPPLICATION_CLASS=QApplication', features], - dependencies: [dep_qt5, dep_boost, dep_breakpad, dep_thread, dep_SingleApplication, + cpp_args: ['-DQAPPLICATION_CLASS=QApplication'], + dependencies: [dep_qt5, dep_boost, dep_SingleApplication, optdepends, dep_about, dep_addressbar, dep_bookmarks, dep_configuration, dep_downloads, dep_urlfilter, dep_web], include_directories: [include, genheader_inc], sources: ['main.cpp', poi_moc, @@ -31,12 +35,12 @@ poi = executable('poi', install: true, 'subwindow/subwindow.cpp', 'subwindow/tabwidget.cpp', - + 'webengine/filter.cpp', 'webengine/urlinterceptor.cpp', 'webengine/webpage.cpp', 'webengine/webview.cpp', - + 'wallet/wallet.cpp', 'wallet/wallet.h'] ) -- cgit v1.2.1