Skip to content

Commit 144987f

Browse files
committed
add utf8 library
1 parent 1d031a7 commit 144987f

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ test_interpreter
1111
test_compiler
1212

1313
external/IntelRDFPMathLib20U1/
14+
external/utf8/

SConstruct

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
import sys
33
import tarfile
4+
import zipfile
45
from SCons.Script.SConscript import SConsEnvironment
56

67
# Assume a UTF-8 capable terminal.
@@ -18,8 +19,11 @@ if sys.platform == "win32":
1819
else:
1920
libbid = env.Command("external/IntelRDFPMathLib20U1/LIBRARY/libbid.a", "external/IntelRDFPMathLib20U1/LIBRARY/makefile.mak", "cd external/IntelRDFPMathLib20U1/LIBRARY && make CC=gcc GLOBAL_RND=1 GLOBAL_FLAGS=1")
2021

22+
env.Command("external/utf8/source/utf8.h", "external/utf8_v2_3_4.zip", lambda target, source, env: zipfile.ZipFile(source[0].path).extractall("external/utf8"))
23+
2124
env.Append(CPPPATH=[
2225
"external/IntelRDFPMathLib20U1/LIBRARY/src",
26+
"external/utf8/source",
2327
])
2428
if sys.platform == "win32":
2529
env.Append(CXXFLAGS=[

external/utf8_v2_3_4.zip

21.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)