shrub/meson.build

23 lines
653 B
Meson
Raw Normal View History

2018-12-27 23:27:02 +03:00
project('libent', 'c',
2018-12-26 06:44:59 +03:00
default_options : ['c_std=c99', 'cpp_std=c++11'],
version : '0.0.1',
license : 'MIT')
2018-12-27 21:27:28 +03:00
subdir('include/ent')
2018-12-26 06:44:59 +03:00
2018-12-27 21:27:28 +03:00
inc = include_directories('include')
2018-12-27 09:03:44 +03:00
2018-12-27 21:27:28 +03:00
ent_sources = ['ent.c']
2018-12-27 09:03:44 +03:00
2018-12-27 23:27:02 +03:00
libent = static_library('ent',
sources : ent_sources,
include_directories : inc,
c_args : ['-Wall', '-pedantic'],
2018-12-27 21:56:10 +03:00
install : false)
2018-12-26 06:44:59 +03:00
2018-12-27 23:27:02 +03:00
libent_dep = declare_dependency(include_directories : inc, link_with : libent)
2018-12-27 22:19:59 +03:00
ent_sample = executable('sample',
['sample.c'],
2018-12-27 22:53:34 +03:00
dependencies : [libent_dep])