Get rid of tables in resources

This commit is contained in:
mkrsym1
2023-08-04 23:01:53 +03:00
parent 6b9f9b6d93
commit 9a3d623883
9 changed files with 0 additions and 28 deletions

View File

@ -15,38 +15,12 @@ sources = [
'src/msg.c',
'src/tx.c'
]
resources = [
'res/hi3/glb.dat',
'res/hi3/sea.dat',
'res/hi3/cn.dat',
'res/hi3/tw.dat',
'res/hi3/kr.dat',
'res/hi3/jp.dat',
'res/hsr/os.dat',
'res/hsr/cn.dat'
]
# Generate resource files for ./res
res_header = custom_target(
'resources.h',
output: 'resources.h',
input: resources,
command: [ gen_res, '--header', meson.current_source_dir(), '@OUTPUT0@', '@INPUT@' ]
)
res_object = custom_target(
'resources.o',
output: 'resources.o',
input: resources,
command: [ gen_res, '--object', meson.current_source_dir(), '@OUTPUT0@', '@INPUT@' ]
)
if fs.exists('src/core.c')
# Compile the real file first (dirty hack)
core_fake_exe = executable(
'core.o',
'src/core.c',
res_header,
link_args: [ '-r' ], # Output an object file
include_directories: include_dir
)
@ -79,8 +53,6 @@ conf = configure_file(input: 'include/config.h.in', output: 'config.h', configur
shared_library(
'game_payload',
sources,
res_header,
res_object,
core_target,
conf,
objects: core_blob,