diff options
author | Slendi <slendi@socopon.com> | 2024-03-03 20:15:53 +0200 |
---|---|---|
committer | Slendi <slendi@socopon.com> | 2024-03-03 20:15:53 +0200 |
commit | 83d12995029bfb617080de03c4abb16de8b21894 (patch) | |
tree | 38cc48898563d57c3c15d6bb41e2cececbbeba16 | |
parent | b9bed23a600ceb127723c5a566a5b518a13239ed (diff) |
Add support for windows
Signed-off-by: Slendi <slendi@socopon.com>
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | build.msys.sh | 1 | ||||
-rw-r--r-- | config.h | 5 |
3 files changed, 7 insertions, 1 deletions
@@ -1,2 +1,2 @@ pres - +pres.exe diff --git a/build.msys.sh b/build.msys.sh new file mode 100644 index 0000000..10482f9 --- /dev/null +++ b/build.msys.sh @@ -0,0 +1 @@ +g++ -O3 -static main.cpp /c/raylib-5.0_win64_mingw-w64/lib/libraylib.a -o pres.exe -lm -lwinmm -lgdi32 @@ -1,2 +1,7 @@ +#ifdef _WIN32 +static char const constexpr *const FONT_PATH = + "C:\\Windows\\Fonts\\DejaVuSans.ttf"; +#else static char const constexpr *const FONT_PATH = "/usr/share/fonts/TTF/DejaVuSans.ttf"; +#endif |