* 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>
29 lines
747 B
Meson
29 lines
747 B
Meson
project('tree-sitter', 'c',
|
|
license: 'MIT',
|
|
meson_version: '>=0.55.0',
|
|
)
|
|
|
|
cc = meson.get_compiler('c')
|
|
|
|
if cc.has_argument('--std=gnu99')
|
|
add_project_arguments('--std=gnu99', language: ['c'])
|
|
elif cc.has_argument('--std=c99')
|
|
add_project_arguments('--std=c99', language: ['c'])
|
|
endif
|
|
|
|
tree_sitter_path = 'tree-sitter'
|
|
|
|
tree_sitter_files = ['lib/src/lib.c']
|
|
|
|
tree_sitter_inc = [include_directories('lib/src'), include_directories('lib/include')]
|
|
|
|
libtree_sitter = static_library('tree_sitter', tree_sitter_files,
|
|
include_directories: tree_sitter_inc,
|
|
implicit_include_directories: false,
|
|
install: not meson.is_subproject()
|
|
)
|
|
|
|
tree_sitter_dep = declare_dependency(
|
|
link_with: libtree_sitter,
|
|
include_directories: tree_sitter_inc
|
|
)
|