41 lines
831 B
Meson
41 lines
831 B
Meson
# Input files
|
|
sources = [
|
|
'src/main.c',
|
|
'src/ntdll.c',
|
|
'src/ace.c',
|
|
'src/pe.c',
|
|
'src/game.c',
|
|
'src/hi3.c',
|
|
'src/hsr.c',
|
|
'src/utils.c',
|
|
'src/msg.c',
|
|
|
|
# File withheld to make abuse more difficult
|
|
'src/tp6.c'
|
|
]
|
|
resources = [
|
|
'res/hi3/glb/allocations.dat',
|
|
'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'
|
|
]
|
|
|
|
# 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: ''
|
|
)
|