mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-16 12:19:45 +00:00
libr/syscall: fix syscall sdb generation (#10694)
sync meson.build with Makefile
This commit is contained in:
parent
b12837b52a
commit
54f171e8f9
@ -21,10 +21,29 @@ sdb_files = [
|
|||||||
'windows-x86-64'
|
'windows-x86-64'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
sdbtmp_gen_path = '@0@/@1@'.format(meson.current_source_dir(), 'gen.sh')
|
||||||
|
sdbtmp_gen_cmd = [
|
||||||
|
py3_exe,
|
||||||
|
'-c',
|
||||||
|
'from sys import argv; __import__("os").system("@0@ <%s >%s" % (argv[1], argv[2]))'.format(sdbtmp_gen_path),
|
||||||
|
'@INPUT@',
|
||||||
|
'@OUTPUT@'
|
||||||
|
]
|
||||||
|
|
||||||
foreach file : sdb_files
|
foreach file : sdb_files
|
||||||
|
outfile_tmp = '@0@.sdb.txt.tmp'.format(file)
|
||||||
|
outfile_tmp_dep = custom_target(outfile_tmp,
|
||||||
|
input: '@0@.sdb.txt'.format(file),
|
||||||
|
output: outfile_tmp,
|
||||||
|
command: sdbtmp_gen_cmd,
|
||||||
|
build_by_default: true,
|
||||||
|
build_always: false,
|
||||||
|
install: false
|
||||||
|
)
|
||||||
|
|
||||||
outfile = '@0@.sdb'.format(file)
|
outfile = '@0@.sdb'.format(file)
|
||||||
custom_target(outfile,
|
custom_target(outfile,
|
||||||
input: '@0@.sdb.txt'.format(file),
|
input: [outfile_tmp_dep],
|
||||||
output: outfile,
|
output: outfile,
|
||||||
command: sdb_gen_cmd,
|
command: sdb_gen_cmd,
|
||||||
depends: sdb_exe,
|
depends: sdb_exe,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user