summaryrefslogtreecommitdiff
path: root/lib/meson.build
blob: 0931eef92fdc65cfeb93aa840dc7a51a3c6609e6 (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
33
34
35
36
37
38
39
40
# SPDX-License-Identifier: CC0-1.0

libuvcgadget_sources = files([
  'configfs.c',
  'events.c',
  'jpg-source.c',
  'slideshow-source.c',
  'stream.c',
  'test-source.c',
  'timer.c',
  'uvc.c',
  'v4l2.c',
  'v4l2-source.c',
  'video-buffers.c',
  'video-source.c',
])

if libcamera.found()
  libuvcgadget_sources += files(['libcamera-source.cpp'])
endif

libuvcgadget = shared_library('uvcgadget',
                              libuvcgadget_sources,
                              dependencies : libcamera,
                              version : uvc_gadget_version,
                              install : true,
                              include_directories : includes)

libuvcgadget_dep = declare_dependency(sources : [
                                          uvcgadget_public_headers,
                                     ],
                                     include_directories : includes,
                                     link_with : libuvcgadget)

pkg_mod = import('pkgconfig')
pkg_mod.generate(libuvcgadget,
                 description : 'UVC Gadget support library',
                 subdirs : 'uvcgadget')

meson.override_dependency('uvcgadget', libuvcgadget_dep)