summaryrefslogtreecommitdiffstats
path: root/gtk/configure.ac
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-03-28 02:02:37 +0000
committerjstebbins <[email protected]>2015-03-28 02:02:37 +0000
commit3d87473c97540146822334e074d9b2f3ca5bbda8 (patch)
tree4d367c69cd9209bdd2a43c5aaf2d1684ea497408 /gtk/configure.ac
parent8d9f7c7afc46a934ec492bc0253d1bea2dd6defc (diff)
LinGui: refresh mingw build of gtk UI
Fixes a couple issues. adds qsv support. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7025 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/configure.ac')
-rw-r--r--gtk/configure.ac31
1 files changed, 19 insertions, 12 deletions
diff --git a/gtk/configure.ac b/gtk/configure.ac
index 33b76b38f..21a0cac07 100644
--- a/gtk/configure.ac
+++ b/gtk/configure.ac
@@ -56,6 +56,10 @@ AC_ARG_ENABLE(dl,
AS_HELP_STRING([--enable-dl], [enable libdl]),
use_libdl=yes, use_libdl=no)
+AC_ARG_ENABLE(pthread,
+ AS_HELP_STRING([--enable-pthread], [enable libpthread]),
+ use_libpthread=yes, use_libpthread=no)
+
AC_ARG_ENABLE(fdk-aac,
AS_HELP_STRING([--enable-fdk-aac], [enable fdk aac encoder]),
use_fdk_aac=yes, use_fdk_aac=no)
@@ -64,6 +68,10 @@ AC_ARG_ENABLE(x265,
AS_HELP_STRING([--enable-x265], [enable x265 encoder]),
use_x265=yes, use_x265=no)
+AC_ARG_ENABLE(qsv,
+ AS_HELP_STRING([--enable-qsv], [enable QSV encoder]),
+ use_qsv=yes, use_qsv=no)
+
AC_ARG_ENABLE(gst,
AS_HELP_STRING([--disable-gst], [disable gstreamer (live preview)]),
gst_disable=yes, gst_disable=no)
@@ -153,22 +161,19 @@ PKG_CHECK_MODULES(GHB, [$GHB_PACKAGES])
GHB_CFLAGS="$HBINC $GHB_CFLAGS"
-AC_PATH_PROG(BUILD_PKG_CONFIG, pkg-config, no)
-if test x"$BUILD_PKG_CONFIG" = x"no"; then
- AC_MSG_ERROR([You need to install pkg-config])
-fi
-
-GHB_TOOLS_CFLAGS=`$BUILD_PKG_CONFIG --cflags glib-2.0 gdk-pixbuf-2.0 gtk+-3.0 jansson`
-GHB_TOOLS_LIBS=`$BUILD_PKG_CONFIG --libs glib-2.0 gdk-pixbuf-2.0 jansson`
-
HB_LIBS="-lhandbrake -lavresample -lavformat -lavcodec -lavutil -ldvdnav -ldvdread -lmp3lame -lvorbis -lvorbisenc -logg -lsamplerate -lx264 -lswscale -ltheoraenc -ltheoradec -lvpx -lz -lbz2 -lbluray -lass -lfontconfig -lfreetype -lxml2 -ljansson"
case $host in
*-*-mingw*)
if test "x$use_libdl" = "xyes" ; then
- HB_LIBS+=" -ldl -lpthreadGC2"
+ HB_LIBS+=" -ldl"
fi
- HB_LIBS+=" -lpthreadGC2 -lregex"
+ if test "x$use_libpthread" = "xyes" ; then
+ HB_LIBS+=" -lpthread"
+ else
+ HB_LIBS+=" -lpthreadGC2"
+ fi
+ HB_LIBS+=" -lregex"
;;
*)
HB_LIBS+=" -ldl -lpthread"
@@ -183,9 +188,11 @@ if test "x$use_x265" = "xyes" ; then
HB_LIBS+=" -lx265"
fi
+if test "x$use_qsv" = "xyes" ; then
+ HB_LIBS+=" -lmfx"
+fi
+
AC_SUBST(HB_LIBS)
-AC_SUBST(GHB_TOOLS_CFLAGS)
-AC_SUBST(GHB_TOOLS_LIBS)
AC_SUBST(GHB_CFLAGS)
AC_SUBST(GHB_LIBS)