[amtk/meson-msvc: 16/22] Meson: Add initial build system
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [amtk/meson-msvc: 16/22] Meson: Add initial build system
- Date: Wed, 1 Jul 2020 08:28:49 +0000 (UTC)
commit 7b4a0de727985ee2df96e865dd9a210e1d9af869
Author: Xavier Claessens <xavier claessens collabora com>
Date: Mon Jan 6 11:34:04 2020 -0500
Meson: Add initial build system
amtk/meson.build | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
meson.build | 13 ++++++++++++
2 files changed, 73 insertions(+)
---
diff --git a/amtk/meson.build b/amtk/meson.build
new file mode 100644
index 0000000..a5d78e0
--- /dev/null
+++ b/amtk/meson.build
@@ -0,0 +1,60 @@
+amtk_public_headers = files(
+ 'amtk.h',
+ 'amtk-action-info.h',
+ 'amtk-action-info-central-store.h',
+ 'amtk-action-info-store.h',
+ 'amtk-action-map.h',
+ 'amtk-application-window.h',
+ 'amtk-factory.h',
+ 'amtk-gmenu.h',
+ 'amtk-init.h',
+ 'amtk-menu-item.h',
+ 'amtk-menu-shell.h',
+ 'amtk-shortcuts.h',
+ 'amtk-types.h',
+ 'amtk-utils.h',
+)
+
+amtk_sources = files(
+ 'amtk-action-info.c',
+ 'amtk-action-info-central-store.c',
+ 'amtk-action-info-store.c',
+ 'amtk-action-map.c',
+ 'amtk-application-window.c',
+ 'amtk-factory.c',
+ 'amtk-gmenu.c',
+ 'amtk-init.c',
+ 'amtk-menu-item.c',
+ 'amtk-menu-shell.c',
+ 'amtk-shortcuts.c',
+ 'amtk-utils.c',
+)
+
+amtk_enums = gnome.mkenums_simple('amtk-enum-types', sources : amtk_public_headers)
+
+amtk_conf = configuration_data()
+amtk_conf.set_quoted('GETTEXT_PACKAGE', 'amtk-5')
+configure_file(output : 'config.h', configuration : amtk_conf)
+
+cargs = [
+ '-DDATADIR="@0@"'.format(get_option('prefix') / get_option('datadir')),
+ '-DG_LOG_DOMAIN="Amtk"',
+ '-DAMTK_COMPILATION',
+]
+
+deps = [
+ dependency('gtk+-3.0', version : '>=3.22'),
+]
+
+amtk_incdir = include_directories('..')
+
+libamtk = library('amtk', amtk_sources, amtk_enums,
+ c_args : cargs,
+ dependencies : deps,
+ include_directories : amtk_incdir,
+)
+
+amtk_dep = declare_dependency(link_with : libamtk,
+ include_directories : amtk_incdir)
+
+pkg.generate(libamtk)
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..294ea94
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,13 @@
+project('amtk', 'c',
+ version : '5.0.1',
+ meson_version : '>=0.52',
+ default_options : [
+ 'buildtype=debugoptimized',
+ 'warning_level=1',
+ ]
+)
+
+gnome = import('gnome')
+pkg = import('pkgconfig')
+
+subdir('amtk')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]