mirror of
https://github.com/likle/cwalk.git
synced 2026-10-28 09:44:01 +00:00
30 lines
574 B
Meson
30 lines
574 B
Meson
project('cwalk', 'c',
|
|
license: 'MIT',
|
|
version: '1.2.9',
|
|
meson_version: '>= 0.57.0'
|
|
)
|
|
|
|
cwalk_inc = include_directories('include')
|
|
|
|
cwalk_c_args = []
|
|
if get_option('default_library') == 'shared'
|
|
cwalk_c_args += '-DCWK_SHARED'
|
|
endif
|
|
|
|
cwalk = library('cwalk', 'src/cwalk.c',
|
|
install: true,
|
|
include_directories: cwalk_inc,
|
|
c_args: cwalk_c_args
|
|
)
|
|
|
|
install_headers('include/cwalk.h')
|
|
|
|
cwalk_dep = declare_dependency(include_directories: 'include', link_with: cwalk)
|
|
|
|
if get_option('ENABLE_TESTS')
|
|
subdir('test')
|
|
endif
|
|
|
|
pkg = import('pkgconfig')
|
|
pkg.generate(cwalk)
|