Skip to content

Commit

Permalink
fix(libstore): correctly trigger embedded sandbox shell logic
Browse files Browse the repository at this point in the history
Change-Id: I8131c7a94b3cd54d7e75fcdddf2fb8d561b6e38f
  • Loading branch information
yuyuyureka committed Dec 11, 2024
1 parent 4f5e5e9 commit 92ed9fe
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions lix/libstore/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,6 @@ foreach header : [ 'schema.sql', 'ca-specific-schema.sql' ]
)
endforeach

if enable_embedded_sandbox_shell
hexdump = find_program('hexdump', required : true, native : 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_settings_headers = []

file_transfer_setting_definitions = files(
Expand Down Expand Up @@ -311,7 +293,26 @@ cpp_str_defines = {
'NIX_MAN_DIR': mandir,
}

if busybox.found()
if enable_embedded_sandbox_shell
hexdump = find_program('hexdump', required : true, native : 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
cpp_str_defines += {
'SANDBOX_SHELL': '__embedded_sandbox_shell__'
}
elif busybox.found()
cpp_str_defines += {
'SANDBOX_SHELL': busybox.full_path()
}
Expand Down

0 comments on commit 92ed9fe

Please sign in to comment.