quickerNES/meson.build

59 lines
1.8 KiB
Meson
Raw Permalink Normal View History

project('quickerNES','c','cpp',
version: '1.0.0',
license: 'GPL-3.0-only',
default_options : ['cpp_std=c++20', 'default_library=shared', 'buildtype=release']
)
2024-01-14 09:31:17 +00:00
# Getting page alignment option
2024-01-14 09:13:28 +00:00
pageSize = get_option('CPUFunctionAlignment')
# Loading dependencies
2024-01-14 09:31:17 +00:00
subdir('source')
2024-01-14 09:31:17 +00:00
# Common application flags
commonCompileArgs = [ '-Wfatal-errors', '-Wall']
2024-01-12 18:14:57 +00:00
# Building playback tool
quickerNESPlayerSrc = [
2024-01-10 19:11:49 +00:00
'extern/hqn/hqn.cpp',
'extern/hqn/hqn_gui_controller.cpp',
'extern/hqn/hqn_surface.cpp',
]
# Do not build any targets if this is a subproject
if meson.is_subproject() == false
if get_option('buildPlayer') == true
executable('player',
'source/player.cpp',
cpp_args : [ commonCompileArgs, '-DNCURSES' ],
dependencies : [ quickerNESDependency, toolDependency, dependency('sdl2'), dependency('SDL2_image') ],
include_directories : include_directories(['source']),
link_args : [ '-lncurses' ],
sources : quickerNESPlayerSrc
)
endif
# Building tester tool for QuickerNES
quickerNESTester = executable('quickerNESTester',
'source/tester.cpp',
cpp_args : [ commonCompileArgs, '-Werror' ],
dependencies : [ quickerNESDependency, toolDependency ],
include_directories : include_directories(['../extern/json'])
)
2024-01-11 19:23:32 +00:00
# Building tester tool for the original QuickNES
2024-01-12 18:14:57 +00:00
quickNESTester = executable('quickNESTester',
'source/tester.cpp',
cpp_args : [ commonCompileArgs, '-w', '-DDISABLE_AUTO_FILE', '-D__LIBRETRO__', '-DNDEBUG', '-DBLARGG_NONPORTABLE' ],
dependencies : [ quickNESDependency, toolDependency ],
include_directories : include_directories(['../extern/json'])
)
# Building tests
subdir('tests')
2024-01-12 18:14:57 +00:00
endif # If not subproject