[dia: 47/105] #19: Port 'stress' plugin & resolve TODOs in 'postscript' one.
- From: Zander <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia: 47/105] #19: Port 'stress' plugin & resolve TODOs in 'postscript' one.
- Date: Mon, 28 Jan 2019 19:23:17 +0000 (UTC)
commit ccc02489aeb9941c3e274cfccc69819c6f91fb01
Author: Eduard Nicodei <eddnicodei gmail com>
Date: Tue Jan 1 20:05:17 2019 +0000
#19: Port 'stress' plugin & resolve TODOs in 'postscript' one.
- Also small cleanup in plug-ins/meson.build (two spaces before comment).
plug-ins/meson.build | 7 +++----
plug-ins/postscript/meson.build | 9 ++-------
plug-ins/stress/meson.build | 20 ++++++++++++++++++++
3 files changed, 25 insertions(+), 11 deletions(-)
---
diff --git a/plug-ins/meson.build b/plug-ins/meson.build
index 217699a3..fd3b2448 100644
--- a/plug-ins/meson.build
+++ b/plug-ins/meson.build
@@ -10,7 +10,7 @@ install_plugins_desc = []
# marked as such.
subdir('cairo')
subdir('cgm')
-subdir('drs') # Non-standard: does not get installed.
+subdir('drs') # Non-standard: does not get installed.
subdir('dxf')
subdir('hpgl')
subdir('shape')
@@ -22,9 +22,8 @@ subdir('pdf')
subdir('pgf')
subdir('postscript')
subdir('pstricks')
-subdir('python') # Non-standard: shared_module
-#subdir('stress')
-
+subdir('python') # Non-standard: shared_module
+subdir('stress') # Non-standard: does not get installed.
subdir('svg')
subdir('vdx')
#subdir('wmf')
diff --git a/plug-ins/postscript/meson.build b/plug-ins/postscript/meson.build
index 87db2728..81de28e6 100644
--- a/plug-ins/postscript/meson.build
+++ b/plug-ins/postscript/meson.build
@@ -12,14 +12,9 @@ if freetype_dep.found()
deps += [freetype_dep]
endif
-# TODO: actual check for w32
-platform_is_win32 = false
-if platform_is_win32
+if host_machine.system() == 'windows'
sources += files('win32print.c')
- #TODO: add winspool as per Makefile.am
- deps += []
+ deps += [cc.find_library('winspool')]
endif
install_plugins_desc += [['postscript_filter', sources, deps]]
-
-
diff --git a/plug-ins/stress/meson.build b/plug-ins/stress/meson.build
new file mode 100644
index 00000000..ec877164
--- /dev/null
+++ b/plug-ins/stress/meson.build
@@ -0,0 +1,20 @@
+# This is currently windows+development only
+# It should be easy to port but never get installed
+
+sources = files(
+ 'stress.c',
+ 'stress-memory.c'
+)
+
+# TODO: test this on Windows.
+if host_machine.system() != 'windows'
+ library(
+ 'stress_filter',
+ sources,
+ dependencies: [libgtk_dep, libm_dep],
+ include_directories: [libdia_inc, configuration_inc],
+ link_with: [libdia],
+ install: false,
+ install_dir: dialibdir
+ )
+endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]