v4l2-compliance/ctl: drop libv4l2 dependency if NO_LIBV4L2 is defined
authorHans-Christian Egtvedt <hegtvedt@cisco.com>
Fri, 11 Apr 2014 14:26:26 +0000 (16:26 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Fri, 11 Apr 2014 15:05:43 +0000 (17:05 +0200)
commitbb28f870e062b2dcafa694c81b39cd467fb2626a
tree767265e65586005813b8ea78a3230e6b5c314df1
parent057dc35a384c88d0225327c76d279589b0619c8a
v4l2-compliance/ctl: drop libv4l2 dependency if NO_LIBV4L2 is defined

This patch introduces a check for a NO_LIBV4L2 symbol in v4l2-compliance
and v4l2-ctl, which, when defined, will let the utility be built without
linking with libv4l2.

The wrapper functionality libv4l2 provides is obviously lost when
building with NO_LIBV4L2 defined.

Signed-off-by: Hans-Christian Egtvedt <hegtvedt@cisco.com>
[hans.verkuil@cisco.com: modified to reduce number of #ifdefs]
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/v4l2-compliance/v4l2-compliance.cpp
utils/v4l2-compliance/v4l2-compliance.h
utils/v4l2-compliance/v4l2-test-buffers.cpp
utils/v4l2-ctl/v4l2-ctl-common.cpp
utils/v4l2-ctl/v4l2-ctl-streaming.cpp
utils/v4l2-ctl/v4l2-ctl.cpp
utils/v4l2-ctl/v4l2-ctl.h