[libgda] Meson: Added libgda-xslt library



commit cb5ad80b5975b92a3a11e575ece2e0c375102643
Author: Daniel Espinosa <esodan gmail com>
Date:   Wed Jul 4 15:05:08 2018 -0500

    Meson: Added libgda-xslt library

 libgda-report/meson.build |  1 +
 libgda-xslt/meson.build   | 35 +++++++++++++++++++++++++++++++++++
 meson.build               |  6 +++++-
 3 files changed, 41 insertions(+), 1 deletion(-)
---
diff --git a/libgda-report/meson.build b/libgda-report/meson.build
index 5df06dea0..a06c1153e 100644
--- a/libgda-report/meson.build
+++ b/libgda-report/meson.build
@@ -56,3 +56,4 @@ test_rt_parser = executable('test-rt-parser',
        link_with: [libgda, libgda_report],
        install: false
        )
+test('RtParser', test_rt_parser)
diff --git a/libgda-xslt/meson.build b/libgda-xslt/meson.build
new file mode 100644
index 000000000..b69e29f88
--- /dev/null
+++ b/libgda-xslt/meson.build
@@ -0,0 +1,35 @@
+inc_libgda_xslth = include_directories ('.')
+inc_libgda_xslth_dep = declare_dependency (include_directories : inc_libgda_xslth)
+
+gda_xslt_headers = files([
+       'libgda-xslt.h'
+       ])
+
+libgda_xslt_sources = files([
+       'sql_backend.h',
+       'sqlexslt.c',
+       'sql_exslt_internal.c',
+       'sql_backend.c'
+       ])
+libgda_xslt_sources += gda_xslt_headers
+
+
+libgda_xslt = library(
+       'gda-xslt-'+project_api_version,
+       libgda_xslt_sources,
+       soversion : gda_current,
+       version : gda_revision,
+       dependencies : [libgda_dep,
+                       libxslt_dep,
+                       inc_libgda_xslth_dep,
+                       inc_rooth_dep,
+                       inc_libgdah_dep,
+                       inc_sqliteh_dep
+                       ],
+       c_args: [
+               '-include',
+               meson.build_root() + '/config.h',
+               ],
+       link_with: libgda,
+       install : true
+       )
diff --git a/meson.build b/meson.build
index b7233bea4..8ee2fa17e 100644
--- a/meson.build
+++ b/meson.build
@@ -64,7 +64,7 @@ libxml_dep = dependency('libxml-2.0')
 
 goocanvas_dep = dependency('goocanvas-2.0', required : false)
 graphviz_dep = dependency('libgvc', required : false)
-libxslt_dep = dependency('libxslt')
+libxslt_dep = dependency('libxslt', required: false)
 jsonglib_dep = dependency('json-glib-1.0',required : false)
 postgres_dep = dependency ('libpq', required: false)
 
@@ -204,6 +204,10 @@ int main() {
        subdir('libgda-report')
 endif
 
+if libxslt_dep.found()
+       subdir('libgda-xslt')
+endif
+
 subdir('tests')
 subdir('testing')
 


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