summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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