rizin/subprojects/xxhash/meson.build
amibranch 8e6b764fb5
build: Improved meson-build to use rizin as subproject (#4684)
* Setting GNU99/C99 standard for subprojects
* Remove use of `add_global_arguments`
* Added extern "C" linkage specification to some public headers of rizin
* Changed the meson_git_wrapper.py-script to explicitly specify the output-path
* Made the RIZIN_BUILD_PATH conditional in the integration-test meson-build

Co-authored-by: amibranch <amibranch@users.noreply.github.com>
2024-10-29 23:59:42 +08:00

24 lines
578 B
Meson

project('xxhash', 'c',
# library files are BSD licensed. xxhsum utility is GPL licensed.
version : '0.6.5',
license: 'BSD-2-Clause AND GPL-2.0-or-later',
meson_version: '>=0.55.0',
)
cc = meson.get_compiler('c')
if cc.has_argument('--std=c99')
add_project_arguments('--std=c99', language: ['c'])
endif
inc = include_directories('.')
libxxhash = library('xxhash',
['xxhash.c'],
include_directories : inc,
version : meson.project_version(),
install : false)
xxhash_dep = declare_dependency(
include_directories : inc,
link_with : libxxhash)