diff options
| -rw-r--r-- | Makefile | 8 | ||||
| -rw-r--r-- | src/gfx.c | 3 |
2 files changed, 9 insertions, 2 deletions
@@ -53,12 +53,15 @@ FREETYPE_FLAGS = \ CGLM_DIR = $(WORK_DIR)/cglm CGLM_INCLUDE = $(CGLM_DIR)/include +SOKOL_DIR = $(WORK_DIR)/sokol + CSH_FLAGS += \ -I$(MI_INCLUDE) \ -I$(HASHMAP_DIR) \ -I$(GLAD_DIR) \ -I$(CGLM_INCLUDE) \ - -I$(FREETYPE_INCLUDE) + -I$(FREETYPE_INCLUDE) \ + -I$(SOKOL_DIR) CMAKE_GENERATOR = "Unix Makefiles" @@ -73,6 +76,7 @@ SOURCES = \ $(SRC_DIR)/graphics.cc \ $(SRC_DIR)/text.cc \ $(SRC_DIR)/rendering.cc \ + $(SRC_DIR)/gfx.c \ $(GLAD_DIR)/glad.c \ $(HASHMAP_SOURCE) @@ -82,7 +86,7 @@ OBJECTS += $(MI_OBJECT) DEPS = $(OBJECTS:.o=.d) -LIBRARIES = -lwayland-client -lEGL -lwayland-egl $(FREETYPE_ARCHIVE) +LIBRARIES = -lwayland-client -lEGL -lwayland-egl $(FREETYPE_ARCHIVE) -lGL all: $(WAYCLOCK) diff --git a/src/gfx.c b/src/gfx.c new file mode 100644 index 0000000..25902a2 --- /dev/null +++ b/src/gfx.c @@ -0,0 +1,3 @@ +#define SOKOL_IMPL +#define SOKOL_GLCORE +#include "sokol_gfx.h"
\ No newline at end of file |
