Merge pull request #5448 from goldenbergdaniel/kb-text-shape

Add unix build script for kb_text_shape
This commit is contained in:
Jeroen van Rijn authored and GitHub committed 2025-07-10 00:49:58 +02:00
commit d42c46dad9
3 files changed
+11 -1

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ when ODIN_OS == .Windows {
}
} else {
foreign import lib {
"kb_text_shape.a",
"lib/kb_text_shape.a",
}
}
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
set -e
mkdir -p "../lib"
cc -O2 -c kb_text_shape.c
ar -rcs ../lib/kb_text_shape.a kb_text_shape.o
rm *.o
+3
View File
@@ -1,4 +1,7 @@
#include <stdint.h>
#ifndef _MSC_VER
#include <string.h>
#endif
#define KB_TEXT_SHAPE_NO_CRT
#define KB_TEXT_SHAPE_IMPLEMENTATION