Skip to content

Commit

Permalink
Add a flag to build 'vendor'
Browse files Browse the repository at this point in the history
Make compiling vendor specific code optional.
By default set it to 'no'.

Signed-off-by: Azhar Shaikh <[email protected]>
  • Loading branch information
azharsha committed Feb 7, 2019
1 parent e8045a4 commit 2fa7c56
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
Expand Down
9 changes: 8 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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=no@:>@])],
[], [enable_vendor_intel="no"])

LT_INIT
AC_DISABLE_STATIC
AC_PROG_CC
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 2fa7c56

Please sign in to comment.