aboutsummaryrefslogtreecommitdiff
path: root/lib/about
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-10-23 03:58:33 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-10-23 03:58:33 +0200
commit6673ba53c17bb1ab99a1e7629156d99452213747 (patch)
tree70cf515693ed51c5537dc5fb178e5d938862bd35 /lib/about
parentAdblockRule constructor (diff)
downloadsmolbote-6673ba53c17bb1ab99a1e7629156d99452213747.tar.xz
Initial meson build files
Diffstat (limited to 'lib/about')
-rw-r--r--lib/about/aboutdialog.cpp4
-rw-r--r--lib/about/meson.build17
2 files changed, 18 insertions, 3 deletions
diff --git a/lib/about/aboutdialog.cpp b/lib/about/aboutdialog.cpp
index c7ed385..555a69f 100644
--- a/lib/about/aboutdialog.cpp
+++ b/lib/about/aboutdialog.cpp
@@ -9,8 +9,6 @@
#include "aboutdialog.h"
#include "ui_aboutdialog.h"
#include <version.h>
-#include <QtWebEngine/QtWebEngineVersion>
-#include <boost/version.hpp>
// compiler
// clang also defines __GNUC__, so we need to check for clang first
@@ -36,7 +34,7 @@ AboutDialog::AboutDialog(QWidget *parent)
ui->aboutLabel->setText(tr("<h2>smolbote %1</h2>"
"<p><i>yet another no-frills browser</i></p>"
"<p>This program is free software, see <i>License</i> for more information.</p>"
- "<p>This program uses free software: Qt " QT_VERSION_STR " and Boost " BOOST_LIB_VERSION "</p>")
+ "<p>This program uses free software: Qt5, Boost</p>")
.arg(qApp->applicationVersion()));
ui->licenseLabel->setText(tr("<p>Copyright 2017 - 2018 aqua</p>"
diff --git a/lib/about/meson.build b/lib/about/meson.build
new file mode 100644
index 0000000..38769a8
--- /dev/null
+++ b/lib/about/meson.build
@@ -0,0 +1,17 @@
+about_moc = qt5.preprocess(
+ moc_headers: ['aboutdialog.h'],
+ ui_files: ['aboutdialog.ui'],
+ dependencies: dep_qt5
+)
+
+about_inc = include_directories('.')
+about_lib = static_library('about', ['aboutdialog.cpp', about_moc],
+ dependencies: dep_qt5,
+ include_directories: genheader_inc
+)
+
+dep_about = declare_dependency(
+ include_directories: about_inc,
+ link_with: about_lib,
+ sources: ['aboutdialog.cpp', about_moc]
+)