mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-23 23:33:45 +02:00
41 lines
881 B
Meson
41 lines
881 B
Meson
embedded_assets = [
|
|
'icon.png',
|
|
'gamecontrollerdb.txt'
|
|
]
|
|
|
|
if get_option('cjk_fallback_font') == true
|
|
embedded_assets += 'wqymicrohei.ttf'
|
|
else
|
|
embedded_assets += 'liberation.ttf'
|
|
endif
|
|
|
|
embedded_assets_f = files(embedded_assets)
|
|
|
|
count = 0
|
|
foreach file : embedded_assets_f
|
|
global_sources += custom_target(embedded_assets[count],
|
|
input: file,
|
|
output: '@0@.xxd'.format(embedded_assets[count]),
|
|
command: [
|
|
embedtool,
|
|
'@INPUT@',
|
|
'@OUTPUT@',
|
|
'mkxp_assets_@0@'.format(embedded_assets[count].replace('.', '_')),
|
|
],
|
|
)
|
|
count += 1
|
|
endforeach
|
|
|
|
if is_libretro
|
|
global_sources += custom_target(
|
|
'GMGSx',
|
|
input: 'GMGSx.sf2',
|
|
output: 'GMGSx.sf2.cpp',
|
|
command: [
|
|
embedtool,
|
|
'@INPUT@',
|
|
'@OUTPUT@',
|
|
'mkxp_gmgsx_sf2',
|
|
],
|
|
)
|
|
endif
|