[libgda] Meson: Added libgda-report library
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Meson: Added libgda-report library
- Date: Wed, 4 Jul 2018 19:57:11 +0000 (UTC)
commit 4d486ea58cdf14a5e7547d2d3d9536b74bcdf750
Author: Daniel Espinosa <esodan gmail com>
Date: Wed Jul 4 14:52:15 2018 -0500
Meson: Added libgda-report library
libgda-report/DocBook/meson.build | 8 +++++
libgda-report/RML/meson.build | 11 +++++++
libgda-report/RML/trml2html/meson.build | 10 ++++++
libgda-report/RML/trml2pdf/meson.build | 10 ++++++
libgda-report/engine/meson.build | 14 ++++++++
libgda-report/meson.build | 58 +++++++++++++++++++++++++++++++++
meson.build | 8 +----
7 files changed, 112 insertions(+), 7 deletions(-)
---
diff --git a/libgda-report/DocBook/meson.build b/libgda-report/DocBook/meson.build
new file mode 100644
index 000000000..f3097e6b0
--- /dev/null
+++ b/libgda-report/DocBook/meson.build
@@ -0,0 +1,8 @@
+gda_report_headers = files([
+ 'gda-report-docbook-document.h'
+ ])
+
+libgda_report_docbook_sources = files([
+ 'gda-report-docbook-document.c'
+ ])
+libgda_report_docbook_sources += gda_report_headers
\ No newline at end of file
diff --git a/libgda-report/RML/meson.build b/libgda-report/RML/meson.build
new file mode 100644
index 000000000..190454ebe
--- /dev/null
+++ b/libgda-report/RML/meson.build
@@ -0,0 +1,11 @@
+gda_report_headers = files([
+ 'gda-report-rml-document.h'
+ ])
+
+libgda_report_rml_sources = files([
+ 'gda-report-rml-document.c'
+ ])
+libgda_report_rml_sources += gda_report_headers
+
+subdir('trml2html')
+subdir('trml2pdf')
\ No newline at end of file
diff --git a/libgda-report/RML/trml2html/meson.build b/libgda-report/RML/trml2html/meson.build
new file mode 100644
index 000000000..2ce7bf877
--- /dev/null
+++ b/libgda-report/RML/trml2html/meson.build
@@ -0,0 +1,10 @@
+
+install_data('trml2html.py',
+ install: true,
+ install_dir: get_option('bindir')
+ )
+trml2html = files(['__init__.py', 'utils.py'])
+install_data(trml2html,
+ install: true,
+ install_dir: join_paths(get_option('datadir'), project_package, 'gda_trml2html')
+ )
\ No newline at end of file
diff --git a/libgda-report/RML/trml2pdf/meson.build b/libgda-report/RML/trml2pdf/meson.build
new file mode 100644
index 000000000..1a5941383
--- /dev/null
+++ b/libgda-report/RML/trml2pdf/meson.build
@@ -0,0 +1,10 @@
+
+install_data('trml2pdf.py',
+ install: true,
+ install_dir: get_option('bindir')
+ )
+trml2pdf = files(['__init__.py', 'utils.py', 'color.py'])
+install_data(trml2pdf,
+ install: true,
+ install_dir: join_paths(get_option('datadir'), project_package, 'gda_trml2pdf')
+ )
\ No newline at end of file
diff --git a/libgda-report/engine/meson.build b/libgda-report/engine/meson.build
new file mode 100644
index 000000000..586fb3ba4
--- /dev/null
+++ b/libgda-report/engine/meson.build
@@ -0,0 +1,14 @@
+gda_report_headers = files([
+ 'gda-report-engine.h'
+ ])
+
+libgda_report_engine_sources = files([
+ 'rt-parser.h',
+ 'rt-parser.c',
+ 'gda-report-engine.c'
+ ])
+libgda_report_engine_sources += gda_report_headers
+
+test_rt_parser_sources = files([
+ 'test-rt-parser.c'
+ ])
diff --git a/libgda-report/meson.build b/libgda-report/meson.build
new file mode 100644
index 000000000..5df06dea0
--- /dev/null
+++ b/libgda-report/meson.build
@@ -0,0 +1,58 @@
+inc_libgda_reporth = include_directories ('.')
+inc_libgda_reporth_dep = declare_dependency (include_directories : inc_libgda_reporth)
+
+subdir('engine')
+subdir('DocBook')
+subdir('RML')
+
+report_headers = files([
+ 'gda-report-document.h'
+ ])
+install_headers(report_headers+['libgda-report.h'],
+ install_dir: join_paths(get_option('includedir'), project_package,'libgda-report')
+ )
+
+libgda_report_sources = files([
+ 'gda-report-document-private.h',
+ 'gda-report-document.c'
+ ])
+libgda_report_sources += report_headers
+libgda_report_sources += libgda_report_engine_sources
+libgda_report_sources += libgda_report_docbook_sources
+libgda_report_sources += libgda_report_rml_sources
+
+libgda_report = library(
+ 'gda-report-'+project_api_version,
+ libgda_report_sources,
+ soversion : gda_current,
+ version : gda_revision,
+ dependencies : [libgda_dep,
+ gdkpixbuf_dep,
+ inc_libgda_reporth_dep,
+ inc_rooth_dep,
+ inc_libgdah_dep,
+ inc_sqliteh_dep
+ ],
+ c_args: [
+ '-include',
+ meson.build_root() + '/config.h',
+ ],
+ link_with: libgda,
+ install : true
+ )
+
+
+test_rt_parser = executable('test-rt-parser',
+ test_rt_parser_sources,
+ c_args: [
+ '-include',
+ meson.build_root() + '/config.h',
+ ],
+ dependencies: [
+ libgda_dep,
+ inc_rooth_dep,
+ inc_libgdah_dep
+ ],
+ link_with: [libgda, libgda_report],
+ install: false
+ )
diff --git a/meson.build b/meson.build
index 0de96be98..b7233bea4 100644
--- a/meson.build
+++ b/meson.build
@@ -201,15 +201,9 @@ int main() {
glade_catalog = pkg_module.generate(libraries: 'gladeui-2.0', variables : 'pixmapdir')
endif
subdir('libgda-ui')
+ subdir('libgda-report')
endif
subdir('tests')
subdir('testing')
-
-
-
-
-
-
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]