| 1 |
libv4l1_sources = files( |
| 2 |
'libv4l1-priv.h', |
| 3 |
'libv4l1.c', |
| 4 |
'log.c', |
| 5 |
) |
| 6 |
|
| 7 |
libv4l1_api = files( |
| 8 |
'../include/libv4l1-videodev.h', |
| 9 |
'../include/libv4l1.h', |
| 10 |
) |
| 11 |
|
| 12 |
install_headers(libv4l1_api) |
| 13 |
|
| 14 |
libv4l1_deps = [ |
| 15 |
dep_libv4l2, |
| 16 |
dep_threads, |
| 17 |
] |
| 18 |
|
| 19 |
libv4l1_c_args = [] |
| 20 |
|
| 21 |
if have_visibility |
| 22 |
libv4l1_c_args += ['-fvisibility=hidden'] |
| 23 |
endif |
| 24 |
|
| 25 |
libv4l1 = library('v4l1', |
| 26 |
libv4l1_sources, |
| 27 |
install : true, |
| 28 |
soversion: '0', |
| 29 |
version: '0.0.0', |
| 30 |
dependencies : libv4l1_deps, |
| 31 |
c_args : libv4l1_c_args, |
| 32 |
include_directories : v4l2_utils_incdir) |
| 33 |
|
| 34 |
dep_libv4l1 = declare_dependency(link_with : libv4l1) |
| 35 |
meson.override_dependency('libv4l1', dep_libv4l1) |
| 36 |
|
| 37 |
pkg.generate( |
| 38 |
libv4l1, |
| 39 |
name : 'libv4l1', |
| 40 |
version : meson.project_version(), |
| 41 |
requires_private : 'libv4l2', |
| 42 |
description : 'v4l1 compatibility library') |
| 43 |
|
| 44 |
if not get_option('v4l-wrappers') |
| 45 |
subdir_done() |
| 46 |
endif |
| 47 |
|
| 48 |
v4l1compat_sources = files( |
| 49 |
'v4l1compat.c', |
| 50 |
) |
| 51 |
|
| 52 |
v4l1compat_deps = [ |
| 53 |
dep_libv4l1, |
| 54 |
] |
| 55 |
|
| 56 |
libv4l1privdir = get_option('prefix') / get_option('libdir') / get_option('libv4l1subdir') |
| 57 |
|
| 58 |
v4l1compat = shared_module('v4l1compat', |
| 59 |
v4l1compat_sources, |
| 60 |
name_prefix : '', |
| 61 |
install : true, |
| 62 |
install_dir : libv4l1privdir, |
| 63 |
c_args : v4l2_wrapper_args, |
| 64 |
dependencies : v4l1compat_deps, |
| 65 |
include_directories : v4l2_utils_incdir) |