commit d167d0c

uint  ·  2026-07-21 14:52:39 +0000 UTC
parent 883b714
compile sokol_gfx separately
2 files changed,  +19, -0
+15, -0
 1@@ -13,8 +13,23 @@ sources = [
 2 	'source/platform/util.c',
 3 ]
 4 
 5+vendor_inc = include_directories('vendor')
 6+
 7+sokol_gfx_lib = static_library(
 8+	'sokol_gfx',
 9+	'vendor/sokol_gfx.c',
10+	include_directories: vendor_inc,
11+	override_options: [ 'c_std=c99' ],
12+)
13+
14+sokol_gfx_dep = declare_dependency(
15+	include_directories: vendor_inc,
16+	link_with: sokol_gfx_lib,
17+)
18+
19 deps = [
20 	dependency('sdl2'),
21+	sokol_gfx_dep,
22 ]
23 
24 executable(
+4, -0
1@@ -0,0 +1,4 @@
2+#define SOKOL_IMPL
3+#define SOKOL_GLCORE
4+#include "sokol_gfx.h"
5+