Skip to content

Commit

Permalink
Update config.emscripten.default.mk (#7830)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathhhan authored Dec 18, 2023
1 parent 17b796e commit efbf571
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ PLATFORM_REQUIRED_ADDONS = ofxEmscripten
################################################################################

# Code Generation Option Flags (http://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html)
PLATFORM_CFLAGS = -s #USE_PTHREADS=1
PLATFORM_CXXFLAGS = -Wall -std=c++17 -Wno-warn-absolute-paths -s #USE_PTHREADS=1
PLATFORM_CFLAGS = -s USE_PTHREADS=0
PLATFORM_CXXFLAGS = -Wall -std=c++17 -Wno-warn-absolute-paths -s USE_PTHREADS=0

################################################################################
# PLATFORM LDFLAGS
Expand Down Expand Up @@ -93,10 +93,9 @@ ifdef USE_CCACHE
endif
endif

PLATFORM_LDFLAGS = -Wl --gc-sections --preload-file bin/data@data --emrun --bind --profiling-funcs -s USE_FREETYPE=1 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 -s WEBGL2_BACKWARDS_COMPATIBILITY_EMULATION=1 -s FULL_ES2 -sFULL_ES3=1 #-s USE_PTHREADS=1
PLATFORM_LDFLAGS = -Wl --gc-sections --preload-file bin/data@data --emrun --bind --profiling-funcs -s USE_FREETYPE=1 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 -s WEBGL2_BACKWARDS_COMPATIBILITY_EMULATION=1 -s FULL_ES2 -sFULL_ES3=1 -s USE_PTHREADS=0
PLATFORM_LDFLAGS += --js-library $(OF_ADDONS_PATH)/ofxEmscripten/libs/html5video/lib/emscripten/library_html5video.js
PLATFORM_LDFLAGS += --js-library $(OF_ADDONS_PATH)/ofxEmscripten/libs/html5audio/lib/emscripten/library_html5audio.js
#PLATFORM_LDFLAGS += --pre-js $(OF_ADDONS_PATH)/ofxEmscripten/libs/cors/coi-serviceworker.js

ifdef PROJECT_EMSCRIPTEN_TEMPLATE
PLATFORM_LDFLAGS += --shell-file $(PROJECT_EMSCRIPTEN_TEMPLATE)
Expand Down

0 comments on commit efbf571

Please sign in to comment.