diff --git a/libr/syscall/d/meson.build b/libr/syscall/d/meson.build index b8907d4e0c..d83f92ace1 100644 --- a/libr/syscall/d/meson.build +++ b/libr/syscall/d/meson.build @@ -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,