[gnote/meson: 1/5] Add meson build for libgnote
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote/meson: 1/5] Add meson build for libgnote
- Date: Sat, 27 Mar 2021 14:44:35 +0000 (UTC)
commit 848eb29a41a5fb24771eafd0494692d7b5af0d01
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Mar 27 16:14:52 2021 +0200
Add meson build for libgnote
config.h.in | 6 +++++
meson.build | 33 +++++++++++++++++++++++++
src/meson.build | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 116 insertions(+)
---
diff --git a/config.h.in b/config.h.in
new file mode 100644
index 00000000..fe2e4b1d
--- /dev/null
+++ b/config.h.in
@@ -0,0 +1,6 @@
+#define LIBGNOTE_RELEASE "@libgnote_release@"
+#define LIBGNOTE_VERSION_INFO "@libgnote_version_info@"
+#define LIBDIR "@libdir@"
+#define PACKAGE_NAME "@package_name@"
+#define PACKAGE_VERSION "@package_version@"
+
diff --git a/meson.build b/meson.build
new file mode 100644
index 00000000..8dba87fd
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,33 @@
+project('gnote', 'cpp', version: '41.alpha')
+
+version = meson.project_version().split('.')[0]
+libgnote_version_info = '0.0.0'
+
+dependencies = [
+ dependency('glibmm-2.4', version: '>2.62'),
+ dependency('giomm-2.4', version: '>2.62'),
+ dependency('gtkmm-3.0', version: '>3.22.20'),
+ dependency('libsecret-1', version: '>0.8'),
+ dependency('libxml-2.0'),
+ dependency('libxslt'),
+ dependency('uuid'),
+]
+
+
+conf_data = configuration_data()
+conf_data.set('package_name', 'gnote')
+conf_data.set('package_version', version)
+conf_data.set('libgnote_release', version)
+conf_data.set('libgnote_version_info', libgnote_version_info)
+conf_data.set('libdir', get_option('prefix') / get_option('libdir'))
+
+configure_file(
+ input: 'config.h.in',
+ output: 'config.h',
+ configuration: conf_data,
+)
+
+root_include_dir = include_directories('.')
+
+subdir('src')
+
diff --git a/src/meson.build b/src/meson.build
new file mode 100644
index 00000000..d11fe8cc
--- /dev/null
+++ b/src/meson.build
@@ -0,0 +1,77 @@
+libgnote_sources = [
+ 'gnome_keyring/ring.cpp',
+ 'sharp/datetime.cpp',
+ 'sharp/dynamicmodule.cpp',
+ 'sharp/directory.cpp',
+ 'sharp/exception.cpp',
+ 'sharp/fileinfo.cpp',
+ 'sharp/files.cpp',
+ 'sharp/modulemanager.cpp',
+ 'sharp/propertyeditor.cpp',
+ 'sharp/streamreader.cpp',
+ 'sharp/streamwriter.cpp',
+ 'sharp/string.cpp',
+ 'sharp/timespan.cpp',
+ 'sharp/uri.cpp',
+ 'sharp/xml.cpp',
+ 'sharp/xmlconvert.cpp',
+ 'sharp/xmlreader.cpp',
+ 'sharp/xmlwriter.cpp',
+ 'sharp/xsltargumentlist.cpp',
+ 'sharp/xsltransform.cpp',
+ 'abstractaddin.cpp',
+ 'addininfo.cpp',
+ 'addinmanager.cpp',
+ 'addinpreferencefactory.cpp',
+ 'applicationaddin.cpp',
+ 'contrast.cpp',
+ 'debug.cpp',
+ 'iactionmanager.cpp',
+ 'iconmanager.cpp',
+ 'ignote.cpp',
+ 'itagmanager.cpp',
+ 'importaddin.cpp',
+ 'mainwindow.cpp',
+ 'mainwindowaction.cpp',
+ 'mainwindowembeds.cpp',
+ 'noteaddin.cpp',
+ 'notebase.cpp',
+ 'notebuffer.cpp',
+ 'noteeditor.cpp',
+ 'notemanager.cpp',
+ 'notemanagerbase.cpp',
+ 'noterenamedialog.cpp',
+ 'notetag.cpp',
+ 'note.cpp',
+ 'notewindow.cpp',
+ 'popoverwidgets.cpp',
+ 'preferences.cpp',
+ 'search.cpp',
+ 'tag.cpp',
+ 'tagmanager.cpp',
+ 'undo.cpp',
+ 'utils.cpp',
+ 'watchers.cpp',
+ 'notebooks/createnotebookdialog.cpp',
+ 'notebooks/notebook.cpp',
+ 'notebooks/notebookapplicationaddin.cpp',
+ 'notebooks/notebookmanager.cpp',
+ 'notebooks/notebookmenuitem.cpp',
+ 'notebooks/notebooknewnotemenuitem.cpp',
+ 'notebooks/notebooknoteaddin.cpp',
+ 'notebooks/specialnotebooks.cpp',
+ 'synchronization/filesystemsyncserver.cpp',
+ 'synchronization/gvfssyncservice.cpp',
+ 'synchronization/isyncmanager.cpp',
+ 'synchronization/syncui.cpp',
+ 'synchronization/syncutils.cpp',
+ 'synchronization/syncserviceaddin.cpp',
+]
+
+libgnote_shared_lib = shared_library(
+ 'gnote-@0@'.format(version),
+ libgnote_sources,
+ dependencies: dependencies,
+ include_directories: root_include_dir,
+)
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]