[dia: 50/105] #19: Port 'xslt' plugin.
- From: Zander <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia: 50/105] #19: Port 'xslt' plugin.
- Date: Mon, 28 Jan 2019 19:23:32 +0000 (UTC)
commit 3fc070ed42794dd3fb53a27c2a4dbd5e2b0a8d79
Author: Eduard Nicodei <eddnicodei gmail com>
Date: Tue Jan 1 21:38:21 2019 +0000
#19: Port 'xslt' plugin.
meson.build | 2 ++
plug-ins/meson.build | 2 +-
plug-ins/xslt/meson.build | 31 +++++++++++++++++++++++++++++++
3 files changed, 34 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 7dbacee8..aa99710e 100644
--- a/meson.build
+++ b/meson.build
@@ -31,6 +31,8 @@ libemf_dep = cc.find_library('emf', required: false)
conf.set('HAVE_LIBEMF', libemf_dep.found())
libogdf_dep = cc.find_library('ogdf', required: false)
conf.set('HAVE_OGDF', libogdf_dep.found())
+libxslt_dep = dependency('libxslt', required: false)
+conf.set('HAVE_XSLT', libxslt_dep.found())
# Used in pixmap csource generation.
gdk_pixbuf_csource = find_program('gdk-pixbuf-csource')
diff --git a/plug-ins/meson.build b/plug-ins/meson.build
index d2c8ee41..4b07d73b 100644
--- a/plug-ins/meson.build
+++ b/plug-ins/meson.build
@@ -29,7 +29,7 @@ subdir('vdx')
subdir('wmf') # Non-standard: Only installs if libemf present.
subdir('wpg')
subdir('xfig')
-#subdir('xslt')
+subdir('xslt')
foreach p : install_plugins_desc
message(p[0])
diff --git a/plug-ins/xslt/meson.build b/plug-ins/xslt/meson.build
new file mode 100644
index 00000000..f0fa51f9
--- /dev/null
+++ b/plug-ins/xslt/meson.build
@@ -0,0 +1,31 @@
+sources = files(
+ 'xslt.c',
+ 'xsltdialog.c'
+)
+
+xsls = files(
+ 'dia-uml.xsl',
+ 'dia-uml2c++.xsl',
+ 'dia-uml2cpp.xsl',
+ 'dia-uml2haxe.xsl',
+ 'dia-uml2java.xsl',
+ 'dia-uml2idl.xsl',
+ 'dia-uml2python.xsl',
+ 'dia-uml2owl.xsl',
+ 'stylesheets.xml',
+ 'dia-uml2componentlist.xsl',
+)
+
+install_data(xsls, install_dir: join_paths(pkgdatadir, 'xslt'))
+
+if libxslt_dep.found()
+ library(
+ 'xslt_filter',
+ sources,
+ dependencies: [libc_dep, libgtk_dep, libm_dep, libxml_dep, libxslt_dep],
+ include_directories: [libdia_inc, configuration_inc],
+ link_with: [libdia],
+ install: true,
+ install_dir: dialibdir
+ )
+endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]