forked from uACPI/uACPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
51 lines (46 loc) · 1.4 KB
/
meson.build
File metadata and controls
51 lines (46 loc) · 1.4 KB
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
project('uacpi', meson_version: '>=1.1', version: '3.2.0')
src = [
'source/tables.c',
'source/types.c',
'source/uacpi.c',
'source/utilities.c',
'source/interpreter.c',
'source/opcodes.c',
'source/namespace.c',
'source/stdlib.c',
'source/shareable.c',
'source/opregion.c',
'source/default_handlers.c',
'source/io.c',
'source/notify.c',
'source/sleep.c',
'source/registers.c',
'source/resources.c',
'source/event.c',
'source/mutex.c',
'source/osi.c',
]
sources = files(src)
includes = include_directories('include')
if get_option('install_pkgconfig')
install_data(sources, install_dir: get_option('datadir') / 'uacpi', preserve_path: true)
install_subdir('include', install_dir: get_option('datadir') / 'uacpi')
sourcelist = ''
foreach f : src
if sourcelist != ''
sourcelist += ';'
endif
sourcelist += f
endforeach
import('pkgconfig').generate(
name: 'uacpi',
description: 'A portable and easy-to-integrate implementation of the Advanced Configuration and Power Interface (ACPI)',
version: meson.project_version(),
dataonly: true,
variables: [
'installdir=${pc_sysrootdir}/' + get_option('prefix') / get_option('datadir') / 'uacpi/',
'includedir=${installdir}/include/',
'sourcefiles=' + sourcelist,
]
)
endif