This converts it to SFML 3.0 but the build only runs on Windows at the moment.

This commit is contained in:
Zed A. Shaw 2025-01-17 15:10:03 -05:00
parent cdbd83ded7
commit 105c974f1c
7 changed files with 62 additions and 630 deletions

View file

@ -1,12 +1,27 @@
project('raycaster', 'cpp',
default_options: ['cpp_std=c++20'])
cc = meson.get_compiler('cpp')
catch2 = dependency('catch2-with-main')
fmt = dependency('fmt')
json = dependency('nlohmann_json')
sfml = dependency('sfml')
opengl32 = cc.find_library('opengl32', required: true)
winmm = cc.find_library('winmm', required: true)
gdi32 = cc.find_library('gdi32', required: true)
sfml_audio = dependency('sfml_audio')
sfml_graphics = dependency('sfml_graphics')
sfml_main = dependency('sfml_main')
sfml_network = dependency('sfml_network')
sfml_system = dependency('sfml_system')
sfml_window = dependency('sfml_window')
dependencies = [fmt, json, sfml]
dependencies = [
fmt, json, opengl32,
winmm, gdi32, sfml_audio, sfml_graphics,
sfml_main, sfml_network, sfml_system,
sfml_window
]
executable('runtests', [
'dbc.cpp',
@ -15,12 +30,6 @@ executable('runtests', [
],
dependencies: dependencies + [catch2])
executable('sfmlcaster', [
'dbc.cpp',
'sfmlcaster.cpp'
],
dependencies: dependencies)
executable('zedcaster', [
'dbc.cpp',
'matrix.cpp',
@ -31,12 +40,12 @@ executable('zedcaster', [
],
dependencies: dependencies)
executable('amtcaster', [
'dbc.cpp',
'config.cpp',
'amt/texture.cpp',
'amt/raycaster.cpp',
'amt/main.cpp'
],
cpp_args: ['-std=c++23'],
dependencies: dependencies)
# executable('amtcaster', [
# 'dbc.cpp',
# 'config.cpp',
# 'amt/texture.cpp',
# 'amt/raycaster.cpp',
# 'amt/main.cpp'
# ],
# cpp_args: ['-std=c++23'],
# dependencies: dependencies)