19 lines
494 B
Meson
19 lines
494 B
Meson
|
# Assemble the payload that will be injected into the game
|
||
|
l_payload_bin = asm_gen.process('src/payload.asm')
|
||
|
|
||
|
# Embed it into the library
|
||
|
l_res_files = custom_target(
|
||
|
'lpayload.[oh]',
|
||
|
output: [ 'lpayload.o', 'lpayload.h' ],
|
||
|
input: [ l_payload_bin ],
|
||
|
command: [ gen_res, './injector/launcher_payload', '@OUTPUT0@', '@OUTPUT1@', '@INPUT@' ]
|
||
|
)
|
||
|
|
||
|
shared_library(
|
||
|
'launcher_payload',
|
||
|
'src/dll.c',
|
||
|
l_res_files,
|
||
|
include_directories: '../include',
|
||
|
name_prefix: ''
|
||
|
)
|