msgba/meson.build

42 lines
908 B
Meson

project('tech.owlcode.msgba', 'c')
add_global_arguments('-std=c11', '-D_DEFAULT_SOURCE', language : 'c')
inc = include_directories('include')
sources = [
'src/main.c',
'src/player.c',
'src/core_controller.c',
'src/multiplayer_controller.c',
'src/packet.c',
'src/packet/hello.c',
'src/packet/send_frame.c',
'src/packet/key_down.c',
'src/packet/save_request.c',
'src/packet/save_response.c',
'src/client_connection_data.c',
]
inc = [
'include'
]
link_arguments = [
'-lmgba',
'-lpthread'
]
executable('msgba',
sources,
include_directories : inc,
install : true,
link_args : link_arguments,
)
doxygen = find_program('doxygen', required : false)
if doxygen.found()
message('Doxygen found')
run_target('docs', command : [doxygen, meson.source_root() + '/Doxyfile'])
else
warning('Documentation disabled without doxygen')
endif