summaryrefslogtreecommitdiff
path: root/v4l2++/meson.build
blob: 2f425d606b876a008a65a381ad515e01d3b5c31a (plain)
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
libv4l2xx_sources = files([
    'src/videodevice.cpp',
    'src/pixelformats.cpp',
    'src/helpers.cpp',
])

public_headers = [
    'inc/v4l2++/videodevice.h',
    'inc/v4l2++/pixelformats.h',
    'inc/v4l2++/helpers.h',
]

private_includes = include_directories('src', 'inc')
public_includes = include_directories('inc')

libv4l2xx_deps = [ libfmt_dep ]

libv4l2xx = library('v4l2++',
                   libv4l2xx_sources,
                   install : true,
                   include_directories : [ private_includes ],
                   dependencies : libv4l2xx_deps,
                   version : meson.project_version())


libv4l2xx_dep = declare_dependency(include_directories : public_includes,
                                  link_with : libv4l2xx)

install_headers(public_headers, subdir : 'v4l2++')

pkg = import('pkgconfig')
pkg.generate(libv4l2xx)