mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-13 06:43:35 +00:00
Merge pull request #5448 from goldenbergdaniel/kb-text-shape
Add unix build script for kb_text_shape
This commit is contained in:
@@ -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
7
vendor/kb_text_shape/src/build_unix.sh
vendored
Executable 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
vendor/kb_text_shape/src/kb_text_shape.c
vendored
3
vendor/kb_text_shape/src/kb_text_shape.c
vendored
@@ -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