1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
|
libv4lconvert_sources = files(
'bayer.c',
'control/libv4lcontrol-priv.h',
'control/libv4lcontrol.c',
'control/libv4lcontrol.h',
'cpia1.c',
'crop.c',
'flip.c',
'helper-funcs.h',
'jidctflt.c',
'jl2005bcd.c',
'jpeg.c',
'jpgl.c',
'libv4lconvert-priv.h',
'libv4lconvert.c',
'libv4lsyscall-priv.h',
'mr97310a.c',
'nv12_16l16.c',
'pac207.c',
'processing/autogain.c',
'processing/gamma.c',
'processing/libv4lprocessing-priv.h',
'processing/libv4lprocessing.c',
'processing/libv4lprocessing.h',
'processing/whitebalance.c',
'rgbyuv.c',
'se401.c',
'sn9c10x.c',
'sn9c2028-decomp.c',
'sn9c20x.c',
'spca501.c',
'spca561-decompress.c',
'sq905c.c',
'stv0680.c',
'tinyjpeg-internal.h',
'tinyjpeg.c',
'tinyjpeg.h',
)
libv4lconvert_api = files(
'../include/libv4lconvert.h',
)
install_headers(libv4lconvert_api)
libv4lconvert_deps = [
dep_libm,
dep_librt,
]
libv4lconvert_priv_libs = [
'-lm',
'-lrt',
]
libv4lconvertprivdir = get_option('prefix') / get_option('libdir') / get_option('libv4lconvertsubdir')
libv4lconvert_c_args = ['-DLIBV4LCONVERT_PRIV_DIR="@0@"'.format(libv4lconvertprivdir)]
if dep_jpeg.found()
libv4lconvert_deps += dep_jpeg
libv4lconvert_priv_libs += dep_jpeg_priv_libs
libv4lconvert_sources += files(
'jpeg_memsrcdest.c',
'jpeg_memsrcdest.h'
)
libv4lconvert_c_args += [
'-DHAVE_JPEG',
]
endif
if have_fork
libv4lconvert_sources += files(
'helper.c',
)
ov511_decomp_sources = files(
'ov511-decomp.c',
)
ov511_decomp = executable('ov511-decomp',
ov511_decomp_sources,
install : true,
install_dir : libv4lconvertprivdir,
include_directories : v4l2_utils_incdir)
ov518_decomp_sources = files(
'ov518-decomp.c',
)
ov518_decomp = executable('ov518-decomp',
ov518_decomp_sources,
install : true,
install_dir : libv4lconvertprivdir,
include_directories : v4l2_utils_incdir)
endif
if have_visibility and have_fork
libv4lconvert_c_args += [
'-fvisibility=hidden',
'-DHAVE_LIBV4LCONVERT_HELPERS',
]
endif
libv4lconvert = library('v4lconvert',
libv4lconvert_sources,
soversion: '0',
version: '0.0.0',
install : true,
dependencies : libv4lconvert_deps,
c_args : libv4lconvert_c_args,
include_directories : v4l2_utils_incdir)
dep_libv4lconvert = declare_dependency(link_with : libv4lconvert)
meson.override_dependency('libv4lconvert', dep_libv4lconvert)
pkg.generate(
libv4lconvert,
name : 'libv4lconvert',
version : meson.project_version(),
description : 'v4l format conversion library')
|