mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-29 02:09:17 -05:00
Updated build script to generate .a on WebAssembly
This is the recommended way
This commit is contained in:
@ -353,7 +353,7 @@ ifeq ($(PLATFORM),PLATFORM_RPI)
|
|||||||
endif
|
endif
|
||||||
ifeq ($(PLATFORM),PLATFORM_WEB)
|
ifeq ($(PLATFORM),PLATFORM_WEB)
|
||||||
# Libraries for web (HTML5) compiling
|
# Libraries for web (HTML5) compiling
|
||||||
LDLIBS = $(RAYLIB_RELEASE_PATH)/libraylib.bc
|
LDLIBS = $(RAYLIB_RELEASE_PATH)/libraylib.a
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Define all object files required
|
# Define all object files required
|
||||||
|
|||||||
@ -468,8 +468,8 @@ all: raylib
|
|||||||
raylib: $(OBJS)
|
raylib: $(OBJS)
|
||||||
ifeq ($(PLATFORM),PLATFORM_WEB)
|
ifeq ($(PLATFORM),PLATFORM_WEB)
|
||||||
# Compile raylib libray for web
|
# Compile raylib libray for web
|
||||||
#$(AR) rcs $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).a $(OBJS)
|
#$(CC) $(OBJS) -r -o $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).bc
|
||||||
$(CC) $(OBJS) -r -o $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).bc
|
$(AR) rcs $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).a $(OBJS)
|
||||||
@echo "raylib library generated (lib$(RAYLIB_LIB_NAME).a)!"
|
@echo "raylib library generated (lib$(RAYLIB_LIB_NAME).a)!"
|
||||||
else
|
else
|
||||||
ifeq ($(RAYLIB_LIBTYPE),SHARED)
|
ifeq ($(RAYLIB_LIBTYPE),SHARED)
|
||||||
|
|||||||
Reference in New Issue
Block a user