ref: 72a3a6c13329869000b34a12ba27d8bfdfbc22b3
parent: fefcad3797de1beaba2784bb229679b743846cdc
author: Ralph Giles <giles@thaumas.net>
date: Sat May 30 17:22:09 EDT 2020
Build trivial_example by default. Add doc/trivial_example.c to the autotools build so we get some minimal verification that the code compiles. Signed-off-by: Mark Harris <mark.hsj@gmail.com>
--- a/.gitignore
+++ b/.gitignore
@@ -38,6 +38,7 @@
repacketizer_demo
stamp-h1
test-driver
+trivial_example
*.sw*
*.o
*.lo
--- a/Makefile.am
+++ b/Makefile.am
@@ -103,7 +103,8 @@
tests/test_opus_decode \
tests/test_opus_encode \
tests/test_opus_padding \
- tests/test_opus_projection
+ tests/test_opus_projection \
+ trivial_example
TESTS = celt/tests/test_unit_cwrs32 \
celt/tests/test_unit_dft \
@@ -130,6 +131,9 @@
opus_compare_SOURCES = src/opus_compare.c
opus_compare_LDADD = $(LIBM)
+
+trivial_example_SOURCES = doc/trivial_example.c
+trivial_example_LDADD = libopus.la $(LIBM)
tests_test_opus_api_SOURCES = tests/test_opus_api.c tests/test_opus_common.h
tests_test_opus_api_LDADD = libopus.la $(NE10_LIBS) $(LIBM)