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 22:53:34 +03:00
|
|
|
libent_dep = declare_dependency(sources : ent_sources,
|
|
|
|
compile_args : ['-Wall', '-pedantic'],
|
|
|
|
include_directories : inc)
|
2018-12-27 21:56:10 +03:00
|
|
|
|
2018-12-27 21:27:28 +03:00
|
|
|
libent = both_libraries('ent',
|
2018-12-27 22:53:34 +03:00
|
|
|
dependencies : [libent_dep],
|
2018-12-27 21:56:10 +03:00
|
|
|
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'],
|
2018-12-27 22:53:34 +03:00
|
|
|
dependencies : [libent_dep])
|