File: meson.build

package info (click to toggle)
libmanette 0.2.12-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 744 kB
  • sloc: ansic: 4,854; sh: 63; makefile: 7; xml: 6; javascript: 5
file content (68 lines) | stat: -rw-r--r-- 1,684 bytes parent folder | download
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
project('libmanette','c',
  version: '0.2.12',
  meson_version: '>= 0.53.0',
)

gnome = import('gnome')

prefix = get_option('prefix')
libexecdir = prefix / get_option('libexecdir')
datadir = prefix / get_option('datadir')

confinc = include_directories('.')
srcinc = include_directories('src')

libmanette_version = meson.project_version()
libmanette_api_version = '0.2'
libmanette_module = 'manette-' + libmanette_api_version

glib_version = '>= 2.50'
gudev_version = '>= 1.0'
libevdev_version = '>= 1.4.5'

gio = dependency ('gio-2.0', version: glib_version)
glib = dependency ('glib-2.0', version: glib_version)
gobject = dependency ('gobject-2.0', version: glib_version)
gudev = dependency ('gudev-1.0', version: gudev_version, required : get_option('gudev'))
libevdev = dependency ('libevdev', version: libevdev_version)
hidapi = dependency ('hidapi-hidraw')

config_h = configuration_data()

configure_file(
  output: 'config.h',
  configuration: config_h,
)

subdir('src')
if get_option('build-tests')
  subdir('tests')
endif
if get_option('doc')
  subdir('doc')
endif
if get_option('demos')
  subdir('demos')
endif

summary(
  {
    'Demos': get_option('demos'),
    'Build tests': get_option('build-tests'),
    'Install tests': get_option('install-tests'),
  }, section: 'Demos and tests')
summary(
  {
    'Documentation': get_option('doc'),
    'Introspection': get_option('introspection'),
    'Vala bindings': get_option('vapi'),
  }, section: 'Documentation and introspection')
summary(
  {
    'gudev': get_option('gudev').enabled(),
  }, section: 'Optional dependencies')
summary(
  {
    'prefix': prefix,
    'libexecdir': libexecdir,
  }, section: 'Directories')