Skip to content

Commit e503d9d

Browse files
committed
Add a flag to build 'vendor'
Make compiling vendor specific code optional. By default set it to 'no'. Signed-off-by: Azhar Shaikh <[email protected]>
1 parent e8045a4 commit e503d9d

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

Makefile.am

+6-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
2424

2525
AUTOMAKE_OPTIONS = foreign
2626

27-
SUBDIRS = common decode encode vainfo videoprocess vendor/intel vendor/intel/sfcsample
27+
SUBDIRS = common decode encode vainfo videoprocess
2828

2929
if USE_X11
3030
SUBDIRS += putsurface
@@ -38,6 +38,11 @@ if ENABLE_TESTS
3838
SUBDIRS += test
3939
endif
4040

41+
if ENABLE_VENDOR_INTEL
42+
SUBDIRS += vendor/intel
43+
SUBDIRS += vendor/intel/sfcsample
44+
endif
45+
4146
# Extra clean files so that maintainer-clean removes *everything*
4247
MAINTAINERCLEANFILES = \
4348
aclocal.m4 compile config.guess config.sub \

configure.ac

+8-1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ AC_ARG_ENABLE([tests],
9797
[], [enable_tests="no"])
9898

9999

100+
AC_ARG_ENABLE([vendor_intel],
101+
[AC_HELP_STRING([--enable-vendor-intel],
102+
[build intel specific code @<:@default=yes@:>@])],
103+
[], [enable_vendor_intel="yes"])
104+
100105
LT_INIT
101106
AC_DISABLE_STATIC
102107
AC_PROG_CC
@@ -205,6 +210,7 @@ if test "$USE_DRM:$USE_X11:$USE_WAYLAND" = "no:no:no"; then
205210
fi
206211

207212
AM_CONDITIONAL(ENABLE_TESTS, test "$enable_tests" = "yes")
213+
AM_CONDITIONAL(ENABLE_VENDOR_INTEL, test "$enable_vendor_intel" = "yes")
208214

209215
AC_OUTPUT([
210216
Makefile
@@ -232,5 +238,6 @@ echo
232238
echo Libva VA-API version ............. : $LIBVA_API_VERSION
233239
echo Installation prefix .............. : $prefix
234240
echo Extra window systems ............. : $BACKENDS
235-
echo Enable Unit-tests .................... : $enable_tests
241+
echo Enable Unit-tests ................ : $enable_tests
242+
echo Enable vendor-Intel .............. : $enable_vendor_intel
236243
echo

0 commit comments

Comments
 (0)