Use build tree plugins when executing from build tree
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 16 Dec 2016 08:20:05 +0000 (09:20 +0100)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 18:09:08 +0000 (14:09 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
configure.ac
converter/Makefile.am
converter/babeltrace.wrapper.in [new file with mode: 0755]

index 98237c5803964bbe4b85efb88a6e9046b2498dfd..0a257ba8af8ca9aed42a3f4420c2f297725bd7f8 100644 (file)
@@ -429,6 +429,7 @@ AC_CONFIG_FILES([
        babeltrace-ctf.pc
 ])
 
+AC_CONFIG_FILES([converter/babeltrace.wrapper], [chmod +x converter/babeltrace.wrapper])
 AC_CONFIG_FILES([tests/lib/test_ctf_writer_complete], [chmod +x tests/lib/test_ctf_writer_complete])
 AC_CONFIG_FILES([tests/lib/test_seek_big_trace], [chmod +x tests/lib/test_seek_big_trace])
 AC_CONFIG_FILES([tests/lib/test_seek_empty_packet], [chmod +x tests/lib/test_seek_empty_packet])
index 4be27f987271b9a3128c303f4f0147c00e7dfd14..6abe05fac01b1478a80a27ff80235f1c8edc9f38 100644 (file)
@@ -48,3 +48,12 @@ if BABELTRACE_BUILD_WITH_MINGW
 babeltrace_log_LDADD += -lrpcrt4 -lintl -liconv -lole32 -lpopt -lpthread
 babeltrace_LDADD += -lrpcrt4 -lintl -liconv -lole32 -lpopt -lpthread
 endif
+
+check_SCRIPTS = babeltrace.wrapper
+
+all-local: $(PROGRAMS)
+       mv babeltrace babeltrace.libtool
+       cp babeltrace.wrapper babeltrace
+
+clean-local:
+       rm -f babeltrace.libtool
diff --git a/converter/babeltrace.wrapper.in b/converter/babeltrace.wrapper.in
new file mode 100755 (executable)
index 0000000..a32086d
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+babeltrace --omit-system-plugin-path --omit-home-plugin-path \
+               --plugin-path "@abs_top_builddir@/plugins" ${*}
This page took 0.025389 seconds and 4 git commands to generate.