From 7c24d086f1c81fd23fd93e5702c6f46a36f3d3f6 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 15 Jan 2011 01:44:41 +0100 Subject: CLI: Support for running protocol decoders. Add a new -A | --list-protocol-decoders option to show the list of protocol decoders we could find. Add -a | --protocol-decoders to specify a list of decoders that shall be applied to the datastream. Currently only works for one decoder. Define DECODERS_DIR, which is the directory where the decoders will be installed upon 'make install', and where libsigrokdecode_init() will search for them. Thanks Olivier Fauchon for the initial patch, merged in slightly different form. --- Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index c76c5c4..6ae808f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -24,7 +24,8 @@ lib_LTLIBRARIES = libsigrokdecode.la libsigrokdecode_la_SOURCES = decode.c -libsigrokdecode_la_CPPFLAGS = $(CPPFLAGS_PYTHON) +libsigrokdecode_la_CPPFLAGS = $(CPPFLAGS_PYTHON) \ + -DDECODERS_DIR='"$(DECODERS_DIR)"' libsigrokdecode_la_LDFLAGS = $(LDFLAGS_PYTHON) include_HEADERS = sigrokdecode.h -- cgit v1.2.3-70-g09d2