Files
nunuhara_xsystem4/src/meson.build
T
Nunuhara Cabbage 6a4d11f3de Use libffi for library calls
Use libffi to portably call arbitrary functions at runtime, rather than
forcing library functions to use a standard prototype.
2020-01-07 22:48:29 -08:00

71 lines
1.8 KiB
Meson

# sources for libsys4.a
system4 = ['ain.c',
'ald.c',
'cg.c',
'instructions.c',
'qnt.c',
'string.c',
'system.c',
'utfsjis.c',
]
# sources for xsystem4
xsystem4 = ['audio.c',
'cJSON.c',
'draw.c',
'effect.c',
'ffi.c',
'file.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/MsgSkip.c',
'hll/OutputLog.c',
'hll/PlayMovie.c',
'hll/SACT2.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
libsys4 = static_library('sys4', system4,
dependencies : [libm, zlib],
include_directories : incdir)
executable('xsystem4', xsystem4,
dependencies : xsystem4_deps,
c_args : ['-Wno-unused-parameter'],
include_directories : incdir,
link_with : libsys4)
executable('aindump', ['aindump/aindump.c', 'aindump/dasm.c'],
dependencies : [libm, zlib],
include_directories : incdir,
link_with : libsys4)