summaryrefslogtreecommitdiff
path: root/Makefile.am
AgeCommit message (Collapse)Author
2021-12-26ir_irmp: wrapper lib, add locking and Python threading supportGerhard Sittig
The IRMP core library is not thread safe (known limitation, heritage of the AVR firmware origin). Add a mutex so that calling applications can lock IR decoder core instances. Allow Python threading while waiting for the locks, we can safely assume that this IRMP wrapper is used in the sigrok context which does require Python for decoders. Add my copyright for the non-trivial changes. This implementation uses glib for locking to improve portability, which already is a dependency of the libsigrokdecode component. This version uses belt and suspenders by implementing a constructor as well as adding auto init calls to each of the public API code paths. The client ID is not an essential requirement, but useful during application maintenance.
2020-07-18irmp: hook up IRMP to the build, create a separate shared objectGerhard Sittig
Add the irmp/ subdirectory to the automake build instructions. Make the feature optional, provide an enable/disable switch (on by default). It's an essential implementation detail that the irmp.c file is required to build, but is not a compile unit of its own. It's yet to be seen how to most appropriately declare the dependencies of libirmp_la (can get refined in future commits). Create a separate shared object from the IRMP source, which shall result in a stable filename for the DLL/.so lookup. Decoder library code would not know the application's executable name, neither is anonymous symbol lookup "in the current process" portable across supported platforms. The configure.ac macros were modelled after the autobook DLL section. https://www.sourceware.org/autobook/autobook/autobook_137.html Symbol export is simple because the library gets implemented and built here, but is not used from C language code in this project. That's why we don't do the full dance of symbol import which would be needed on Windows.
2017-06-16Drop support for PD API version 2.Uwe Hermann
All decoders must be of PD API version 3 now.
2017-01-07license: remove FSF postal address from boiler plate license textGerhard Sittig
Remove the FSF postal address as it might change (it did in the past). Reference the gnu.org website instead which is more stable.
2016-05-25Move common/ directory into decoders/.Uwe Hermann
This simplifies cross-platform handling of the Python/decoder paths and module installation/dist a bit and also fixes bug #804.
2016-05-04Add common directory for shared modules.Bert Vermeulen
2015-10-03tests: Rename DECODERS_DIR to DECODERS_TESTDIRDaniel Elstner
Avoid confusion resulting from using the same macro name for different purposes.
2015-10-03build: Do not hard-code decoders location on WindowsDaniel Elstner
2015-09-14Makefile.am: Shorten ChangeLog target a bit.Uwe Hermann
2015-09-13Build: Move _POSIX_C_SOURCE definition to config.hDaniel Elstner
Do not redefine it though when already set, so that it can be overridden by the user, or indirectly by the compiler settings.
2015-09-10Build: Put --no-print-directory into GNUMAKEFLAGSDaniel Elstner
Also output the compiler version in the configuration summary.
2015-08-28Replace another -D_DEFAULT_SOURCE with -D_POSIX_C_SOURCE=200112L.Uwe Hermann
2015-08-28Build: Go back to _POSIX_C_SOURCE=200112LUwe Hermann
2015-08-26Build: Define feature test macro _DEFAULT_SOURCEDaniel Elstner
This basically makes glibc expose the same set of features as if gcc was invoked without any restricting -std=c* option. Unlike _GNU_SOURCE however, it does not enable GNU-specific extensions. So, with this macro defined the behavior of Linux with glibc should match that of other platforms.
2015-08-26Build: Use TESTS prefix instead of CHECK for flag variablesDaniel Elstner
In order to avoid confusion of the flags-gathering pkg-config result with the actual test for the availability of "check", change the pkg-config output variable prefix from CHECK to TESTS.
2015-08-26Build: Adopt new Autotools magicDaniel Elstner
2015-04-03Makefile.am: Use libtool's -no-undefined option.Uwe Hermann
2015-04-01unit tests: Drop unneeded check_ filename prefix.Uwe Hermann
2014-09-11Fix out-of-tree build of the unit tests.Uwe Hermann
2014-09-01PD tests moved into the sigrok-test repo.Uwe Hermann
Drop them from the libsigrokdecode repository.
2014-08-16configure.ac: Use AM_CFLAGS instead of CFLAGS.Uwe Hermann
CFLAGS, CPPFLAGS, LDFLAGS and so on are so-called "user variables" and are meant for users of the package to use/override. The package itself should not set or modify them in any way. Instead, the "shadow variables" such as AM_CFLAGS, AM_CPPFLAGS, AM_LDFLAGS and so on, can be modified by the package.
2014-05-23libsigrokdecode: Fix make -j issue with build_runtcKumar Abhishek
The build of runtc caused issues with make -j as runtc was attempted to be linked with libsigrokdecode before libsigrokdecode was linked. Using LDADD to insert libsigrokdecode ensures that it links before runtc, ensuring the build completes correctly.
2014-05-05Makefile.am: Add HACKING to the tarball.Uwe Hermann
2014-05-04Fix 'make install' on OSes where 'python3' doesn't exist.Uwe Hermann
Sometimes the Python 3 executable is called just 'python3', sometimes it is called 'python3.4' and so on. Handle all cases transparently for the user. Before: $ make install /usr/bin/env: python3: No such file or directory After: $ make install python3.4 ./tools/install-decoders -i ./decoders -o [...] Installing 36 protocol decoders: [...]
2014-04-13Switch to a non-recursive automake setup.Uwe Hermann
(fewer files, less clutter)
2014-01-28Fix out-of-tree build.Uwe Hermann
This fixes 'make install' and 'make dist' for out-of-tree builds.
2013-12-11Clean up runtc build.Bert Vermeulen
This only compiles libsigrok into the one target that needs it, instead of slopping it all over the place.
2013-12-10Add protocol decoder testing framework.Bert Vermeulen
This adds a tool in the tests directory, called pdtest. It uses the "test/" directory in every PD directory, if present, to run the PD against dumps found in the sigrok-dumps repository, and compares the output against ".output" files in the "test/" directory. The file "test/test.conf" is used to configure which tests to run. A separate tool (tests/runtc.c) is used to run the actual decoding and report output. To get an overview of the options, run tests/pdtest without any options.
2013-12-10Fix 'dist' make target.Bert Vermeulen
2013-12-09Support DESTDIR on install targets.Bert Vermeulen
Fixes bug 215.
2013-11-27Automate protocol decoder installation.Bert Vermeulen
This automatically figures out the files to install for each protocol decoder, without involving autotools. All python files (filenames ending in .py) are always installed. If a protocol decoder requires installation of a non-python file, a small file called 'config' can be created in that protocol decoder's directory, with the following content: # comments are ok extra-install vendorlist.txt commands.txt
2013-11-16Only instance-related functionality remains, rename source fileBert Vermeulen
2013-11-16Move initialization/shutdown into srd.cBert Vermeulen
2013-11-16Move session-specific functionality into session.cBert Vermeulen
2013-11-16Minor cleanupBert Vermeulen
2013-11-15Move versioning info out to separate headerBert Vermeulen
2013-10-17Add a testsuite for libsigrokdecode.Uwe Hermann
This uses the Check unit testing framework, just like libsigrok. For now, only a few very basic unit tests are included. Invocation: make check
2013-05-04Add srd_strerror() and srd_strerror_name().Uwe Hermann
2013-05-03Main header is <libsigrokdecode/libsigrokdecode.h> now.Uwe Hermann
This matches the convention used in libsigrok. Potential other headers might end up in libsigrokdecode/, but only libsigrokdecode.h is meant to be #included by frontends directly.
2013-04-23GPL headers: Use correct project name.Uwe Hermann
2013-02-09Add contrib/sigrok-logo-notext.png.Uwe Hermann
This is used in the generated Doxygen HTML output.
2013-01-13Makefile.am: Fix typo in 'ChangeLog' target.Uwe Hermann
2012-05-29sr/srd/cli/gtk: ChangeLog -> MAINTAINERCLEANFILES.Uwe Hermann
If the (generated) ChangeLog file is marked for DISTCLEANFILES, it'll be removed whenever "make distclean" is called (and is then gone forever if you use the tarballs, for example).
2012-04-15srd: Add functions to query srd version(s).Uwe Hermann
2012-03-31sr/srd: Fix 'make distcheck'.Uwe Hermann
2012-03-31srd: Generate ChangeLog from git upon 'make dist'.Uwe Hermann
2012-03-31srd: SRD_PACKAGE_VERSION_* for consistency.Uwe Hermann
No need to use the LIBSIGROKDECODE_ prefix here when we use SRD_ everywhere else. Also, better distinction between package version and lib version.
2012-01-23srd: add python exception catcher, which routes to srd_err() and srd_dbg()Bert Vermeulen
2012-01-15move sigrokdecode.Decoder type to its own source fileBert Vermeulen
2012-01-05new srd_logic type implementation for PDs to iterate over.Bert Vermeulen