[gnome-maps/wip/mlundblad/meson] WIP: Implement Meson build support



commit 320cc522170b69f1bf056423ff4ba0f34b8becaa
Author: Marcus Lundblad <ml update uu se>
Date:   Wed Feb 21 21:39:24 2018 +0100

    WIP: Implement Meson build support

 .gitignore      |    2 ++
 meson.build     |   40 ++++++++++++++++++++++++++++++++++++++++
 src/meson.build |   22 ++++++++++++++++++++++
 3 files changed, 64 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 139180b..b7aecf8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -45,3 +45,5 @@ src/org.gnome.Maps.service
 /lib/GnomeMaps-1.0.gir
 /lib/GnomeMaps-1.0.typelib
 /lib/maps-enum-types.[ch]
+
+build/
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..9b519de
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,40 @@
+project('gnome-maps', 'c',
+       version: '3.27.90',
+       license: 'GPL2+'
+)
+
+app_id = 'org.gnome.Maps'
+gnome = import('gnome')
+i18n = import('i18n')
+
+prefix = get_option('prefix')
+name = meson.project_name()
+version = meson.project_version()
+
+bindir = join_paths(prefix, get_option('bindir'))
+libdir = join_paths(prefix, get_option('libdir'))
+datadir = join_paths(prefix, get_option('datadir'))
+pkgdatadir = join_paths(datadir, name)
+
+desktop_file_validate = find_program('desktop-file-validate', required: false)
+appstream_util = find_program('appstream-util', required: false)
+
+gio = dependency('gio-2.0', version: '>= 2.44.0')
+gjs = dependency('gjs-1.0', version: '>= 1.40.0')
+girepository = dependency('gobject-introspection-1.0', version: '>= 0.10.1')
+gtk3 = dependency('gtk+-3.0', version: '>= 3.22.0')
+geoclue2 = dependency('geoclue-2.0', version: '>= 0.12.99')
+gee = dependency('gee-0.8', version: '>= 0.16.0')
+folks = dependency('folks', version: '>= 0.10.0')
+geocodeglib = dependency('geocode-glib-1.0', version: '>= 3.15.2')
+champlain = dependency('champlain-0.12', version: '>= 0.12.14')
+libxml = dependency('libxml-2.0')
+rest = dependency('rest-0.7', version: '>= 0.7.90')
+
+cc = meson.get_compiler('c')
+
+subdir('src')
+#subdir('lib')
+#subdir('data')
+#subdir('po')
+#subdir('scripts')
diff --git a/src/meson.build b/src/meson.build
new file mode 100644
index 0000000..2314bed
--- /dev/null
+++ b/src/meson.build
@@ -0,0 +1,22 @@
+script_conf = configuration_data()
+script_conf.set('GJS', find_program('gjs').path())
+script_conf.set('PACKAGE_VERSION', version)
+script_conf.set('libdir', libdir)
+script_conf.set('prefix', prefix)
+
+configure_file(
+       input: app_id + '.in',
+       output: name,
+       configuration: script_conf,
+       install: true,
+       install_dir: pkgdatadir
+)
+
+gnome.compile_resources(
+       app_id + '.src',
+       app_id + '.src.gresource.xml',
+       gresource_bundle: true,
+       install: true,
+       install_dir: pkgdatadir,
+       source_dir: 'geojson-vt'
+)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]