diff options
| author | raysan5 <[email protected]> | 2020-09-22 13:30:11 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-09-22 13:30:11 +0200 |
| commit | e013b28b288a60c2e99aab4519272d10e01b4459 (patch) | |
| tree | 66389d40485329de5df2f8917a8d8c5cd0ea9580 | |
| parent | 8c8a9d78148a60948c025d66fdfe0463c8a553c3 (diff) | |
| download | raylib.com-e013b28b288a60c2e99aab4519272d10e01b4459.tar.gz raylib.com-e013b28b288a60c2e99aab4519272d10e01b4459.zip | |
Update Makefile
| -rw-r--r-- | examples/web/Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/web/Makefile b/examples/web/Makefile index d1ba95d..7614e53 100644 --- a/examples/web/Makefile +++ b/examples/web/Makefile @@ -25,7 +25,7 @@ # Define required raylib variables PROJECT_NAME ?= raylib_examples -RAYLIB_VERSION ?= 3.0.0 +RAYLIB_VERSION ?= 3.1.0 RAYLIB_API_VERSION ?= 3 RAYLIB_PATH ?= C:\GitHub\raylib @@ -118,8 +118,8 @@ ifeq ($(PLATFORM),PLATFORM_WEB) EMSDK_PATH ?= C:/emsdk EMSCRIPTEN_PATH ?= $(EMSDK_PATH)/upstream/emscripten CLANG_PATH = $(EMSDK_PATH)/upstream/bin - PYTHON_PATH = $(EMSDK_PATH)/python/3.7.4_64bit - NODE_PATH = $(EMSDK_PATH)/node/12.9.1_64bit/bin + PYTHON_PATH = $(EMSDK_PATH)/python/3.7.4-pywin32_64bit + NODE_PATH = $(EMSDK_PATH)/node/12.18.1_64bit/bin export PATH = $(EMSDK_PATH);$(EMSCRIPTEN_PATH);$(CLANG_PATH);$(NODE_PATH);$(PYTHON_PATH);C:\raylib\MinGW\bin:$$(PATH) endif @@ -234,7 +234,8 @@ ifeq ($(PLATFORM),PLATFORM_WEB) # --profiling # include information for code profiling # --memory-init-file 0 # to avoid an external memory initialization code file (.mem) # --preload-file resources # specify a resources folder for data compilation - CFLAGS += -s USE_GLFW=3 + # --source-map-base # allow debugging in browser with source map + CFLAGS += -s USE_GLFW=3 -g4 --source-map-base https://www.raylib.com/examples/web/models/ # NOTE: On PLATFORM_WEB, every example requires its own flags @@ -339,7 +340,7 @@ ifeq ($(PLATFORM),PLATFORM_RPI) endif ifeq ($(PLATFORM),PLATFORM_WEB) # Libraries for web (HTML5) compiling - LDLIBS = $(RAYLIB_RELEASE_PATH)/libraylib.bc + LDLIBS = $(RAYLIB_RELEASE_PATH)/libraylib.a endif # Define all object files required |
