[libgee/meson: 12/24] Meson: added basic build system configuration



commit a7dee637fbb6e07e4b56b2b02d9727dd8264e2be
Author: Daniel Espinosa <daniel espinosa pwmc mx>
Date:   Thu May 11 15:01:01 2017 -0500

    Meson: added basic build system configuration

 gee.deps.in       |   1 +
 gee/meson.build   | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 meson.build       |  40 +++++++++++++++++
 utils/meson.build |  12 ++++++
 4 files changed, 179 insertions(+)
---
diff --git a/gee.deps.in b/gee.deps.in
new file mode 100644
index 0000000..ff7dc3f
--- /dev/null
+++ b/gee.deps.in
@@ -0,0 +1 @@
+@VALADEPS@
diff --git a/gee/meson.build b/gee/meson.build
new file mode 100644
index 0000000..b4be4ac
--- /dev/null
+++ b/gee/meson.build
@@ -0,0 +1,126 @@
+
+# TODO: port to use API_VERSION in namespace declaration
+#nsinfo = configure_file(input : 'namespace-info.vala.in',
+#      output : 'namespace-info.vala',
+#      configuration : conf)
+#namespaceinfo_dep = declare_dependency (sources : nsinfo)
+
+# TODO: Add translation support
+#confh = configuration_data ()
+#confh.set_quoted('PACKAGE_LOCALE_DIR', join_paths(get_option('prefix'), get_option('datadir'), 'locale'))
+#confh.set_quoted('GETTEXT_PACKAGE', 'GXml')
+#configure_file(output : 'config.h',
+#      configuration : confh)
+
+
+valasources = files ([
+       'assemblyinfo.vala',
+       'abstractbidirlist.vala',
+       'abstractbidirsortedset.vala',
+       'abstractbidirsortedmap.vala',
+       'abstractcollection.vala',
+       'abstractlist.vala',
+       'abstractmap.vala',
+       'abstractmultimap.vala',
+       'abstractmultiset.vala',
+       'abstractqueue.vala',
+       'abstractset.vala',
+       'abstractsortedmap.vala',
+       'abstractsortedset.vala',
+       'arraylist.vala',
+       'arrayqueue.vala',
+       'bidiriterator.vala',
+       'bidirlist.vala',
+       'bidirlistiterator.vala',
+       'bidirmapiterator.vala',
+       'bidirsortedset.vala',
+       'bidirsortedmap.vala',
+       'collection.vala',
+       'comparable.vala',
+       'concurrentlist.vala',
+       'concurrentset.vala',
+       'deque.vala',
+       'functions.vala',
+       'future.vala',
+       'hashable.vala',
+       'hashmap.vala',
+       'hashmultimap.vala',
+       'hashmultiset.vala',
+       'hashset.vala',
+       'hazardpointer.vala',
+       'iterable.vala',
+       'iterator.vala',
+       'lazy.vala',
+       'linkedlist.vala',
+       'lightmapfuture.vala',
+       'list.vala',
+       'listiterator.vala',
+       'map.vala',
+       'mapiterator.vala',
+       'multimap.vala',
+       'multiset.vala',
+       'priorityqueue.vala',
+       'promise.vala',
+       'queue.vala',
+       'readonlybidirlist.vala',
+       'readonlybidirsortedset.vala',
+       'readonlybidirsortedmap.vala',
+       'readonlycollection.vala',
+       'readonlylist.vala',
+       'readonlymap.vala',
+       'readonlymultimap.vala',
+       'readonlymultiset.vala',
+       'readonlyset.vala',
+       'readonlysortedmap.vala',
+       'readonlysortedset.vala',
+       'set.vala',
+       'sortedmap.vala',
+       'sortedset.vala',
+       'streamiterator.vala',
+       'task.vala',
+       'teeiterator.vala',
+       'timsort.vala',
+       'traversable.vala',
+       'treemap.vala',
+       'treemultimap.vala',
+       'treemultiset.vala',
+       'treeset.vala',
+       'unfolditerator.vala',
+       'unrolledlinkedlist.vala'
+])
+
+sources = files ([])
+
+includehdir = include_directories ('.')
+
+gee = library('gee-@0@'.format(API_VERSION),
+       valasources + sources + utilsf + utilsvapi,
+       version : VERSION,
+       vala_header : 'gee.h',
+       vala_vapi : 'gee-@0@.vapi'.format(API_VERSION),
+       vala_gir : 'Gee-@0@.gir'.format(API_VERSION),
+       dependencies : [ gio, include_utils_h_dir_dep ],
+       vala_args : [
+               '--internal-header=gee-internals.h',
+               '--internal-vapi=vapi gee-internals-0.8.vapi'
+       ],
+       install : true,
+       install_dir : [
+               get_option('libdir'),
+               join_paths (get_option('includedir'),'gee-@0@'.format (API_VERSION)),
+               vapidir,
+               true
+       ])
+
+g_ir_compiler = find_program('g-ir-compiler')
+custom_target('typelib',
+       command: [
+               g_ir_compiler,
+               '--shared-library', 'libgee-@0@.so'.format (API_VERSION),
+               '--output', '@OUTPUT@',
+               join_paths(meson.current_build_dir(), 'Gee-@0@.gir'.format(API_VERSION))
+       ],
+       output: 'Gee-@0@.typelib'.format(API_VERSION),
+       depends: gee,
+       install: true,
+       install_dir: join_paths(get_option('libdir'), 'girepository-1.0'))
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..e2c7e7c
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,40 @@
+project('libgee', [ 'vala', 'c'])
+
+gio = dependency('gio-2.0')
+
+VALADEPS = 'gio-2.0'
+PCDEPS = 'gio-2.0'
+
+API_VERSION = '0.8'
+VERSION = '0.20.0'
+
+conf = configuration_data()
+conf.set('prefix', get_option('prefix'))
+conf.set('exec_prefix', get_option('prefix'))
+conf.set('libdir', join_paths (get_option ('prefix'),get_option ('libdir')))
+conf.set('includedir', get_option ('includedir'))
+conf.set('VALADEPS', VALADEPS)
+conf.set('PCDEPS', PCDEPS)
+conf.set('VERSION', VERSION)
+conf.set('API_VERSION', API_VERSION)
+
+configure_file(input : 'gee-0.8.pc.in',
+       output : 'gee-@0@.pc'.format(API_VERSION),
+       configuration : conf,
+       install : true,
+       install_dir : join_paths(get_option('libdir'), 'pkgconfig'))
+
+vapidir = join_paths (get_option('datadir'),'vala','vapi')
+
+configure_file(input : 'gee.deps.in',
+       output : 'gee-@0@.deps'.format(API_VERSION),
+       configuration : conf,
+       install : true,
+       install_dir : vapidir)
+
+
+
+subdir('utils')
+subdir('gee')
+#subdir('doc')
+#subdir('tests')
diff --git a/utils/meson.build b/utils/meson.build
new file mode 100644
index 0000000..b3ae2ce
--- /dev/null
+++ b/utils/meson.build
@@ -0,0 +1,12 @@
+utilsf = files ([
+       'assume.h',
+       'async.h',
+       'free.h',
+       'misc.h',
+       'geeutils.vapi'])
+utilsvapi = files (['geeutils.vapi'])
+
+
+include_utils_h_dir = include_directories ('.')
+
+include_utils_h_dir_dep = declare_dependency (include_directories : include_utils_h_dir)


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