[libgda] Meson: build GObject Introspection metadata



commit 93597c744a58574261d96492f2004f41b3333d47
Author: Daniel Espinosa <esodan gmail com>
Date:   Thu Jul 5 21:09:56 2018 -0500

    Meson: build GObject Introspection metadata

 libgda/meson.build                   | 23 +++++++++++++++++++++++
 libgda/providers-support/meson.build | 13 +++++++++++--
 libgda/sql-parser/meson.build        | 10 +++++++++-
 libgda/thread-wrapper/meson.build    | 22 +++++++++++++++++-----
 4 files changed, 60 insertions(+), 8 deletions(-)
---
diff --git a/libgda/meson.build b/libgda/meson.build
index 2e5fd14b4..117e1465c 100644
--- a/libgda/meson.build
+++ b/libgda/meson.build
@@ -231,6 +231,29 @@ libgda = library(
        install : true
        )
 
+# GObject Introspection
+gi_sources = []
+gi_sources += psupport_gi_sources
+gi_sources += threadwrapper_gi_sources
+gi_sources += sql_parser_gi_sources
+gi_sources += libgda_handlers_sources
+
+gnome_module.generate_gir(libgda,
+       sources: gi_sources,
+       namespace: 'Gda',
+       identifier_prefix: 'Gda',
+       nsversion: project_api_version,
+       header: 'libgda.h',
+       includes: [
+               'GObject-2.0',
+               'libxml2-2.0'
+               ],
+       dependencies: libgda_dep,
+       install: true,
+       install_dir_gir: join_paths(get_option('datadir'), 'gir-1.0'),
+       install_dir_typelib: join_paths(get_option('libdir'), 'girepository-1.0')
+       )
+
 # Tests
 tco = executable('test_cnc_open', 'test-cnc-open.c',
        dependencies: [
diff --git a/libgda/providers-support/meson.build b/libgda/providers-support/meson.build
index 602309e26..ab36ee63a 100644
--- a/libgda/providers-support/meson.build
+++ b/libgda/providers-support/meson.build
@@ -1,12 +1,21 @@
 psupport_headers = files([
-       'gda-data-select-priv.h',
        'gda-pstmt.h',
+])
+psupport_headers_priv = files([
+       'gda-data-select-priv.h',
        'gda-meta-column-types.h'
 ])
 
-libgda_psupport_sources = files([
+psupport_sources = files([
        'gda-pstmt.c'
 ])
 
+psupport_gi_sources = []
+psupport_gi_sources += psupport_headers
+psupport_gi_sources += psupport_sources
+
+libgda_psupport_sources = []
+libgda_psupport_sources += psupport_sources
 libgda_psupport_sources += psupport_headers
+libgda_psupport_sources += psupport_headers_priv
        
\ No newline at end of file
diff --git a/libgda/sql-parser/meson.build b/libgda/sql-parser/meson.build
index a61e1fa51..659b9684c 100644
--- a/libgda/sql-parser/meson.build
+++ b/libgda/sql-parser/meson.build
@@ -105,7 +105,7 @@ token_types = custom_target('token_types',
 #     sources : libgda_sql_parser_headers
 #     )
 
-libgda_sql_parser_sources = files ([
+sql_parser_sources = files ([
        'gda-sql-parser-private.h',
        'gda-sql-parser.c',
        'gda-statement-struct.c',
@@ -121,7 +121,15 @@ libgda_sql_parser_sources = files ([
        'gda-statement-struct-util.c'
        ])
 
+sql_parser_gi_sources = []
+sql_parser_gi_sources += [
+       sql_parser_sources,
+       libgda_sql_parser_headers
+       ]
+
+libgda_sql_parser_sources = []
 libgda_sql_parser_sources += [
+                       sql_parser_sources,
                        libgda_sql_parser_headers,
                        gda_sql_parser_enums,
                        lemon_parserc,
diff --git a/libgda/thread-wrapper/meson.build b/libgda/thread-wrapper/meson.build
index 7dc3430bb..4032a038a 100644
--- a/libgda/thread-wrapper/meson.build
+++ b/libgda/thread-wrapper/meson.build
@@ -1,18 +1,30 @@
-libgda_threadwrapper_headers = files([
+threadwrapper_headers = files([
        'gda-worker.h',
+       ])
+threadwrapper_headers_priv = files([
        'gda-connect.h'
        ])
 
-libgda_threadwrapper_sources = files([
+threadwrapper_sources = files([
+       'gda-worker.c',
+       ])
+
+threadwrapper_sources_priv = files([
        'background.h',
        'background.c',
        'itsignaler.h',
        'itsignaler.c',
-       'gda-worker.c',
        'gda-connect.c'
        ])
-
-libgda_threadwrapper_sources += libgda_threadwrapper_headers
+libgda_threadwrapper_sources = []
+libgda_threadwrapper_sources += threadwrapper_sources
+libgda_threadwrapper_sources += threadwrapper_sources_priv
+libgda_threadwrapper_sources += threadwrapper_headers
+libgda_threadwrapper_sources += threadwrapper_headers_priv
+
+threadwrapper_gi_sources = []
+threadwrapper_gi_sources += threadwrapper_sources
+threadwrapper_gi_sources += threadwrapper_headers
 
 test_raw_itsignaler_sources = files([
        'test-raw-itsignaler.c'


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