-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
meson.build
36 lines (31 loc) · 890 Bytes
/
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
project('lai', 'c')
# One easy way to build LAI with custom flags (such as -ffreestanding,
# -mcmodel=kernel, -mno-red-zone etc.)
# is including it as a Meson subproject and using the 'sources' and 'includes'
# variables to build your own LAI library.
sources = files(
'core/error.c',
'core/eval.c',
'core/exec.c',
'core/exec-operand.c',
'core/libc.c',
'core/ns.c',
'core/object.c',
'core/opregion.c',
'core/os_methods.c',
'core/variable.c',
'core/vsnprintf.c',
'helpers/pc-bios.c',
'helpers/pci.c',
'helpers/resource.c',
'helpers/sci.c',
'helpers/pm.c',
'drivers/ec.c',
'drivers/timer.c',
)
includes = include_directories('include')
library = static_library('lai', sources,
include_directories: includes,
pic: false)
dependency = declare_dependency(link_with: library,
include_directories: includes)