[dia] stress: build the debug plug-in on Linux, too.
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] stress: build the debug plug-in on Linux, too.
- Date: Sat, 4 May 2013 19:00:05 +0000 (UTC)
commit ec75827cc4d14b39ad01935244e5cabc7814a396
Author: Hans Breuer <hans breuer org>
Date: Sat May 4 14:38:07 2013 +0200
stress: build the debug plug-in on Linux, too.
It does not work on Linux yet (no VirtualQuery) but
is useful to test the next commit;)
plug-ins/stress/Makefile.am | 15 ++++++++++++++-
plug-ins/stress/stress-memory.c | 1 +
plug-ins/stress/stress.c | 2 +-
3 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/stress/Makefile.am b/plug-ins/stress/Makefile.am
index 5e1fa07..afda604 100644
--- a/plug-ins/stress/Makefile.am
+++ b/plug-ins/stress/Makefile.am
@@ -1,9 +1,22 @@
## This is currently windows+development only
## It should be easy to port but never get installed
-EXTRA_DIST = \
+plugin_sources = \
stress.c \
stress-memory.c \
stress-memory.h
+pkglib_LTLIBRARIES = libstress_filter.la
+
+libstress_filter_la_SOURCES = $(plugin_sources)
+libstress_filter_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
+libstress_filter_la_LIBADD = $(top_builddir)/lib/libdia.la
+
+INCLUDES = -I$(top_srcdir)/intl -I$(top_srcdir)/lib \
+ $(DEBUG_FLAGS) $(GTK_CFLAGS)
+
+# Prevent installation
+install-pkglibLTLIBRARIES:
+ :
+
# see also po/POTFILES.skip
diff --git a/plug-ins/stress/stress-memory.c b/plug-ins/stress/stress-memory.c
index 5d74573..46b8d84 100644
--- a/plug-ins/stress/stress-memory.c
+++ b/plug-ins/stress/stress-memory.c
@@ -129,3 +129,4 @@ vmem_release (void)
virtual_reserved = NULL;
}
}
+
diff --git a/plug-ins/stress/stress.c b/plug-ins/stress/stress.c
index 1df306e..1dc04c6 100644
--- a/plug-ins/stress/stress.c
+++ b/plug-ins/stress/stress.c
@@ -65,13 +65,13 @@ static DiaCallbackFilter cb_stress_memory = {
static gboolean
_plugin_can_unload (PluginInfo *info)
{
- /* there is no filter_unregister_callback yet */
return TRUE;
}
static void
_plugin_unload (PluginInfo *info)
{
+ filter_unregister_callback (&cb_stress_memory);
vmem_release ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]