Move common assembly into a separate file

This commit is contained in:
mkrsym1
2023-06-25 02:19:24 +03:00
parent 22a7fb2a60
commit 55fd21feef
6 changed files with 78 additions and 124 deletions

View File

@ -1,5 +1,11 @@
include_dir = include_directories('include')
str_include_dir = join_paths(meson.current_source_dir(), 'include')
# Assemble the payload that will be injected into the launcher
inj_payload_bin = asm_gen.process('src/payload.asm')
inj_payload_bin = asm_gen.process(
'src/payload.asm',
extra_args: [ str_include_dir ]
)
# Embed it into the library
inj_res_files = custom_target(
@ -14,7 +20,7 @@ executable(
'jadeite',
'src/injector.c',
inj_res_files,
include_directories: 'include',
include_directories: include_dir,
name_prefix: ''
)