Skip to content

Commit

Permalink
configure option to enable speakertrack/ptz
Browse files Browse the repository at this point in the history
  • Loading branch information
Aayush Ahuja committed Nov 9, 2014
1 parent 1fce46d commit 9df7eb8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
11 changes: 11 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,17 @@ AC_ARG_ENABLE(gprof,
AM_CONDITIONAL(GCOV_ENABLED, test "x$BUILD_GCOV" = "xyes")
AM_CONDITIONAL(GPROF_ENABLED, test "x$BUILD_GPROF" = "xyes")

AC_ARG_ENABLE(speakertrack,
AS_HELP_STRING([--enable-speakertrack],[enable speakertrack]),
[
case "${enableval}" in
yes) BUILD_SPEAKERTRACK=yes ;;
no) BUILD_SPEAKERTRACK=no ;;
esac
],
[BUILD_SPEAKERTRACK=no])
AM_CONDITIONAL(SPEAKERTRACK_ENABLED, test "x$BUILD_SPEAKERTRACK" = "xyes")

dnl Check for the required version of GStreamer core (and gst-plugins-base)
dnl This will export GST_CFLAGS and GST_LIBS variables for use in Makefile.am
dnl
Expand Down
6 changes: 5 additions & 1 deletion tools/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
bin_PROGRAMS = gst-switch-srv gst-switch-ui gst-switch-cap # gst-switch-ptz
if SPEAKERTRACK_ENABLED
bin_PROGRAMS = gst-switch-srv gst-switch-ui gst-switch-cap gst-switch-ptz
else
bin_PROGRAMS = gst-switch-srv gst-switch-ui gst-switch-cap
endif

if GCOV_ENABLED
# --coverage
Expand Down

0 comments on commit 9df7eb8

Please sign in to comment.