forked from alexpevzner/sane-airscan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
70 lines (64 loc) · 1.4 KB
/
meson.build
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
project('sane-airscan', 'c')
sources = [
'airscan-array.c',
'airscan-bmp.c',
'airscan-conf.c',
'airscan-devcaps.c',
'airscan-device.c',
'airscan-devid.c',
'airscan-devops.c',
'airscan-eloop.c',
'airscan-escl.c',
'airscan-http.c',
'airscan-id.c',
'airscan-ip.c',
'airscan-jpeg.c',
'airscan-log.c',
'airscan-math.c',
'airscan-mdns.c',
'airscan-netif.c',
'airscan-png.c',
'airscan-pollable.c',
'airscan-rand.c',
'airscan-trace.c',
'airscan-uuid.c',
'airscan-wsd.c',
'airscan-wsdd.c',
'airscan-xml.c',
'airscan-zeroconf.c',
'airscan.c',
'sane_strstatus.c',
]
cc = meson.get_compiler('c')
m_dep = cc.find_library('m', required : false)
shared_deps = [
m_dep,
dependency('avahi-client'),
dependency('avahi-glib'),
dependency('libjpeg'),
dependency('libpng'),
dependency('libsoup-2.4'),
dependency('libxml-2.0'),
]
shared_library(
meson.project_name(),
sources,
version: '1',
dependencies: shared_deps,
link_args : [
'-Wl,-z,nodelete',
'-Wl,--version-script=' + join_paths(meson.current_source_dir(), 'airscan.sym')
],
link_depends : [ 'airscan.sym' ],
install : true,
install_dir : 'lib/sane'
)
executable(
'airscan-discover',
sources + ['discover.c'],
dependencies: shared_deps,
install: true
)
install_man('sane-airscan.5')
install_man('airscan-discover.1')
install_data(['airscan.conf', 'dll.conf'], install_dir : 'etc/sane.d')