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