diff options
author | Hans Verkuil <hansverk@cisco.com> | 2015-09-03 17:23:15 +0200 |
---|---|---|
committer | Hans Verkuil <hans.verkuil@cisco.com> | 2015-09-08 10:02:28 +0200 |
commit | 2ee1023cca3153465cd273c7ff5beafc4d88a5d6 (patch) | |
tree | caa4d1547f7ee90dd53d20cea15981b51eeec7d5 /utils/v4l2-compliance/Makefile.am | |
parent | 4ba7ff1c05a2c4a944dbff4500635ed622551daf (diff) |
v4l2-ctl/compliance: add configure option to disable libv4l use
Sometimes you want to compile these two utilities without the libv4l2 wrapper.
This patch adds new configure options to do this:
--disable-v4l2-compliance-libv4l
--disable-v4l2-ctl-libv4l
This is useful when building for an embedded system where you do not want
to use the libv4l2 wrapper library.
The capability to do this was already available, but not hooked up to
the configure system.
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils/v4l2-compliance/Makefile.am')
-rw-r--r-- | utils/v4l2-compliance/Makefile.am | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/v4l2-compliance/Makefile.am b/utils/v4l2-compliance/Makefile.am index 3ffc5bda..e7bfc8a1 100644 --- a/utils/v4l2-compliance/Makefile.am +++ b/utils/v4l2-compliance/Makefile.am @@ -1,10 +1,16 @@ bin_PROGRAMS = v4l2-compliance man_MANS = v4l2-compliance.1 +DEFS := v4l2_compliance_SOURCES = v4l2-compliance.cpp v4l2-test-debug.cpp v4l2-test-input-output.cpp \ v4l2-test-controls.cpp v4l2-test-io-config.cpp v4l2-test-formats.cpp v4l2-test-buffers.cpp \ v4l2-test-codecs.cpp v4l2-test-colors.cpp v4l2-compliance.h cv4l-helpers.h v4l-helpers.h -v4l2_compliance_LDADD = ../../lib/libv4l2/libv4l2.la ../../lib/libv4lconvert/libv4lconvert.la v4l2_compliance_LDFLAGS = -lrt +if WITH_V4L2_COMPLIANCE_LIBV4L +v4l2_compliance_LDADD = ../../lib/libv4l2/libv4l2.la ../../lib/libv4lconvert/libv4lconvert.la +else +DEFS += -DNO_LIBV4L2 +endif + EXTRA_DIST = Android.mk fixme.txt v4l2-compliance.1 |