mirror of
				https://github.com/raysan5/raylib.git
				synced 2025-11-04 01:34:19 +00:00 
			
		
		
		
	Remove physac library from raylib building
At this moment, physac is an external unmaintained library, better move out of raylib.
This commit is contained in:
		
							
								
								
									
										22
									
								
								src/Makefile
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								src/Makefile
									
									
									
									
									
								
							@@ -78,13 +78,10 @@ RAYLIB_CONFIG_FLAGS  ?= NONE
 | 
				
			|||||||
RAYLIB_MODULE_AUDIO  ?= TRUE
 | 
					RAYLIB_MODULE_AUDIO  ?= TRUE
 | 
				
			||||||
RAYLIB_MODULE_MODELS ?= TRUE
 | 
					RAYLIB_MODULE_MODELS ?= TRUE
 | 
				
			||||||
RAYLIB_MODULE_RAYGUI ?= FALSE
 | 
					RAYLIB_MODULE_RAYGUI ?= FALSE
 | 
				
			||||||
RAYLIB_MODULE_PHYSAC ?= FALSE
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# NOTE: Additional libraries have been moved to their own repos:
 | 
					# NOTE: Additional libraries have been moved to their own repos:
 | 
				
			||||||
# raygui: https://github.com/raysan5/raygui
 | 
					# raygui: https://github.com/raysan5/raygui
 | 
				
			||||||
# physac: https://github.com/raysan5/physac
 | 
					 | 
				
			||||||
RAYLIB_MODULE_RAYGUI_PATH ?= $(RAYLIB_SRC_PATH)/../../raygui/src
 | 
					RAYLIB_MODULE_RAYGUI_PATH ?= $(RAYLIB_SRC_PATH)/../../raygui/src
 | 
				
			||||||
RAYLIB_MODULE_PHYSAC_PATH ?= $(RAYLIB_SRC_PATH)/../../physac/src
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Use external GLFW library instead of rglfw module
 | 
					# Use external GLFW library instead of rglfw module
 | 
				
			||||||
USE_EXTERNAL_GLFW     ?= FALSE
 | 
					USE_EXTERNAL_GLFW     ?= FALSE
 | 
				
			||||||
@@ -553,9 +550,6 @@ endif
 | 
				
			|||||||
ifeq ($(RAYLIB_MODULE_RAYGUI),TRUE)
 | 
					ifeq ($(RAYLIB_MODULE_RAYGUI),TRUE)
 | 
				
			||||||
    OBJS += raygui.o
 | 
					    OBJS += raygui.o
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
ifeq ($(RAYLIB_MODULE_PHYSAC),TRUE)
 | 
					 | 
				
			||||||
    OBJS += physac.o
 | 
					 | 
				
			||||||
endif
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
ifeq ($(PLATFORM),PLATFORM_ANDROID)
 | 
					ifeq ($(PLATFORM),PLATFORM_ANDROID)
 | 
				
			||||||
    OBJS += android_native_app_glue.o
 | 
					    OBJS += android_native_app_glue.o
 | 
				
			||||||
@@ -680,23 +674,10 @@ else
 | 
				
			|||||||
	@echo "#include \"$(RAYLIB_MODULE_RAYGUI_PATH)/raygui.h\"" >> raygui.c
 | 
						@echo "#include \"$(RAYLIB_MODULE_RAYGUI_PATH)/raygui.h\"" >> raygui.c
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Compile physac module
 | 
					 | 
				
			||||||
# NOTE: physac header should be distributed with raylib.h
 | 
					 | 
				
			||||||
physac.o : physac.c
 | 
					 | 
				
			||||||
	$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS)
 | 
					 | 
				
			||||||
physac.c:
 | 
					 | 
				
			||||||
ifeq ($(PLATFORM_SHELL), cmd)
 | 
					 | 
				
			||||||
	@echo #define PHYSAC_IMPLEMENTATION > physac.c
 | 
					 | 
				
			||||||
	@echo #include "$(RAYLIB_MODULE_PHYSAC_PATH)/physac.h" >> physac.c
 | 
					 | 
				
			||||||
else
 | 
					 | 
				
			||||||
	@echo "#define PHYSAC_IMPLEMENTATION" > physac.c
 | 
					 | 
				
			||||||
	@echo "#include \"$(RAYLIB_MODULE_PHYSAC_PATH)/physac.h\"" >> physac.c
 | 
					 | 
				
			||||||
endif
 | 
					 | 
				
			||||||
# Compile android_native_app_glue module
 | 
					# Compile android_native_app_glue module
 | 
				
			||||||
android_native_app_glue.o : $(NATIVE_APP_GLUE)/android_native_app_glue.c
 | 
					android_native_app_glue.o : $(NATIVE_APP_GLUE)/android_native_app_glue.c
 | 
				
			||||||
	$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS)
 | 
						$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
# Install generated and needed files to desired directories.
 | 
					# Install generated and needed files to desired directories.
 | 
				
			||||||
# On GNU/Linux and BSDs, there are some standard directories that contain extra
 | 
					# On GNU/Linux and BSDs, there are some standard directories that contain extra
 | 
				
			||||||
# libraries and header files. These directories (often /usr/local/lib and
 | 
					# libraries and header files. These directories (often /usr/local/lib and
 | 
				
			||||||
@@ -780,7 +761,7 @@ clean:	clean_shell_$(PLATFORM_SHELL)
 | 
				
			|||||||
	@echo "removed all generated files!"
 | 
						@echo "removed all generated files!"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
clean_shell_sh:
 | 
					clean_shell_sh:
 | 
				
			||||||
	rm -fv *.o $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).a $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).bc $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).so* raygui.c physac.c
 | 
						rm -fv *.o $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).a $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).bc $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).so* raygui.c
 | 
				
			||||||
ifeq ($(PLATFORM),PLATFORM_ANDROID)
 | 
					ifeq ($(PLATFORM),PLATFORM_ANDROID)
 | 
				
			||||||
	rm -fv $(NATIVE_APP_GLUE)/android_native_app_glue.o
 | 
						rm -fv $(NATIVE_APP_GLUE)/android_native_app_glue.o
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
@@ -794,4 +775,3 @@ clean_shell_cmd:
 | 
				
			|||||||
	del lib$(RAYLIB_LIB_NAME)dll.a /s & \
 | 
						del lib$(RAYLIB_LIB_NAME)dll.a /s & \
 | 
				
			||||||
	del $(RAYLIB_LIB_NAME).dll /s & \
 | 
						del $(RAYLIB_LIB_NAME).dll /s & \
 | 
				
			||||||
	del raygui.c /s & \
 | 
						del raygui.c /s & \
 | 
				
			||||||
	del physac.c /s
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user