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
2025-07-10 00:49:58 +02:00
committed by GitHub
3 changed files with 11 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ when ODIN_OS == .Windows {
}
} else {
foreign import lib {
"kb_text_shape.a",
"lib/kb_text_shape.a",
}
}

7
vendor/kb_text_shape/src/build_unix.sh vendored Executable file
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

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