libr/syscall: fix syscall sdb generation (#10694)

sync meson.build with Makefile
This commit is contained in:
Riccardo Schirone 2018-07-11 09:57:41 +02:00 committed by GitHub
parent b12837b52a
commit 54f171e8f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,10 +21,29 @@ sdb_files = [
'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
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)
custom_target(outfile,
input: '@0@.sdb.txt'.format(file),
input: [outfile_tmp_dep],
output: outfile,
command: sdb_gen_cmd,
depends: sdb_exe,