@@ -112,19 +112,21 @@ ifeq ($(DEAR_IMGUI_BACKEND),RayLib)
112112 INCLUDES += $(THIRD_PARTIES_DIR ) /rlImGui
113113 GUI_FILES += $(THIRD_PARTIES_DIR ) /rlImGui/rlImGui.cpp
114114 INCLUDES += $(THIRD_PARTIES_DIR ) /raylib/src
115- GUI_THIRD_PARTIES_LIBS += $(THIRD_PARTIES_DIR ) /raylib/src/$(OS ) /libraylib.a
115+ ifeq ($(OS),Emscripten)
116+ GUI_THIRD_PARTIES_LIBS += $(THIRD_PARTIES_DIR ) /raylib/src/$(OS ) /libraylib.web.a
117+ else
118+ GUI_THIRD_PARTIES_LIBS += $(THIRD_PARTIES_DIR ) /raylib/src/$(OS ) /libraylib.a
119+ endif
116120 ifeq ($(OS),Emscripten)
117121 ifdef EXAEQUOS
118122 LINKER_FLAGS += -sMIN_WEBGL_VERSION=2 -sMAX_WEBGL_VERSION=2 -sFULL_ES3
119123 PKG_LIBS += exa-wayland --static raylib
120124 else
121- # We tell the linker that the game/library uses GLFW3
122- # library internally, it must be linked automatically
123- # (emscripten provides the implementation)
125+ # We tell the linker that the game/library uses GLFW3 library internally,
126+ # it must be linked automatically (emscripten provides the implementation)
124127 LINKER_FLAGS += -s USE_GLFW=3
125- # All webs need a "shell" structure to load and run the game,
126- # by default emscripten has a `shell.html` but we can provide
127- # our own.
128+ # All webs need a "shell" structure to load and run the game, by default
129+ # emscripten has a `shell.html` but we can provide our own.
128130 LINKER_FLAGS += --shell-file $(THIRD_PARTIES_DIR ) /raylib/src/minshell.html
129131 endif
130132 endif
@@ -173,4 +175,4 @@ endif
173175INCLUDES += $(P ) /src/Editor/Remote
174176INCLUDES += $(P ) /src
175177GUI_FILES += $(wildcard $(P ) /src/Editor/* .cpp)
176- GUI_FILES += $(GUI_REMOTE_FILES )
178+ GUI_FILES += $(GUI_REMOTE_FILES )
0 commit comments