| 1 |
v4l2_ctl_sources = files( |
| 2 |
'codec-fwht.c', |
| 3 |
'codec-v4l2-fwht.c', |
| 4 |
'media-info.cpp', |
| 5 |
'v4l-stream.c', |
| 6 |
'v4l2-ctl-common.cpp', |
| 7 |
'v4l2-ctl-edid.cpp', |
| 8 |
'v4l2-ctl-io.cpp', |
| 9 |
'v4l2-ctl-meta.cpp', |
| 10 |
'v4l2-ctl-misc.cpp', |
| 11 |
'v4l2-ctl-modes.cpp', |
| 12 |
'v4l2-ctl-overlay.cpp', |
| 13 |
'v4l2-ctl-sdr.cpp', |
| 14 |
'v4l2-ctl-selection.cpp', |
| 15 |
'v4l2-ctl-stds.cpp', |
| 16 |
'v4l2-ctl-streaming.cpp', |
| 17 |
'v4l2-ctl-subdev.cpp', |
| 18 |
'v4l2-ctl-tuner.cpp', |
| 19 |
'v4l2-ctl-vbi.cpp', |
| 20 |
'v4l2-ctl-vidcap.cpp', |
| 21 |
'v4l2-ctl-vidout.cpp', |
| 22 |
'v4l2-ctl.cpp', |
| 23 |
'v4l2-ctl.h', |
| 24 |
'v4l2-info.cpp', |
| 25 |
'v4l2-tpg-colors.c', |
| 26 |
'v4l2-tpg-core.c', |
| 27 |
) |
| 28 |
v4l2_ctl_sources += media_bus_format_names_h |
| 29 |
|
| 30 |
v4l2_ctl_deps = [ |
| 31 |
dep_librt, |
| 32 |
dep_threads, |
| 33 |
] |
| 34 |
|
| 35 |
v4l2_ctl_cpp_args = [] |
| 36 |
|
| 37 |
if get_option('v4l2-ctl-libv4l') |
| 38 |
v4l2_ctl_deps += [ |
| 39 |
dep_libv4l2, |
| 40 |
dep_libv4lconvert, |
| 41 |
] |
| 42 |
else |
| 43 |
v4l2_ctl_cpp_args += '-DNO_LIBV4L2' |
| 44 |
endif |
| 45 |
|
| 46 |
if not get_option('v4l2-ctl-stream-to') |
| 47 |
v4l2_ctl_cpp_args += '-DNO_STREAM_TO' |
| 48 |
endif |
| 49 |
|
| 50 |
v4l2_ctl_incdir = [ |
| 51 |
utils_common_incdir, |
| 52 |
v4l2_utils_incdir, |
| 53 |
] |
| 54 |
|
| 55 |
v4l2_ctl = executable('v4l2-ctl', |
| 56 |
v4l2_ctl_sources, |
| 57 |
install : true, |
| 58 |
dependencies : v4l2_ctl_deps, |
| 59 |
cpp_args : v4l2_ctl_cpp_args, |
| 60 |
include_directories : v4l2_ctl_incdir) |
| 61 |
|
| 62 |
man_pages += [[ meson.current_source_dir(), 'v4l2-ctl', 1 ]] |
| 63 |
|
| 64 |
v4l2_ctl_32_c_cpp_args = ['-m32', '-DNO_LIBV4L2'] |
| 65 |
v4l2_ctl_32_time64_c_cpp_args = v4l2_ctl_32_c_cpp_args + '-D_TIME_BITS=64' |
| 66 |
v4l2_ctl_32_link_args = ['-m32', '-static'] |
| 67 |
|
| 68 |
if get_option('v4l2-ctl-32') and have_m32 |
| 69 |
v4l2_ctl_32 = executable('v4l2-ctl-32', |
| 70 |
v4l2_ctl_sources, |
| 71 |
install : true, |
| 72 |
c_args : v4l2_ctl_32_c_cpp_args, |
| 73 |
cpp_args : v4l2_ctl_32_c_cpp_args, |
| 74 |
link_args : v4l2_ctl_32_link_args, |
| 75 |
include_directories : v4l2_ctl_incdir) |
| 76 |
endif |
| 77 |
|
| 78 |
if get_option('v4l2-ctl-32-time64') and have_m32 |
| 79 |
v4l2_ctl_32_time64 = executable('v4l2-ctl-32-time64', |
| 80 |
v4l2_ctl_sources, |
| 81 |
install : true, |
| 82 |
c_args : v4l2_ctl_32_c_cpp_args, |
| 83 |
cpp_args : v4l2_ctl_32_time64_c_cpp_args, |
| 84 |
link_args : v4l2_ctl_32_link_args, |
| 85 |
include_directories : v4l2_ctl_incdir) |
| 86 |
endif |