diff options
author | Chris "koying" Browet <cbro@semperpax.com> | 2013-03-26 18:05:35 +0100 |
---|---|---|
committer | Chris "koying" Browet <cbro@semperpax.com> | 2013-08-01 10:57:50 +0200 |
commit | 12211d9720356da797acb1efc38f4a863031c6a8 (patch) | |
tree | 2da6fc09c0975f60f569b3a4fb7bc08f21cbc665 /configure.in | |
parent | 1f8e86af5bf40d6537cd45b9147fc92cc8838e5b (diff) |
ADD: [droid] libstagefright dvdplayer hw codec
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 43507a151d..3babacf781 100644 --- a/configure.in +++ b/configure.in @@ -45,6 +45,15 @@ AC_DEFUN([XB_ADD_CODEC], esac ]) +# force enable a codec +AC_DEFUN([XB_FORCE_CODEC], +[ + AC_MSG_CHECKING([for $2]) + AC_SUBST([USE_$1], 1) + AC_DEFINE([HAS_$1], 1, [using $2]) + AC_MSG_RESULT([enabling $2]) +]) + # check for library basenames AC_DEFUN([XB_FIND_SONAME], [ @@ -530,7 +539,7 @@ AC_ARG_ENABLE([gtest], AC_ARG_ENABLE([codec], [AS_HELP_STRING([--enable-codec], - [enable additional codecs from a list of comma separated names, (default is none, choices are amcodec)])], + [enable additional codecs from a list of comma separated names, (default is none, choices are amcodec, libstagefright)])], [add_codecs=$enableval], [add_codecs=no]) @@ -1845,6 +1854,17 @@ case $add_codecs in AC_CHECK_HEADER([amlplayer/codec_error.h],, AC_MSG_ERROR($missing_headers)) XB_ADD_CODEC([LIBAMCODEC], [amcodec]) ;; + *libstagefright*) + LIBS+="-L${prefix}/opt/android-libs -lstdc++ -lutils -lcutils -lstagefright -lbinder -lui -lgui" + XB_ADD_CODEC([LIBSTAGEFRIGHT], [libstagefright]) + ;; + *) + # if no codec specified and android -> enable libstagefright + if test "$target_platform" = "target_android" ; then + LIBS+="-L${prefix}/opt/android-libs -lstdc++ -lutils -lcutils -lstagefright -lbinder -lui -lgui" + XB_FORCE_CODEC([LIBSTAGEFRIGHT], [libstagefright]) + fi + ;; esac # platform specific bin utilities |