[dia: 21/105] #19: Add first few plugins. They seem to be working!



commit 54cb0dd83ba523fc27e9484645c637975787d33f
Author: Eduard Nicodei <eddnicodei gmail com>
Date:   Thu Dec 20 01:00:01 2018 +0000

    #19: Add first few plugins.  They seem to be working!
    
      - Also add a dependency to cairo.

 meson.build                |  4 ++++
 plug-ins/cairo/meson.build | 20 ++++++++++++++++++++
 plug-ins/cgm/meson.build   | 11 +++++++++++
 plug-ins/drs/meson.build   | 19 +++++++++++++++++++
 plug-ins/dxf/meson.build   | 19 +++++++++++++++++++
 plug-ins/hpgl/meson.build  | 15 +++++++++++++++
 plug-ins/meson.build       | 25 +++++++++++++++++++++++++
 7 files changed, 113 insertions(+)
---
diff --git a/meson.build b/meson.build
index 146659d2..86d0854e 100644
--- a/meson.build
+++ b/meson.build
@@ -19,6 +19,9 @@ libxml_dep  = dependency('libxml-2.0', version : '>= 2.6.27')
 #TODO: what are the minimum versions?
 gmodule_dep = dependency('gmodule-2.0')
 libzlib_dep = dependency('zlib')
+#TODO: this is optional.  Should it be a disabler?
+libcairo_dep = dependency('cairo', required : false)
+
 libm_dep = cc.find_library('m', required : false)
 
 
@@ -72,3 +75,4 @@ subdir('objects')
 subdir('app')
 subdir('data')
 subdir('doc')
+subdir('plug-ins')
diff --git a/plug-ins/cairo/meson.build b/plug-ins/cairo/meson.build
new file mode 100644
index 00000000..2473963e
--- /dev/null
+++ b/plug-ins/cairo/meson.build
@@ -0,0 +1,20 @@
+plugin_sources = [
+    'diacairo.c',
+    'diacairo-interactive.c',
+    'diacairo-renderer.c',
+    'diacairo-print.c'
+]
+
+shared_library(
+    'cairo_filter',
+    plugin_sources,
+    dependencies : [ libcairo_dep,
+                     libgtk_dep,
+                     libxml_dep,
+                     libm_dep ],
+    include_directories : [ libdia_inc,
+                            configuration_inc ],
+    link_with : [ libdia ],
+    install : true,
+    install_dir : dialibdir
+)
diff --git a/plug-ins/cgm/meson.build b/plug-ins/cgm/meson.build
new file mode 100644
index 00000000..5a22f524
--- /dev/null
+++ b/plug-ins/cgm/meson.build
@@ -0,0 +1,11 @@
+shared_library(
+    'cgm_filter',
+    'cgm.c',
+    dependencies : [ libgtk_dep,
+                     libm_dep ],
+    include_directories : [ libdia_inc,
+                            configuration_inc ],
+    link_with : [ libdia ],
+    install : true,
+    install_dir : dialibdir
+)
diff --git a/plug-ins/drs/meson.build b/plug-ins/drs/meson.build
new file mode 100644
index 00000000..da9dd5bd
--- /dev/null
+++ b/plug-ins/drs/meson.build
@@ -0,0 +1,19 @@
+plugin_sources = [
+    'dia-render-script.c',
+    'dia-render-script-import.c',
+    'dia-render-script-object.c',
+    'dia-render-script-renderer.c'
+]
+
+shared_library(
+    'drs_filter',
+    plugin_sources,
+    dependencies : [ libgtk_dep,
+                     libxml_dep,
+                     libm_dep ],
+    include_directories : [ libdia_inc,
+                            configuration_inc ],
+    link_with : [ libdia ],
+    install : false,   # Prevent installation - currently a debug tool only
+    install_dir : dialibdir
+)
diff --git a/plug-ins/dxf/meson.build b/plug-ins/dxf/meson.build
new file mode 100644
index 00000000..5a20185d
--- /dev/null
+++ b/plug-ins/dxf/meson.build
@@ -0,0 +1,19 @@
+plugin_sources = [
+       'dxf.c',
+       'dxf-export.c',
+       'dxf-import.c',
+       'autocad_pal.c'
+]
+
+shared_library(
+    'dxf_filter',
+    plugin_sources,
+    dependencies : [ libgtk_dep,
+                     libxml_dep,
+                     libm_dep ],
+    include_directories : [ libdia_inc,
+                            configuration_inc ],
+    link_with : [ libdia ],
+    install : true,
+    install_dir : dialibdir
+)
diff --git a/plug-ins/hpgl/meson.build b/plug-ins/hpgl/meson.build
new file mode 100644
index 00000000..4f3c352a
--- /dev/null
+++ b/plug-ins/hpgl/meson.build
@@ -0,0 +1,15 @@
+plugin_sources = [
+    'hpgl.c'
+]
+
+shared_library(
+    'hpgl_filter',
+    plugin_sources,
+    dependencies : [ libgtk_dep,
+                     libm_dep ],
+    include_directories : [ libdia_inc,
+                            configuration_inc ],
+    link_with : [ libdia ],
+    install : true,
+    install_dir : dialibdir
+)
diff --git a/plug-ins/meson.build b/plug-ins/meson.build
new file mode 100644
index 00000000..e04bf946
--- /dev/null
+++ b/plug-ins/meson.build
@@ -0,0 +1,25 @@
+subdir('cairo')
+subdir('cgm')
+subdir('drs')
+subdir('dxf')
+subdir('hpgl')
+
+# TODO: enable or remove these.
+#subdir('layout')
+#subdir('libart')
+
+#subdir('metapost')
+#subdir('pdf')
+#subdir('pgf')
+#subdir('pixbuf')
+#subdir('postscript')
+#subdir('pstricks')
+#subdir('python')
+#subdir('shape')
+#subdir('stress')
+#subdir('svg')
+#subdir('vdx')
+#subdir('wmf')
+#subdir('wpg')
+#subdir('xfig')
+#subdir('xslt')


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