-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.js
89 lines (87 loc) · 2.31 KB
/
build.js
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
var $ = require('shelljs')
if (!$.which('docker')) {
$.echo(
'This template requires Docker. Please install Docker and try again.',
)
$.exit(1)
}
$.mkdir('-p', 'build')
$.exec(
`docker run --rm -v $(pwd):/src emscripten/emsdk \
emcc \
-O3 \
--bind \
--no-entry \
-s EXTRA_EXPORTED_RUNTIME_METHODS='["getValue"]' \
-s ALLOW_MEMORY_GROWTH=1 \
-s DYNAMIC_EXECUTION=0 \
-s TEXTDECODER=0 \
-s MODULARIZE=1 \
-s ENVIRONMENT=\'web\' \
-s EXPORT_NAME="emscripten" \
--pre-js './pre.js' \
-lm \
-s ERROR_ON_UNDEFINED_SYMBOLS=0 \
-I deps/include \
-L deps/lib \
-lglog \
-labsl_bad_any_cast_impl\
-labsl_log_severity \
-labsl_bad_optional_access \
-labsl_malloc_internal \
-labsl_bad_variant_access\
-labsl_periodic_sampler \
-labsl_base \
-labsl_random_distributions \
-labsl_city \
-labsl_random_internal_distribution_test_util \
-labsl_civil_time\
-labsl_random_internal_pool_urbg \
-labsl_cord \
-labsl_random_internal_randen \
-labsl_debugging_internal\
-labsl_random_internal_randen_hwaes \
-labsl_demangle_internal\
-labsl_random_internal_randen_hwaes_impl \
-labsl_dynamic_annotations\
-labsl_random_internal_randen_slow \
-labsl_examine_stack\
-labsl_random_internal_seed_material \
-labsl_exponential_biased\
-labsl_random_seed_gen_exception \
-labsl_failure_signal_handler\
-labsl_random_seed_sequences \
-labsl_flags \
-labsl_raw_hash_set \
-labsl_flags_config\
-labsl_raw_logging_internal \
-labsl_flags_internal \
-labsl_scoped_set_env \
-labsl_flags_marshalling\
-labsl_spinlock_wait \
-labsl_flags_parse\
-labsl_stacktrace \
-labsl_flags_program_name\
-labsl_status \
-labsl_flags_registry\
-labsl_str_format_internal \
-labsl_flags_usage\
-labsl_strings \
-labsl_flags_usage_internal \
-labsl_strings_internal \
-labsl_graphcycles_internal \
-labsl_symbolize \
-labsl_hash \
-labsl_synchronization \
-labsl_hashtablez_sampler\
-labsl_throw_delegate \
-labsl_int128\
-labsl_time \
-labsl_leak_check\
-labsl_time_zone \
-labsl_leak_check_disable \
-lCbc -lCbcSolver -lCgl -lClp -lClpSolver -lCoinUtils -lgflags_nothreads -lortools -lOsi -lOsiCbc -lOsiClp -lprotobuf -lscip -lz \
-o ./build/module.js \
./src/sudoku.cc
`,
)