mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-05 13:28:04 +03:00
Enough to get text on the screen, but it isn't pretty. No antialiasing, kerning, vertical placement isn't correct, probably the size isn't even quite correct, etc.
89 lines
2.3 KiB
Meson
89 lines
2.3 KiB
Meson
# sources for libsys4.a
|
|
system4 = ['afa.c',
|
|
'ain.c',
|
|
'ajp.c',
|
|
'ald.c',
|
|
'archive.c',
|
|
'buffer.c',
|
|
'cg.c',
|
|
'ex.c',
|
|
'file.c',
|
|
'fnl.c',
|
|
'instructions.c',
|
|
'pms.c',
|
|
'qnt.c',
|
|
'string.c',
|
|
'system.c',
|
|
'utfsjis.c',
|
|
'webp.c',
|
|
]
|
|
|
|
# sources for xsystem4
|
|
xsystem4 = ['audio.c',
|
|
'cJSON.c',
|
|
'draw.c',
|
|
'effect.c',
|
|
'ffi.c',
|
|
'fnl_render.c',
|
|
'format.c',
|
|
'heap.c',
|
|
'ini.c',
|
|
'input.c',
|
|
'page.c',
|
|
'resume.c',
|
|
'sact_graphics.c',
|
|
'savedata.c',
|
|
'system4.c',
|
|
'text.c',
|
|
'video.c',
|
|
'vm.c',
|
|
|
|
'hll/ACXLoader.c',
|
|
'hll/AliceLogo.c',
|
|
'hll/AliceLogo2.c',
|
|
'hll/AliceLogo3.c',
|
|
'hll/Confirm2.c',
|
|
'hll/DrawGraph.c',
|
|
'hll/DrawPluginManager.c',
|
|
'hll/File.c',
|
|
'hll/Math.c',
|
|
'hll/MsgLogManager.c',
|
|
'hll/MsgLogViewer.c',
|
|
'hll/MsgSkip.c',
|
|
'hll/OutputLog.c',
|
|
'hll/PlayMovie.c',
|
|
'hll/SACT2.c',
|
|
'hll/SengokuRanceFont.c',
|
|
'hll/SystemServiceEx.c',
|
|
]
|
|
|
|
xsystem4_deps = [libm, zlib, sdl2, sdl2ttf, sdl2mixer, ffi, gl, glew]
|
|
if chibi.found()
|
|
xsystem4_deps += chibi
|
|
xsystem4 += 'debugger.c'
|
|
add_project_arguments('-DDEBUGGER_ENABLED', language : 'c')
|
|
endif
|
|
|
|
flexgen = generator(flex,
|
|
output : '@BASENAME@.yy.c',
|
|
arguments : ['-o', '@OUTPUT@', '@INPUT@'])
|
|
|
|
bisongen = generator(bison,
|
|
output: ['@BASENAME@.tab.c', '@BASENAME@.tab.h'],
|
|
arguments : ['@INPUT@', '--defines=@OUTPUT1@', '--output=@OUTPUT0@'])
|
|
|
|
xsystem4 += flexgen.process('ini_lexer.l')
|
|
xsystem4 += bisongen.process('ini_parser.y')
|
|
|
|
libsys4 = static_library('sys4', system4,
|
|
dependencies : [libm, zlib, tj, webp],
|
|
include_directories : incdir)
|
|
|
|
executable('xsystem4', xsystem4,
|
|
dependencies : xsystem4_deps,
|
|
c_args : ['-Wno-unused-parameter'],
|
|
include_directories : incdir,
|
|
link_with : libsys4)
|
|
|
|
subdir('tools')
|