forked from lvgl/lv_font_conv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·36 lines (34 loc) · 862 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
mkdir -p /src/lv_font_conv/lib/freetype/build
emcc --bind \
-o /src/lv_font_conv/lib/freetype/build/ft_render.js \
/src/lv_font_conv/lib/freetype/render.c \
-s USE_ZLIB=1 \
-L/usr/local/lib -lfreetype -I/usr/local/include/freetype2 \
-s "EXPORTED_FUNCTIONS=[\
'_FT_Init_FreeType',\
'_FT_Done_FreeType',\
'_FT_New_Memory_Face',\
'_FT_Done_Face',\
'_FT_Set_Char_Size',\
'_FT_Set_Pixel_Sizes',\
'_FT_Get_Char_Index',\
'_FT_Load_Glyph',\
'_FT_Render_Glyph',\
'_FT_Get_Kerning',\
'_FT_Get_Sfnt_Table',\
'_init_constants'\
]"\
-s "EXPORTED_RUNTIME_METHODS=[\
'ccall',\
'cwrap',\
'getValue',\
'writeArrayToMemory'\
]"\
-s MODULARIZE=1 \
-s NO_FILESYSTEM=1 \
-s SINGLE_FILE=1 \
-s NODEJS_CATCH_EXIT=0 \
-s NODEJS_CATCH_REJECTION=0 \
-s ALLOW_MEMORY_GROWTH=1 \
-Os