Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
Opus
Commits
faec6736
Commit
faec6736
authored
11 years ago
by
Aurélien Zanelli
Committed by
Timothy B. Terriberry
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add an option to disable build of extra programs (demos and tests)
parent
319fe445
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile.am
+4
-0
4 additions, 0 deletions
Makefile.am
configure.ac
+10
-0
10 additions, 0 deletions
configure.ac
with
14 additions
and
0 deletions
Makefile.am
+
4
−
0
View file @
faec6736
...
...
@@ -29,6 +29,7 @@ pkginclude_HEADERS = include/opus.h include/opus_multistream.h include/opus_type
noinst_HEADERS
=
$(
OPUS_HEAD
)
$(
SILK_HEAD
)
$(
CELT_HEAD
)
if
EXTRA_PROGRAMS
noinst_PROGRAMS
=
opus_demo repacketizer_demo opus_compare tests/test_opus_api tests/test_opus_encode tests/test_opus_decode tests/test_opus_padding celt/tests/test_unit_cwrs32 celt/tests/test_unit_dft celt/tests/test_unit_entropy celt/tests/test_unit_laplace celt/tests/test_unit_mathops celt/tests/test_unit_mdct celt/tests/test_unit_rotation celt/tests/test_unit_types
TESTS
=
celt/tests/test_unit_types celt/tests/test_unit_mathops celt/tests/test_unit_entropy celt/tests/test_unit_laplace celt/tests/test_unit_dft celt/tests/test_unit_mdct celt/tests/test_unit_rotation celt/tests/test_unit_cwrs32 tests/test_opus_api tests/test_opus_decode tests/test_opus_encode tests/test_opus_padding
...
...
@@ -79,13 +80,16 @@ celt_tests_test_unit_rotation_LDADD = -lm
celt_tests_test_unit_types_SOURCES
=
celt/tests/test_unit_types.c
celt_tests_test_unit_types_LDADD
=
-lm
endif
if
CUSTOM_MODES
pkginclude_HEADERS
+=
include/opus_custom.h
if
EXTRA_PROGRAMS
noinst_PROGRAMS
+=
opus_custom_demo
opus_custom_demo_SOURCES
=
celt/opus_custom_demo.c
opus_custom_demo_LDADD
=
libopus.la
-lm
endif
endif
EXTRA_DIST
=
version.mk
\
opus.pc.in
\
...
...
This diff is collapsed.
Click to expand it.
configure.ac
+
10
−
0
View file @
faec6736
...
...
@@ -210,6 +210,14 @@ if test "$HAVE_DOXYGEN" != "yes" -o "$ac_enable_doc" != "yes"; then
fi
AM_CONDITIONAL(HAVE_DOXYGEN, [test $HAVE_DOXYGEN = yes])
ac_enable_extra_programs="yes"
AC_ARG_ENABLE([extra-programs],
AS_HELP_STRING([--disable-extra-programs], [Do not build extra programs (demo and tests)]),
[ac_enable_extra_programs=$enableval])
if test "$ac_enable_extra_programs" != "yes"; then
ac_enable_extra_progs="no"
fi
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fvisibility=hidden"
AC_MSG_CHECKING([if ${CC} supports -fvisibility=hidden])
...
...
@@ -272,6 +280,7 @@ AC_SUBST(SIZE32)
AM_CONDITIONAL([FIXED_POINT], [test x$ac_enable_fixed = xyes])
AM_CONDITIONAL([CUSTOM_MODES], [test x$ac_enable_custom_modes = xyes])
AM_CONDITIONAL([EXTRA_PROGRAMS], [test x$ac_enable_extra_programs = xyes])
dnl subsitutions for the pkg-config files
if test x$ac_enable_float = xyes; then
...
...
@@ -317,6 +326,7 @@ AC_MSG_RESULT([
Fuzzing: ....................... ${ac_enable_fuzzing}
API documentation: ............. ${ac_enable_doc}
Extra programs: ................ ${ac_enable_extra_programs}
------------------------------------------------------------------------
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment