mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 09:22:22 -07:00
Merge pull request #5448 from goldenbergdaniel/kb-text-shape
Add unix build script for kb_text_shape
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ when ODIN_OS == .Windows {
|
||||
}
|
||||
} else {
|
||||
foreign import lib {
|
||||
"kb_text_shape.a",
|
||||
"lib/kb_text_shape.a",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+7
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user