Brought over a bunch of code from the roguelike and now will use it to generate a random map.
This commit is contained in:
parent
8d3d3b4ec3
commit
2daa1c9bd5
59 changed files with 4303 additions and 411 deletions
75
meson.build
75
meson.build
|
@ -5,14 +5,17 @@ project('raycaster', 'cpp',
|
|||
'cpp_args=-D_GLIBCXX_DEBUG=1 -D_GLIBCXX_DEBUG_PEDANTIC=1',
|
||||
])
|
||||
|
||||
# use this for common options only for our executables
|
||||
cpp_args=[]
|
||||
# these are passed as override_defaults
|
||||
exe_defaults = ['warning_level=2', 'werror=true']
|
||||
|
||||
cc = meson.get_compiler('cpp')
|
||||
|
||||
tracy = dependency('tracy', static: true)
|
||||
catch2 = dependency('catch2-with-main')
|
||||
fmt = dependency('fmt', allow_fallback: true)
|
||||
freetype2 = dependency('freetype2')
|
||||
json = dependency('nlohmann_json')
|
||||
freetype2 = dependency('freetype2')
|
||||
opengl32 = cc.find_library('opengl32', required: true)
|
||||
winmm = cc.find_library('winmm', required: true)
|
||||
gdi32 = cc.find_library('gdi32', required: true)
|
||||
|
@ -28,49 +31,57 @@ sfml_network = dependency('sfml_network')
|
|||
sfml_system = dependency('sfml_system')
|
||||
sfml_window = dependency('sfml_window')
|
||||
|
||||
if get_option('tracy_enable') and get_option('buildtype') != 'debugoptimized'
|
||||
warning('Profiling builds should set --buildtype=debugoptimized')
|
||||
endif
|
||||
|
||||
dependencies = [
|
||||
fmt, json, opengl32, freetype2,
|
||||
flac, ogg, vorbis, vorbisfile, vorbisenc,
|
||||
winmm, gdi32, sfml_audio, sfml_graphics,
|
||||
sfml_main, sfml_network, sfml_system,
|
||||
sfml_window, tracy
|
||||
sfml_window
|
||||
]
|
||||
|
||||
# use this for common options only for our executables
|
||||
cpp_args=[]
|
||||
|
||||
executable('runtests', [
|
||||
sources = [
|
||||
'animator.cpp',
|
||||
'combat.cpp',
|
||||
'components.cpp',
|
||||
'config.cpp',
|
||||
'dbc.cpp',
|
||||
'devices.cpp',
|
||||
'inventory.cpp',
|
||||
'levelmanager.cpp',
|
||||
'lights.cpp',
|
||||
'map.cpp',
|
||||
'matrix.cpp',
|
||||
'matrix.cpp',
|
||||
'pathing.cpp',
|
||||
'rand.cpp',
|
||||
'raycaster.cpp',
|
||||
'save.cpp',
|
||||
'shiterator.hpp',
|
||||
'spatialmap.cpp',
|
||||
'stats.cpp',
|
||||
'systems.cpp',
|
||||
'texture.cpp',
|
||||
'tilemap.cpp',
|
||||
'worldbuilder.cpp',
|
||||
]
|
||||
|
||||
executable('runtests', sources + [
|
||||
'tests/base.cpp',
|
||||
'tests/dbc.cpp',
|
||||
'tests/inventory.cpp',
|
||||
'tests/levelmanager.cpp',
|
||||
'tests/lighting.cpp',
|
||||
'tests/map.cpp',
|
||||
'tests/matrix.cpp',
|
||||
'tests/pathing.cpp',
|
||||
'tests/spatialmap.cpp',
|
||||
'tests/tilemap.cpp',
|
||||
'tests/worldbuilder.cpp',
|
||||
], override_options: exe_defaults,
|
||||
dependencies: dependencies + [catch2])
|
||||
|
||||
executable('zedcaster', [
|
||||
'dbc.cpp',
|
||||
'matrix.cpp',
|
||||
'config.cpp',
|
||||
'texture.cpp',
|
||||
'raycaster.cpp',
|
||||
'animator.cpp',
|
||||
'stats.cpp',
|
||||
'main.cpp'
|
||||
],
|
||||
executable('zedcaster',
|
||||
sources + [ 'main.cpp' ],
|
||||
cpp_args: cpp_args,
|
||||
override_options: exe_defaults,
|
||||
dependencies: dependencies)
|
||||
|
||||
executable('amtcaster', [
|
||||
'dbc.cpp',
|
||||
'config.cpp',
|
||||
'amt/texture.cpp',
|
||||
'amt/raycaster.cpp',
|
||||
'amt/main.cpp'
|
||||
],
|
||||
cpp_args: ['-std=c++23'],
|
||||
override_options: exe_defaults,
|
||||
dependencies: dependencies)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue