meson: correctly embed sandbox shell when asked

Change-Id: I2f6c0d42245204a516d2e424eea26a6391e975ad
This commit is contained in:
Qyriad
2024-04-18 16:15:58 -06:00
parent a326344253
commit 111db8b38f
4 changed files with 31 additions and 2 deletions
+18
View File
@@ -10,6 +10,24 @@ foreach header : [ 'schema.sql', 'ca-specific-schema.sql' ]
)
endforeach
if enable_embedded_sandbox_shell
hexdump = find_program('hexdump', required : true)
embedded_sandbox_shell_gen = custom_target(
'embedded-sandbox-shell.gen.hh',
command : [
hexdump,
'-v',
'-e',
'1/1 "0x%x," "\n"'
],
input : busybox.full_path(),
output : 'embedded-sandbox-shell.gen.hh',
capture : true,
feed : true,
)
libstore_generated_headers += embedded_sandbox_shell_gen
endif
libstore_sources = files(
'binary-cache-store.cc',
'build-result.cc',