diff --git a/Makefile b/Makefile index 27ba792..a4e2247 100644 --- a/Makefile +++ b/Makefile @@ -41,20 +41,20 @@ test: build run: build test ifeq '$(OS)' 'Windows_NT' - powershell "cp ./builddir/zedcaster.exe ." - ./zedcaster + powershell "cp ./builddir/under_the_dome.exe ." + ./under_the_dome else - ./builddir/zedcaster + ./builddir/under_the_dome endif debug: build gdb --nx -x .gdbinit --ex run --args builddir/runtests debug_run: build - gdb --nx -x .gdbinit --batch --ex run --ex bt --ex q --args builddir/zedcaster + gdb --nx -x .gdbinit --batch --ex run --ex bt --ex q --args builddir/under_the_dome debug_walk: build test - gdb --nx -x .gdbinit --batch --ex run --ex bt --ex q --args builddir/zedcaster t + gdb --nx -x .gdbinit --batch --ex run --ex bt --ex q --args builddir/under_the_dome t clean: meson compile --clean -C builddir diff --git a/meson.build b/meson.build index d1aaf4f..b207239 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ -project('raycaster', 'cpp', +project('under_the_dome', 'cpp', version: '0.1.0', default_options: [ 'cpp_std=c++23', @@ -22,6 +22,14 @@ cc = meson.get_compiler('cpp') dependencies = [] if build_machine.system() == 'windows' + add_global_link_arguments( + '-static-libgcc', + '-static-libstdc++', + '-static', + '-flto', + language: 'cpp', + ) + sfml_main = subproject('sfml').get_variable('sfml_main_dep') opengl32 = cc.find_library('opengl32', required: true) winmm = cc.find_library('winmm', required: true) @@ -33,6 +41,10 @@ if build_machine.system() == 'windows' exe_defaults += ['werror=true'] elif build_machine.system() == 'darwin' + add_global_link_arguments( + language: 'cpp', + ) + opengl = dependency('OpenGL') corefoundation = dependency('CoreFoundation') carbon = dependency('Carbon') @@ -97,7 +109,7 @@ executable('runtests', sources + tests, override_options: exe_defaults, dependencies: dependencies + [catch2]) -executable('zedcaster', +executable('under_the_dome', [ 'src/main.cpp' ], cpp_args: cpp_args, link_args: link_args,