为视频输出修改了导出符号

This commit is contained in:
root 2024-05-05 22:01:19 +08:00
parent 53920a62c2
commit d9e16ad89b
2 changed files with 5 additions and 2 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
build/
nba.*
build.sh

View File

@ -1,10 +1,10 @@
CC := emcc
CXX := emcc
CXXFLAGS := -c -fbracket-depth=4800 -Oz
CXXFLAGS := -c -fbracket-depth=4800 -Oz -std=c++17
INCLUDES := -I src/nba/include/ -I src/nba/src -I external/fmtlib/include/ -I external/toml11/include/
LDFLAGS := -s ENVIRONMENT=web -s ASSERTIONS=0 -s FILESYSTEM=0 -s STANDALONE_WASM=1 -s ALLOW_MEMORY_GROWTH\
-s EXPORTED_FUNCTIONS=[_getRom,_getIRam,_getWRam,_go,_run,_main] --lto
-s EXPORTED_FUNCTIONS=[_cyclePerFrame,_getRom,_getIRam,_getWRam,_go,_run,_main] --lto
BUILD := build
OBJECTS := $(BUILD)/000-serialization.o $(BUILD)/001-tablegen.o $(BUILD)/002-bus.o \
$(BUILD)/003-io.o $(BUILD)/004-serialization.o $(BUILD)/005-timing.o \