Reviewed compilation options
This commit is contained in:
parent
4d4d9b0170
commit
98273f0152
@ -34,10 +34,6 @@ foreach(example_dir ${example_dirs})
|
||||
endforeach()
|
||||
|
||||
include(CheckIncludeFiles)
|
||||
check_include_files(OVR_CAPI_GL.h HAVE_OCULUS_CAPI)
|
||||
if(NOT HAVE_OCULUS_CAPI)
|
||||
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/others/oculus_rift.c)
|
||||
endif()
|
||||
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/others/standard_lighting.c)
|
||||
|
||||
if(${PLATFORM} MATCHES "Android")
|
||||
|
@ -35,7 +35,7 @@ option(SUPPORT_GIF_RECORDING "Allow automatic gif recording of current screen pr
|
||||
option(SUPPORT_GESTURES_SYSTEM "Gestures module is included (gestures.h) to support gestures detection: tap, hold, swipe, drag" ON)
|
||||
option(SUPPORT_MOUSE_GESTURES "Mouse gestures are directly mapped like touches and processed by gestures system" ON)
|
||||
|
||||
# rlgl.c
|
||||
# rlgl.h
|
||||
option(SUPPORT_VR_SIMULATOR "Support VR simulation functionality (stereo rendering)" ON)
|
||||
option(SUPPORT_DISTORTION_SHADER "Include stereo rendering distortion shader (shader_distortion.h)" ON)
|
||||
|
||||
|
11
src/Makefile
11
src/Makefile
@ -411,7 +411,6 @@ endif
|
||||
|
||||
# Define object required on compilation
|
||||
OBJS = core.o \
|
||||
rlgl.o \
|
||||
shapes.o \
|
||||
textures.o \
|
||||
text.o \
|
||||
@ -524,23 +523,19 @@ endif
|
||||
# Compile all modules with their prerequisites
|
||||
|
||||
# Compile core module
|
||||
core.o : core.c raylib.h rlgl.h utils.h raymath.h gestures.h
|
||||
core.o : core.c raylib.h rlgl.h utils.h raymath.h camera.h gestures.h
|
||||
$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS) -D$(PLATFORM) -D$(GRAPHICS)
|
||||
|
||||
# Compile rglfw module
|
||||
rglfw.o : rglfw.c
|
||||
$(CC) $(GLFW_CFLAGS) -c $< $(CFLAGS) $(INCLUDE_PATHS) -D$(PLATFORM) -D$(GRAPHICS)
|
||||
|
||||
# Compile rlgl module
|
||||
rlgl.o : rlgl.c rlgl.h raymath.h
|
||||
$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS) -D$(PLATFORM) -D$(GRAPHICS)
|
||||
|
||||
# Compile shapes module
|
||||
shapes.o : shapes.c raylib.h rlgl.h
|
||||
$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS) -D$(PLATFORM) -D$(GRAPHICS)
|
||||
|
||||
# Compile textures module
|
||||
textures.o : textures.c rlgl.h utils.h
|
||||
textures.o : textures.c raylib.h rlgl.h utils.h
|
||||
$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS) -D$(PLATFORM) -D$(GRAPHICS)
|
||||
|
||||
# Compile text module
|
||||
@ -610,7 +605,6 @@ ifeq ($(ROOT),root)
|
||||
cp --update raylib.h $(RAYLIB_H_INSTALL_PATH)/raylib.h
|
||||
cp --update raymath.h $(RAYLIB_H_INSTALL_PATH)/raymath.h
|
||||
cp --update rlgl.h $(RAYLIB_H_INSTALL_PATH)/rlgl.h
|
||||
cp --update rlgl.c $(RAYLIB_H_INSTALL_PATH)/rlgl.c
|
||||
cp --update physac.h $(RAYLIB_H_INSTALL_PATH)/physac.h
|
||||
@echo "raylib development files installed/updated!"
|
||||
else
|
||||
@ -639,7 +633,6 @@ ifeq ($(ROOT),root)
|
||||
rm --force --interactive --verbose $(RAYLIB_H_INSTALL_PATH)/raylib.h
|
||||
rm --force --interactive --verbose $(RAYLIB_H_INSTALL_PATH)/raymath.h
|
||||
rm --force --interactive --verbose $(RAYLIB_H_INSTALL_PATH)/rlgl.h
|
||||
rm --force --interactive --verbose $(RAYLIB_H_INSTALL_PATH)/rlgl.c
|
||||
rm --force --interactive --verbose $(RAYLIB_H_INSTALL_PATH)/physac.h
|
||||
@echo "raylib development files removed!"
|
||||
else
|
||||
|
@ -16,7 +16,7 @@
|
||||
/* Allow automatic gif recording of current screen pressing CTRL+F12, defined in KeyCallback() */
|
||||
#cmakedefine SUPPORT_GIF_RECORDING 1
|
||||
|
||||
// rlgl.c
|
||||
// rlgl.h
|
||||
/* Support VR simulation functionality (stereo rendering) */
|
||||
#cmakedefine SUPPORT_VR_SIMULATOR 1
|
||||
/* Include stereo rendering distortion shader (shader_distortion.h) */
|
||||
|
Loading…
Reference in New Issue
Block a user