forked from rizinorg/rizin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
51 lines (45 loc) · 1.3 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
rz_type_sources = [
'base.c',
'format.c',
'function.c',
'helpers.c',
'path.c',
'serialize_functions.c',
'serialize_types.c',
'type.c',
'typeclass.c',
'parser/c_cpp_parser.c',
'parser/types_parser.c',
'parser/types_storage.c',
]
r = run_command(py3_exe, check_meson_subproject_py, 'tree-sitter-c', check: false)
if r.returncode() == 1 and get_option('subprojects_check')
error('Subprojects are not updated. Please run `git clean -dxff subprojects/` to delete all local subprojects directories. If you want to compile against current subprojects then set option `subprojects_check=false`.')
endif
tree_sitter_c_dep = dependency('tree-sitter-c')
rz_type_inc = [
platform_inc,
'parser',
]
rz_type = library('rz_type', rz_type_sources,
include_directories: rz_type_inc,
dependencies: [
rz_util_dep,
tree_sitter_c_dep,
lrt
],
install: true,
implicit_include_directories: false,
install_rpath: rpath_lib,
soversion: rizin_libversion,
version: rizin_version,
name_suffix: lib_name_suffix,
name_prefix: lib_name_prefix,
)
rz_type_dep = declare_dependency(link_with: rz_type,
include_directories: rz_type_inc)
meson.override_dependency('rz_type', rz_type_dep)
modules += { 'rz_type': {
'target': rz_type,
'dependencies': ['rz_util']
}}