diff options
| author | Ray <[email protected]> | 2024-02-05 21:12:57 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2024-02-05 21:12:57 +0100 |
| commit | ea31bd47e5135680d5cc0f29800372cf8cfeb49a (patch) | |
| tree | f26a5bc56f45a0b55509c5915421f37533cc41ad /examples/Makefile | |
| parent | 6a8cc62b677c37ce56ab10ab1538c94be93cb0bd (diff) | |
| download | raylib-ea31bd47e5135680d5cc0f29800372cf8cfeb49a.tar.gz raylib-ea31bd47e5135680d5cc0f29800372cf8cfeb49a.zip | |
REVIEWED: PLATFORM_WEB build flags, added GL_ENABLE_GET_PROC_ADDRESS
Reviewed flags formating
Diffstat (limited to 'examples/Makefile')
| -rw-r--r-- | examples/Makefile | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/examples/Makefile b/examples/Makefile index bc81a58f..b48557ba 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -202,7 +202,7 @@ CFLAGS = -Wall -std=c99 -D_DEFAULT_SOURCE -Wno-missing-braces -Wunused-result ifeq ($(BUILD_MODE),DEBUG) CFLAGS += -g -D_DEBUG ifeq ($(PLATFORM),PLATFORM_WEB) - CFLAGS += -s ASSERTIONS=1 --profiling + CFLAGS += -sASSERTIONS=1 --profiling endif else ifeq ($(PLATFORM),PLATFORM_WEB) @@ -298,23 +298,24 @@ endif ifeq ($(PLATFORM),PLATFORM_WEB) # -Os # size optimization # -O2 # optimization level 2, if used, also set --memory-init-file 0 - # -s USE_GLFW=3 # Use glfw3 library (context/input management) - # -s ALLOW_MEMORY_GROWTH=1 # to allow memory resizing -> WARNING: Audio buffers could FAIL! - # -s TOTAL_MEMORY=16777216 # to specify heap memory size (default = 16MB) (67108864 = 64MB) - # -s USE_PTHREADS=1 # multithreading support - # -s WASM=0 # disable Web Assembly, emitted by default - # -s ASYNCIFY # lets synchronous C/C++ code interact with asynchronous JS - # -s FORCE_FILESYSTEM=1 # force filesystem to load/save files data - # -s ASSERTIONS=1 # enable runtime checks for common memory allocation errors (-O1 and above turn it off) + # -sUSE_GLFW=3 # Use glfw3 library (context/input management) + # -sALLOW_MEMORY_GROWTH=1 # to allow memory resizing -> WARNING: Audio buffers could FAIL! + # -sTOTAL_MEMORY=16777216 # to specify heap memory size (default = 16MB) (67108864 = 64MB) + # -sUSE_PTHREADS=1 # multithreading support + # -sWASM=0 # disable Web Assembly, emitted by default + # -sASYNCIFY # lets synchronous C/C++ code interact with asynchronous JS + # -sFORCE_FILESYSTEM=1 # force filesystem to load/save files data + # -sASSERTIONS=1 # enable runtime checks for common memory allocation errors (-O1 and above turn it off) + # -sGL_ENABLE_GET_PROC_ADDRESS # enable using the *glGetProcAddress() family of functions, required for extensions loading # --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 # --source-map-base # allow debugging in browser with source map - LDFLAGS += -s USE_GLFW=3 -s TOTAL_MEMORY=$(BUILD_WEB_HEAP_SIZE) -s FORCE_FILESYSTEM=1 + LDFLAGS += -sUSE_GLFW=3 -sTOTAL_MEMORY=$(BUILD_WEB_HEAP_SIZE) -sFORCE_FILESYSTEM=1 -sGL_ENABLE_GET_PROC_ADDRESS # Build using asyncify ifeq ($(BUILD_WEB_ASYNCIFY),TRUE) - LDFLAGS += -s ASYNCIFY + LDFLAGS += -sASYNCIFY endif # Add resources building if required @@ -324,7 +325,7 @@ ifeq ($(PLATFORM),PLATFORM_WEB) # Add debug mode flags if required ifeq ($(BUILD_MODE),DEBUG) - LDFLAGS += -s ASSERTIONS=1 --profiling + LDFLAGS += -sASSERTIONS=1 --profiling endif # Define a custom shell .html and output extension |
