feat(build): use meson so I don't end up ripping my hair out
This commit is contained in:
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')
|
||||
]
|
||||
)
|
Reference in New Issue
Block a user