jadeite/game_payload/meson.build

41 lines
831 B
Meson
Raw Permalink Normal View History

2023-06-05 21:23:08 +00:00
# Input files
sources = [
'src/main.c',
'src/ntdll.c',
'src/ace.c',
'src/pe.c',
'src/game.c',
'src/hi3.c',
2023-06-08 15:36:22 +00:00
'src/hsr.c',
2023-06-05 21:23:08 +00:00
'src/utils.c',
2023-06-08 18:44:42 +00:00
'src/msg.c',
2023-06-05 21:23:08 +00:00
# File withheld to make abuse more difficult
'src/tp6.c'
]
resources = [
'res/hi3/glb/allocations.dat',
2023-06-08 16:38:36 +00:00
'res/hi3/glb/entries.dat',
'res/hsr/os/allocations.dat',
'res/hsr/os/entries.dat',
'res/hsr/cn/allocations.dat',
'res/hsr/cn/entries.dat'
2023-06-05 21:23:08 +00:00
]
# Generate resource files for ./res
res_files = custom_target(
'resources.[ho]',
output: [ 'resources.o', 'resources.h' ],
input: resources,
command: [ gen_res, meson.current_source_dir(), '@OUTPUT0@', '@OUTPUT1@', '@INPUT@' ]
)
shared_library(
'game_payload',
sources,
res_files,
include_directories: 'include',
name_prefix: ''
)