Turned on all the warnings I could handle and made them into errors then fixed them all. Worldbuilder needs a refactor in random_path.
This commit is contained in:
parent
f3f875ee80
commit
128fc4f540
19 changed files with 85 additions and 85 deletions
48
meson.build
48
meson.build
|
@ -9,33 +9,38 @@ ftxui_dom = dependency('ftxui-dom')
|
|||
ftxui_component = dependency('ftxui-component')
|
||||
sfml = dependency('sfml')
|
||||
freetype2 = dependency('freetype2')
|
||||
thread_dep = dependency('threads')
|
||||
|
||||
dependencies = [
|
||||
fmt, ftxui_screen, ftxui_dom,
|
||||
ftxui_component, json,
|
||||
sfml, freetype2
|
||||
sfml, freetype2, thread_dep
|
||||
]
|
||||
|
||||
runtests = executable('runtests', [
|
||||
'matrix.cpp',
|
||||
source=[
|
||||
'dbc.cpp',
|
||||
'matrix.cpp',
|
||||
'tilemap.cpp',
|
||||
'map.cpp',
|
||||
'gui.cpp',
|
||||
'rand.cpp',
|
||||
'sound.cpp',
|
||||
'combat.cpp',
|
||||
'spatialmap.cpp',
|
||||
'combat.cpp',
|
||||
'systems.cpp',
|
||||
'ansi_parser.cpp',
|
||||
'render.cpp',
|
||||
'config.cpp',
|
||||
'save.cpp',
|
||||
'panel.cpp',
|
||||
'render.cpp',
|
||||
'pathing.cpp',
|
||||
'lights.cpp',
|
||||
'systems.cpp',
|
||||
'gui.cpp',
|
||||
'worldbuilder.cpp',
|
||||
'inventory.cpp',
|
||||
]
|
||||
|
||||
runtests = executable('runtests',
|
||||
source + [
|
||||
'tests/tilemap.cpp',
|
||||
'tests/matrix.cpp',
|
||||
'tests/fsm.cpp',
|
||||
|
@ -55,31 +60,12 @@ runtests = executable('runtests', [
|
|||
'tests/gui.cpp',
|
||||
'tests/worldbuilder.cpp',
|
||||
'tests/inventory.cpp',
|
||||
],
|
||||
], cpp_args:['-Wextra','-Werror'],
|
||||
dependencies: dependencies + catch2)
|
||||
|
||||
roguish = executable('roguish', [
|
||||
'dbc.cpp',
|
||||
'matrix.cpp',
|
||||
'tilemap.cpp',
|
||||
'map.cpp',
|
||||
'main.cpp',
|
||||
'gui.cpp',
|
||||
'rand.cpp',
|
||||
'sound.cpp',
|
||||
'spatialmap.cpp',
|
||||
'combat.cpp',
|
||||
'systems.cpp',
|
||||
'ansi_parser.cpp',
|
||||
'render.cpp',
|
||||
'config.cpp',
|
||||
'save.cpp',
|
||||
'panel.cpp',
|
||||
'pathing.cpp',
|
||||
'lights.cpp',
|
||||
'worldbuilder.cpp',
|
||||
'inventory.cpp',
|
||||
],
|
||||
roguish = executable('roguish',
|
||||
source + ['main.cpp'],
|
||||
cpp_args:['-Wextra','-Werror'],
|
||||
dependencies: dependencies)
|
||||
|
||||
designer = executable('designer', [
|
||||
|
@ -93,7 +79,7 @@ designer = executable('designer', [
|
|||
'pathing.cpp',
|
||||
'lights.cpp',
|
||||
'tools/designer.cpp'
|
||||
],
|
||||
], cpp_args:['-Wextra','-Werror'],
|
||||
dependencies: dependencies)
|
||||
|
||||
fontextract = executable('fontextract', [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue