22 lines
526 B
Meson
22 lines
526 B
Meson
# Assemble the payload that will be injected into the launcher
|
|
inj_payload_bin = asm_gen.process('src/payload.asm')
|
|
|
|
# Embed it into the library
|
|
inj_res_files = custom_target(
|
|
'ipayload.[oh]',
|
|
output: [ 'ipayload.o', 'ipayload.h' ],
|
|
input: [ inj_payload_bin ],
|
|
command: [ gen_res, './injector', '@OUTPUT0@', '@OUTPUT1@', '@INPUT@' ]
|
|
)
|
|
|
|
# Main injector exe
|
|
executable(
|
|
'jadeite',
|
|
'src/injector.c',
|
|
inj_res_files,
|
|
include_directories: 'include',
|
|
name_prefix: ''
|
|
)
|
|
|
|
subdir('launcher_payload')
|