shrub/meson.build

30 lines
880 B
Meson
Raw Normal View History

2018-12-26 06:44:59 +03:00
project('libent', 'c', 'cpp',
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 21:56:10 +03:00
ent_dep = declare_dependency(sources : ent_sources,
compile_args : ['-Wall', '-pedantic'],
include_directories : inc)
2018-12-27 21:27:28 +03:00
libent = both_libraries('ent',
2018-12-27 21:56:10 +03:00
dependencies : [ent_dep],
install : false)
2018-12-26 06:44:59 +03:00
pkg_mod = import('pkgconfig')
pkg_mod.generate(libraries : libent,
version : '0.0',
name : 'libent',
filebase : 'ent',
description : 'A library to get entropy.')
2018-12-27 22:19:59 +03:00
ent_sample = executable('sample',
['sample.c'],
dependencies : [ent_dep])