From e503d9de20f910230c430fed1f6dbd9cfb18de45 Mon Sep 17 00:00:00 2001 From: Azhar Shaikh Date: Wed, 6 Feb 2019 11:54:11 -0800 Subject: [PATCH] Add a flag to build 'vendor' Make compiling vendor specific code optional. By default set it to 'no'. Signed-off-by: Azhar Shaikh --- Makefile.am | 7 ++++++- configure.ac | 9 ++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index d28175ae..4eea2b14 100644 --- a/Makefile.am +++ b/Makefile.am @@ -24,7 +24,7 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} AUTOMAKE_OPTIONS = foreign -SUBDIRS = common decode encode vainfo videoprocess vendor/intel vendor/intel/sfcsample +SUBDIRS = common decode encode vainfo videoprocess if USE_X11 SUBDIRS += putsurface @@ -38,6 +38,11 @@ if ENABLE_TESTS SUBDIRS += test endif +if ENABLE_VENDOR_INTEL +SUBDIRS += vendor/intel +SUBDIRS += vendor/intel/sfcsample +endif + # Extra clean files so that maintainer-clean removes *everything* MAINTAINERCLEANFILES = \ aclocal.m4 compile config.guess config.sub \ diff --git a/configure.ac b/configure.ac index 9b64683b..066a6845 100644 --- a/configure.ac +++ b/configure.ac @@ -97,6 +97,11 @@ AC_ARG_ENABLE([tests], [], [enable_tests="no"]) +AC_ARG_ENABLE([vendor_intel], + [AC_HELP_STRING([--enable-vendor-intel], + [build intel specific code @<:@default=yes@:>@])], + [], [enable_vendor_intel="yes"]) + LT_INIT AC_DISABLE_STATIC AC_PROG_CC @@ -205,6 +210,7 @@ if test "$USE_DRM:$USE_X11:$USE_WAYLAND" = "no:no:no"; then fi AM_CONDITIONAL(ENABLE_TESTS, test "$enable_tests" = "yes") +AM_CONDITIONAL(ENABLE_VENDOR_INTEL, test "$enable_vendor_intel" = "yes") AC_OUTPUT([ Makefile @@ -232,5 +238,6 @@ echo echo Libva VA-API version ............. : $LIBVA_API_VERSION echo Installation prefix .............. : $prefix echo Extra window systems ............. : $BACKENDS -echo Enable Unit-tests .................... : $enable_tests +echo Enable Unit-tests ................ : $enable_tests +echo Enable vendor-Intel .............. : $enable_vendor_intel echo