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
|
project('libufodecode', 'c')
version = '0.3'
so_version = '0'
cc = meson.get_compiler('c')
have_sse = cc.has_argument('-msse') and cc.has_argument('-msse2')
conf = configuration_data()
conf.set('DEBUG', get_option('buildtype') == 'debug')
conf.set('HAVE_SSE', have_sse)
conf.set('IPECAMERA_WIDTH', get_option('ipecamera_width'))
configure_file(
input: 'config.h.meson.in',
output: 'config.h',
configuration: conf
)
lib = shared_library('ufodecode',
'src/ufodecode.c',
version: version,
soversion: so_version,
install: true
)
install_headers('src/ufodecode.h')
ipedec = executable('ipedec',
[ 'test/ipedec.c',
'test/timer.c' ],
link_with: lib,
include_directories: include_directories('src'),
install: true
)
pkg = import('pkgconfig')
pkg.generate(
libraries: [lib],
version: version,
name: 'ufodecode',
description: 'Decoding routines for the UFO camera'
)
|