toolchain.emscripten.mak
1.77 KB
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
CC = emcc
CXX = emcc
LD = emcc
EMSCRIPTEN_ASYNC_SYMBOLS = \
_main \
__ZN3Ion6Events8getEventEPi \
__ZN4Code17ConsoleController9inputTextEPKc \
__ZThn32_N4Code17ConsoleController9inputTextEPKc \
_mp_hal_input \
_mp_builtin_input \
_fun_builtin_var_call \
_mp_call_function_n_kw \
__ZN11MicroPython20ExecutionEnvironment7runCodeEPKc \
__ZN4Code17ConsoleController21runAndPrintForCommandEPKc \
__ZN4Code17ConsoleController25textFieldDidFinishEditingEP9TextFieldPKcN3Ion6Events5EventE \
__ZThn28_N4Code17ConsoleController25textFieldDidFinishEditingEP9TextFieldPKcN3Ion6Events5EventE \
__ZN9TextField18privateHandleEventEN3Ion6Events5EventE \
__ZN9TextField11handleEventEN3Ion6Events5EventE \
__ZN3App12processEventEN3Ion6Events5EventE \
__ZN9Container13dispatchEventEN3Ion6Events5EventE \
__ZN13AppsContainer13dispatchEventEN3Ion6Events5EventE \
__ZN7RunLoop4stepEv \
__ZN7RunLoop8runWhileEPFbPvES0_ \
__ZN7RunLoop3runEv \
__ZN9Container3runEv \
__ZN13AppsContainer3runEv \
__Z7ion_appv \
_mp_execute_bytecode \
_fun_bc_call \
_mp_call_function_0 \
_IonEventsEmscriptenPushEvent \
__ZN3Ion6Events13isShiftActiveEv \
__ZN3Ion6Events13isAlphaActiveEv \
__ZN3Ion6Events5EventC2ENS_8Keyboard3KeyEbb \
_mp_parse_compile_execute \
_do_load_from_lexer \
_do_load \
_mp_builtin___import__ \
_mp_import_name \
__ZN4Code25ScriptParameterController11handleEventEN3Ion6Events5EventE \
__ZN4Code14MenuController28openConsoleWithScriptAtIndexEi \
__ZN4Code17ConsoleController23autoImportScriptAtIndexEib
EMFLAGS = -s EMTERPRETIFY=1 -s EMTERPRETIFY_ASYNC=1 -s EMTERPRETIFY_WHITELIST='[$(foreach sym,$(EMSCRIPTEN_ASYNC_SYMBOLS),"$(sym)",)]'
ifeq ($(DEBUG),1)
EMFLAGS += --profiling-funcs -s ASSERTIONS=1
endif
SFLAGS += $(EMFLAGS)
LDFLAGS += $(EMFLAGS) -Oz -s EXPORTED_FUNCTIONS='["_main", "_IonEventsEmscriptenPushEvent"]'