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>
This commit is contained in:
Ralph Giles 2020-05-30 21:22:09 -07:00
parent fefcad3797
commit 72a3a6c133
No known key found for this signature in database
GPG Key ID: 9259A8F2D2D44C84
2 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@ -38,6 +38,7 @@ opus_demo
repacketizer_demo
stamp-h1
test-driver
trivial_example
*.sw*
*.o
*.lo

View File

@ -103,7 +103,8 @@ noinst_PROGRAMS = celt/tests/test_unit_cwrs32 \
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 \
@ -131,6 +132,9 @@ repacketizer_demo_LDADD = libopus.la $(NE10_LIBS) $(LIBM)
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)