feat(build): use meson so I don't end up ripping my hair out
This commit is contained in:
parent
961e0472f5
commit
6e075bff4a
11 changed files with 102 additions and 89 deletions
29
meson.build
Normal file
29
meson.build
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
project('acpi-event-handler', 'c')
|
||||
|
||||
add_project_arguments([
|
||||
'-DLOG_USE_COLOR' # enable colored logs
|
||||
], language: 'c')
|
||||
|
||||
srcfiles = files(
|
||||
'src/main.c',
|
||||
'src/led.c',
|
||||
'src/acpi.c',
|
||||
'src/utils.c'
|
||||
)
|
||||
|
||||
cc = meson.get_compiler('c')
|
||||
math_dep = cc.find_library('m', required: true)
|
||||
|
||||
executable('eh', srcfiles,
|
||||
dependencies: [
|
||||
math_dep
|
||||
],
|
||||
include_directories: [
|
||||
'lib/log.c/src',
|
||||
'include'
|
||||
],
|
||||
link_with: [
|
||||
static_library('log.c', 'lib/log.c/src/log.c',
|
||||
include_directories: 'lib/log.c/src')
|
||||
]
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue