summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodeo <[email protected]>2014-02-10 17:46:56 +0000
committerRodeo <[email protected]>2014-02-10 17:46:56 +0000
commit25b0757e8fc367d3b56422e41a096e59846b25bf (patch)
treee382641edb83285700d7f84e486af78d47a0b45e
parentc004afa6a6c12b16b42bc1792495145ba5558927 (diff)
LinGui: fix building with --enable-x265
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6025 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--gtk/configure.ac8
-rw-r--r--gtk/module.defs4
2 files changed, 12 insertions, 0 deletions
diff --git a/gtk/configure.ac b/gtk/configure.ac
index c4362c27e..f94c0a72d 100644
--- a/gtk/configure.ac
+++ b/gtk/configure.ac
@@ -72,6 +72,10 @@ AC_ARG_ENABLE(libmkv,
AS_HELP_STRING([--enable-libmkv], [enable libmkv muxer]),
use_libmkv=yes, use_libmkv=no)
+AC_ARG_ENABLE(x265,
+ AS_HELP_STRING([--enable-x265], [enable x265 encoder]),
+ use_x265=yes, use_x265=no)
+
AC_ARG_ENABLE(gst,
AS_HELP_STRING([--disable-gst], [disable gstreamer (live preview)]),
gst_disable=yes, gst_disable=no)
@@ -197,6 +201,10 @@ if test "x$use_libmkv" = "xyes" ; then
HB_LIBS+=" -lmkv"
fi
+if test "x$use_x265" = "xyes" ; then
+ HB_LIBS+=" -lx265"
+fi
+
AC_SUBST(HB_LIBS)
AC_SUBST(GHB_TOOLS_CFLAGS)
AC_SUBST(GHB_TOOLS_LIBS)
diff --git a/gtk/module.defs b/gtk/module.defs
index bafca356d..33a5fd115 100644
--- a/gtk/module.defs
+++ b/gtk/module.defs
@@ -44,3 +44,7 @@ endif
ifeq (1,$(FEATURE.libmkv))
GTK.CONFIGURE.extra += --enable-libmkv
endif
+
+ifeq (1,$(FEATURE.x265))
+ GTK.CONFIGURE.extra += --enable-x265
+endif