From 98264d30f420a0028f34ffe43ea20ca6b17e0166 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Thu, 25 Apr 2024 03:45:13 -0400 Subject: [PATCH] Needed to add the default_library=static option for Windows, but I believe that fails on OSX. --- sfmldemo/meson.build | 2 ++ sfmldemo/reset_build.ps1 | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 sfmldemo/reset_build.ps1 diff --git a/sfmldemo/meson.build b/sfmldemo/meson.build index 64e2458..4f59831 100644 --- a/sfmldemo/meson.build +++ b/sfmldemo/meson.build @@ -1,5 +1,6 @@ project('sfmldemo', 'cpp', default_options: [ + 'default_library=static', 'cpp_std=c++17', ]) @@ -9,4 +10,5 @@ fmt_dep = dependency('fmt') executable('sfmldemo', 'main.cpp', win_subsystem: 'windows', + cpp_args: '-DFMT_HEADER_ONLY', dependencies: [sfml_dep, imgui_dep, fmt_dep]) diff --git a/sfmldemo/reset_build.ps1 b/sfmldemo/reset_build.ps1 new file mode 100644 index 0000000..ae862d8 --- /dev/null +++ b/sfmldemo/reset_build.ps1 @@ -0,0 +1,17 @@ +mv .\subprojects\packagecache . +rm -recurse -force .\subprojects\,.\builddir\ +mkdir subprojects +mv .\packagecache .\subprojects\ +mkdir builddir +meson wrap install flac +meson wrap install freetype2 +meson wrap install imgui-sfml +meson wrap install imgui +meson wrap install libpng +meson wrap install ogg +meson wrap install openal-soft +meson wrap install sfml +meson wrap install vorbis +meson wrap install zlib +meson wrap install fmt +meson setup builddir