1
1
project (' rizin' , ' c' ,
2
2
version : ' v0.8.0' ,
3
- license : ' LGPL3 ' ,
3
+ license : ' LGPL-3.0-only ' ,
4
4
meson_version : ' >=0.57.0' ,
5
5
default_options : [
6
6
' buildtype=debugoptimized' ,
@@ -91,14 +91,14 @@ if cc.has_argument('-Wenum-compare')
91
91
endif
92
92
93
93
if cc.has_argument(' --std=gnu99' )
94
- add_global_arguments (' --std=gnu99' , language : [' c' , ' cpp' ])
94
+ add_project_arguments (' --std=gnu99' , language : [' c' , ' cpp' ])
95
95
elif cc.has_argument(' --std=c99' )
96
- add_global_arguments (' --std=c99' , language : [' c' , ' cpp' ])
96
+ add_project_arguments (' --std=c99' , language : [' c' , ' cpp' ])
97
97
endif
98
98
99
99
# Sanitize correct usage of rz_strf()
100
100
if cc.has_argument(' -Werror=sizeof-pointer-memaccess' )
101
- add_global_arguments (' -Werror=sizeof-pointer-memaccess' , language : [' c' , ' cpp' ])
101
+ add_project_arguments (' -Werror=sizeof-pointer-memaccess' , language : [' c' , ' cpp' ])
102
102
endif
103
103
104
104
if cc.has_argument(' -Wimplicit-fallthrough=3' )
@@ -117,17 +117,17 @@ endif
117
117
118
118
if get_option (' default_library' ) == ' shared'
119
119
if cc.has_argument(' -fvisibility=hidden' )
120
- add_global_arguments (' -fvisibility=hidden' , language : ' c' )
120
+ add_project_arguments (' -fvisibility=hidden' , language : ' c' )
121
121
endif
122
122
endif
123
123
124
124
add_project_arguments ([' -DRZ_PLUGIN_INCORE=1' ], language : ' c' )
125
125
b_sanitize_opt = get_option (' b_sanitize' )
126
126
if (b_sanitize_opt.contains(' address' ) or b_sanitize_opt.contains(' undefined' )) and cc.get_id() == ' clang'
127
- add_global_arguments (' -shared-libasan' , language : ' c' )
128
- add_global_link_arguments (' -shared-libasan' , language : ' c' )
129
- add_global_arguments (' -shared-libasan' , language : ' c' , native : true )
130
- add_global_link_arguments (' -shared-libasan' , language : ' c' , native : true )
127
+ add_project_arguments (' -shared-libasan' , language : ' c' )
128
+ add_project_link_arguments (' -shared-libasan' , language : ' c' )
129
+ add_project_arguments (' -shared-libasan' , language : ' c' , native : true )
130
+ add_project_link_arguments (' -shared-libasan' , language : ' c' , native : true )
131
131
endif
132
132
133
133
fs = import (' fs' )
@@ -366,7 +366,7 @@ foreach it : ccs
366
366
have_pthread = it_th.found() and it_machine.system() != ' windows'
367
367
if it_machine.system() == ' sunos'
368
368
# workaround for Solaris until https://github.com/mesonbuild/meson/issues/4328 is fixed
369
- it_mth = declare_dependency (link_args : ' -lm' , native : it_native )
369
+ it_mth = declare_dependency (link_args : ' -lm' )
370
370
else
371
371
it_mth = it_cc.find_library (' m' , required : false , static : is_static_build)
372
372
endif
@@ -569,7 +569,7 @@ if git_exe.found() and fs.exists('.git')
569
569
build_always_stale : true ,
570
570
build_by_default : true ,
571
571
output : ' gittip' ,
572
- command : [py3_exe, git_exe_repo_py, git_exe, repo, ' rev-parse' , ' HEAD' ],
572
+ command : [py3_exe, git_exe_repo_py, git_exe, repo, ' @OUTPUT@ ' , ' rev-parse' , ' HEAD' ],
573
573
install : true ,
574
574
install_dir : rizin_datdir_rz
575
575
)
0 commit comments