-
Notifications
You must be signed in to change notification settings - Fork 28
/
build.sh
119 lines (114 loc) · 3.9 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#!/bin/bash
# TODO: turn this into a proper makefile, maybe even cmake or meson
set -e
mkdir -p dist
ragel src/emoji-scan.rl -o gen/emoji-scan.c
emcc \
-c \
-o dist/emoji-scan.o \
gen/emoji-scan.c
emcc \
-DSB_CONFIG_UNITY \
-I../SheenBidi/Headers \
-c \
-o dist/sheenbidi.o \
../SheenBidi/Source/SheenBidi.c
em++ \
-std=c++11 \
-fno-exceptions \
-fno-rtti \
-fno-threadsafe-statics \
-fvisibility-inlines-hidden \
-flto \
-Oz \
-I. \
-DHB_TINY \
-DHB_USE_INTERNAL_QSORT \
-DHB_CONFIG_OVERRIDE_H=\"src/harfbuzz-config.h\" \
-DHB_EXPERIMENTAL_API \
--no-entry \
-Wl,--export -Wl,hb_blob_create \
-Wl,--export -Wl,hb_blob_destroy \
-Wl,--export -Wl,hb_blob_get_data \
-Wl,--export -Wl,hb_blob_get_length \
-Wl,--export -Wl,hb_buffer_add_utf16 \
-Wl,--export -Wl,hb_buffer_add_utf8 \
-Wl,--export -Wl,hb_buffer_create \
-Wl,--export -Wl,hb_buffer_destroy \
-Wl,--export -Wl,hb_buffer_get_glyph_infos \
-Wl,--export -Wl,hb_buffer_get_glyph_positions \
-Wl,--export -Wl,hb_buffer_get_length \
-Wl,--export -Wl,hb_buffer_set_length \
-Wl,--export -Wl,hb_buffer_guess_segment_properties \
-Wl,--export -Wl,hb_buffer_set_cluster_level \
-Wl,--export -Wl,hb_buffer_set_direction \
-Wl,--export -Wl,hb_buffer_set_flags \
-Wl,--export -Wl,hb_buffer_set_language \
-Wl,--export -Wl,hb_buffer_set_script \
-Wl,--export -Wl,hb_face_create \
-Wl,--export -Wl,hb_face_collect_unicodes \
-Wl,--export -Wl,hb_face_destroy \
-Wl,--export -Wl,hb_face_get_upem \
-Wl,--export -Wl,hb_face_reference_table \
-Wl,--export -Wl,hb_face_count \
-Wl,--export -Wl,hb_font_create \
-Wl,--export -Wl,hb_font_destroy \
-Wl,--export -Wl,hb_font_get_extents_for_direction \
-Wl,--export -Wl,hb_font_glyph_to_string \
-Wl,--export -Wl,hb_font_set_scale \
-Wl,--export -Wl,hb_font_set_variations \
-Wl,--export -Wl,hb_font_get_nominal_glyph \
-Wl,--export -Wl,hb_style_get_value \
-Wl,--export -Wl,hb_ot_name_get_utf16 \
-Wl,--export -Wl,hb_glyph_info_get_glyph_flags \
-Wl,--export -Wl,hb_language_from_string \
-Wl,--export -Wl,hb_ot_var_get_axis_infos \
-Wl,--export -Wl,hb_ot_metrics_get_position_with_fallback \
-Wl,--export -Wl,hb_ot_layout_has_substitution \
-Wl,--export -Wl,hb_ot_layout_has_positioning \
-Wl,--export -Wl,hb_ot_layout_table_get_script_tags \
-Wl,--export -Wl,hb_ot_layout_feature_get_lookups \
-Wl,--export -Wl,hb_ot_layout_language_get_feature_indexes \
-Wl,--export -Wl,hb_ot_layout_language_get_feature_tags \
-Wl,--export -Wl,hb_ot_layout_script_get_language_tags \
-Wl,--export -Wl,hb_ot_layout_lookup_collect_glyphs \
-Wl,--export -Wl,hb_ot_layout_language_get_required_feature_index \
-Wl,--export -Wl,hb_script_from_string \
-Wl,--export -Wl,hb_set_create \
-Wl,--export -Wl,hb_set_destroy \
-Wl,--export -Wl,hb_set_get_population \
-Wl,--export -Wl,hb_set_next_many \
-Wl,--export -Wl,hb_set_add \
-Wl,--export -Wl,hb_set_add_range \
-Wl,--export -Wl,hb_set_union \
-Wl,--export -Wl,hb_set_copy \
-Wl,--export -Wl,hb_set_subtract \
-Wl,--export -Wl,hb_set_clear \
-Wl,--export -Wl,hb_set_next \
-Wl,--export -Wl,hb_set_has \
-Wl,--export -Wl,hb_shape \
-Wl,--export -Wl,hbjs_glyph_draw \
-Wl,--export -Wl,SBAlgorithmCreate \
-Wl,--export -Wl,SBAlgorithmRelease \
-Wl,--export -Wl,SBAlgorithmGetParagraphBoundary \
-Wl,--export -Wl,SBAlgorithmCreateParagraph \
-Wl,--export -Wl,SBParagraphRelease \
-Wl,--export -Wl,SBParagraphGetLevelsPtr \
-Wl,--export -Wl,malloc \
-Wl,--export -Wl,free \
-Wl,--export -Wl,free_ptr \
-s ERROR_ON_UNDEFINED_SYMBOLS=0 \
-s WARN_ON_UNDEFINED_SYMBOLS=0 \
-s ALLOW_MEMORY_GROWTH=1 \
-s INITIAL_MEMORY=4MB \
-o dist/dropflow.wasm \
dist/sheenbidi.o \
dist/emoji-scan.o \
src/dropflow.cc \
gen/lang-script-database.cc \
gen/grapheme-break-trie.cc \
gen/line-break-trie.cc \
gen/emoji-trie.cc \
gen/script-trie.cc \
gen/system-fonts-trie.cc \
gen/derived-core-properties-trie.cc