initial commit
This commit is contained in:
51
meson.build
Normal file
51
meson.build
Normal file
@@ -0,0 +1,51 @@
|
||||
project('womblic', 'c',
|
||||
version: '0.0.1',
|
||||
license: 'GPLv3')
|
||||
|
||||
add_project_arguments([
|
||||
'-DVERSION="@0@"'.format(meson.project_version()),
|
||||
'-DLOG_USE_COLOR' # enable colored logs
|
||||
], language: 'c')
|
||||
|
||||
# get all the source files for the executable
|
||||
luafiles = files(
|
||||
'src/lua/wom.c',
|
||||
'src/lua/wom_fs.c'
|
||||
)
|
||||
|
||||
subcmds = files(
|
||||
'src/subcmds/clock.c',
|
||||
'src/subcmds/dev.c',
|
||||
'src/subcmds/motd.c',
|
||||
'src/subcmds/project.c',
|
||||
'src/subcmds/subcmds.c',
|
||||
)
|
||||
|
||||
srcfiles = files(
|
||||
'src/main.c',
|
||||
'src/api.c',
|
||||
'src/conf.c'
|
||||
) + luafiles + subcmds
|
||||
|
||||
# build the executable
|
||||
executable('wom', srcfiles,
|
||||
dependencies: [
|
||||
dependency('lua', version: '>=5.1 <6.0'),
|
||||
],
|
||||
include_directories: [
|
||||
include_directories('include'),
|
||||
|
||||
include_directories('lib/log.c/src'),
|
||||
include_directories('lib/ds'),
|
||||
],
|
||||
link_with: [
|
||||
static_library('ds', 'lib/ds/ds.c',
|
||||
include_directories: 'lib/ds'),
|
||||
|
||||
static_library('log.c', 'lib/log.c/src/log.c',
|
||||
include_directories: 'lib/log.c/src'),
|
||||
]
|
||||
)
|
||||
install_data('completions/_wom.zsh',
|
||||
install_dir: '/usr/local/share/zsh/site-functions/'
|
||||
)
|
Reference in New Issue
Block a user