Get rid of tables in resources
This commit is contained in:
parent
6b9f9b6d93
commit
9a3d623883
@ -15,38 +15,12 @@ sources = [
|
|||||||
'src/msg.c',
|
'src/msg.c',
|
||||||
'src/tx.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')
|
if fs.exists('src/core.c')
|
||||||
# Compile the real file first (dirty hack)
|
# Compile the real file first (dirty hack)
|
||||||
core_fake_exe = executable(
|
core_fake_exe = executable(
|
||||||
'core.o',
|
'core.o',
|
||||||
'src/core.c',
|
'src/core.c',
|
||||||
res_header,
|
|
||||||
link_args: [ '-r' ], # Output an object file
|
link_args: [ '-r' ], # Output an object file
|
||||||
include_directories: include_dir
|
include_directories: include_dir
|
||||||
)
|
)
|
||||||
@ -79,8 +53,6 @@ conf = configure_file(input: 'include/config.h.in', output: 'config.h', configur
|
|||||||
shared_library(
|
shared_library(
|
||||||
'game_payload',
|
'game_payload',
|
||||||
sources,
|
sources,
|
||||||
res_header,
|
|
||||||
res_object,
|
|
||||||
core_target,
|
core_target,
|
||||||
conf,
|
conf,
|
||||||
objects: core_blob,
|
objects: core_blob,
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user