aboutsummaryrefslogtreecommitdiff
path: root/lib
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
parentAdblockRule constructor (diff)
downloadsmolbote-6673ba53c17bb1ab99a1e7629156d99452213747.tar.xz
Initial meson build files
Diffstat (limited to 'lib')
-rw-r--r--lib/about/aboutdialog.cpp4
-rw-r--r--lib/about/meson.build17
-rw-r--r--lib/addressbar/meson.build16
-rw-r--r--lib/bookmarks/meson.build23
-rw-r--r--lib/configuration/meson.build11
-rw-r--r--lib/downloads/meson.build19
-rw-r--r--lib/urlfilter/meson.build17
-rw-r--r--lib/web/meson.build16
8 files changed, 120 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]
+)
diff --git a/lib/addressbar/meson.build b/lib/addressbar/meson.build
new file mode 100644
index 0000000..de54352
--- /dev/null
+++ b/lib/addressbar/meson.build
@@ -0,0 +1,16 @@
+addressbar_inc = include_directories('.')
+addressbar_moc = qt5.preprocess(
+ moc_headers: ['addressbar.h', 'completer.h', 'urllineedit.h'],
+ ui_files: ['addressbar.ui'],
+ dependencies: dep_qt5
+)
+
+addressbar_lib = static_library('addressbar', ['addressbar.cpp', 'completer.cpp', 'urllineedit.cpp', addressbar_moc],
+ dependencies: dep_qt5,
+)
+
+dep_addressbar = declare_dependency(
+ include_directories: addressbar_inc,
+ link_with: addressbar_lib,
+ sources: ['addressbar.cpp', 'completer.cpp', 'urllineedit.cpp', addressbar_moc]
+)
diff --git a/lib/bookmarks/meson.build b/lib/bookmarks/meson.build
new file mode 100644
index 0000000..faaa154
--- /dev/null
+++ b/lib/bookmarks/meson.build
@@ -0,0 +1,23 @@
+bookmarks_inc = include_directories('.')
+bookmarks_moc = qt5.preprocess(
+ moc_headers: ['bookmarkswidget.h', 'model/bookmarkitem.h', 'model/bookmarkmodel.h', 'forms/editbookmarkdialog.h'],
+ ui_files: ['bookmarksform.ui', 'forms/editbookmarkdialog.ui'],
+ dependencies: dep_qt5
+)
+
+bookmarks_lib = static_library('bookmarks',
+ ['bookmarkswidget.cpp', bookmarks_moc,
+ 'xbel.cpp', 'xbel.h',
+ 'model/bookmarkitem.cpp', 'model/bookmarkmodel.cpp',
+ 'forms/editbookmarkdialog.cpp'],
+ dependencies: dep_qt5
+)
+
+dep_bookmarks = declare_dependency(
+ include_directories: bookmarks_inc,
+ link_with: bookmarks_lib,
+ sources: ['bookmarkswidget.cpp', bookmarks_moc,
+ 'xbel.cpp', 'xbel.h',
+ 'model/bookmarkitem.cpp', 'model/bookmarkmodel.cpp',
+ 'forms/editbookmarkdialog.cpp']
+)
diff --git a/lib/configuration/meson.build b/lib/configuration/meson.build
new file mode 100644
index 0000000..ea78f8d
--- /dev/null
+++ b/lib/configuration/meson.build
@@ -0,0 +1,11 @@
+configuration_inc = include_directories('.')
+configuration_lib = static_library('configuration', ['configuration.cpp', 'configuration.h'],
+ dependencies: [dep_boost, dep_qt5],
+ include_directories: genheader_inc
+)
+
+dep_configuration = declare_dependency(
+ include_directories: configuration_inc,
+ link_with: configuration_lib,
+ sources: ['configuration.cpp', 'configuration.h']
+)
diff --git a/lib/downloads/meson.build b/lib/downloads/meson.build
new file mode 100644
index 0000000..761ab78
--- /dev/null
+++ b/lib/downloads/meson.build
@@ -0,0 +1,19 @@
+downloads_inc = include_directories('.')
+downloads_moc = qt5.preprocess(
+ moc_headers: ['downloadswidget.h', 'widgets/downloaditemwidget.h', 'widgets/elidedlabel.h'],
+ ui_files: ['downloadsform.ui', 'widgets/downloaditemform.ui'],
+ dependencies: dep_qt5
+)
+
+downloads_lib = static_library('downloads',
+ ['downloadswidget.cpp', downloads_moc,
+ 'widgets/downloaditemwidget.cpp', 'widgets/elidedlabel.cpp'],
+ dependencies: dep_qt5
+)
+
+dep_downloads = declare_dependency(
+ include_directories: downloads_inc,
+ link_with: downloads_lib,
+ sources: ['downloadswidget.cpp', downloads_moc,
+ 'widgets/downloaditemwidget.cpp', 'widgets/elidedlabel.cpp']
+)
diff --git a/lib/urlfilter/meson.build b/lib/urlfilter/meson.build
new file mode 100644
index 0000000..9178d1c
--- /dev/null
+++ b/lib/urlfilter/meson.build
@@ -0,0 +1,17 @@
+urlfilter_inc = include_directories('.')
+urlfilter_lib = static_library('urlfilter',
+ ['filtertree.cpp', 'filtertree.h', 'filterleaf.cpp', 'filterleaf.h',
+ 'domain.cpp', 'domain.h',
+ 'formats/adblockrule.cpp', 'formats/adblockrule.h',
+ 'formats/hostlistrule.cpp', 'formats/hostlistrule.h'],
+ dependencies: dep_qt5
+)
+
+dep_urlfilter = declare_dependency(
+ include_directories: urlfilter_inc,
+ link_with: urlfilter_lib,
+ sources: ['filtertree.cpp', 'filtertree.h', 'filterleaf.cpp', 'filterleaf.h',
+ 'domain.cpp', 'domain.h',
+ 'formats/adblockrule.cpp', 'formats/adblockrule.h',
+ 'formats/hostlistrule.cpp', 'formats/hostlistrule.h']
+)
diff --git a/lib/web/meson.build b/lib/web/meson.build
new file mode 100644
index 0000000..55534d3
--- /dev/null
+++ b/lib/web/meson.build
@@ -0,0 +1,16 @@
+web_inc = include_directories('.')
+web_moc = qt5.preprocess(
+ moc_headers: ['profilemanager.h', 'webprofile.h'],
+ dependencies: dep_qt5
+)
+web_lib = static_library('web',
+ ['profilemanager.cpp', 'webprofile.cpp', web_moc],
+ dependencies: dep_qt5,
+ include_directories: include
+)
+
+dep_web = declare_dependency(
+ include_directories: web_inc,
+ link_with: web_lib,
+ sources: ['profilemanager.cpp', 'webprofile.cpp', web_moc]
+)