add .exe for windows

This commit is contained in:
sam 2024-08-18 13:06:00 +12:00
parent 4a29b0a05f
commit 0800056a76
4 changed files with 9 additions and 3 deletions

1
.gitignore vendored
View file

@ -1,6 +1,7 @@
.cache/
.session.vim
gear
*.exe
compile_commands.json
**/*.o
**/*.glsl.h

View file

@ -13,6 +13,7 @@ SHADER_OBJ=$(SHADER_FILES:.glsl=.glsl.h)
ifeq ($(OS), Windows_NT)
CFLAGS += -DSOKOL_D3D11
BINARY := $(BINARY).exe
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S), Linux)

View file

@ -77,7 +77,13 @@ sapp_desc sokol_main(int argc, char* argv[]) {
.cleanup_cb = cleanup,
.width = 640,
.height = 480,
.window_title = "Gear",
#ifdef SOKOL_GLCORE
.window_title = "Gear (GLCORE)",
#elif SOKOL_D3D11
.window_title = "Gear (D3D11)",
#elif SOKOL_METAL
.window_title = "Gear (Metal)",
#endif
.icon.sokol_default = true,
.logger.func = slog_func,
};

View file

@ -1,4 +1,3 @@
#ifndef SOKOL_METAL
#define SOKOL_IMPL
#include <sokol/sokol_app.h>
#include <sokol/sokol_audio.h>
@ -7,4 +6,3 @@
#include <sokol/sokol_glue.h>
#include <sokol/sokol_log.h>
#include <sokol/sokol_time.h>
#endif