mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-13 21:36:01 +00:00
Support no-audio no-models modules compilation
Renamed flags for convenience.
This commit is contained in:
@@ -49,7 +49,7 @@ if(USE_AUDIO)
|
|||||||
set(sources ${raylib_sources})
|
set(sources ${raylib_sources})
|
||||||
else()
|
else()
|
||||||
MESSAGE(STATUS "Audio Backend: None (-DUSE_AUDIO=OFF)")
|
MESSAGE(STATUS "Audio Backend: None (-DUSE_AUDIO=OFF)")
|
||||||
set(INCLUDE_AUDIO_MODULE 0)
|
set(RAYLIB_MODULE_AUDIO 0)
|
||||||
list(REMOVE_ITEM raylib_sources ${CMAKE_CURRENT_SOURCE_DIR}/raudio.c)
|
list(REMOVE_ITEM raylib_sources ${CMAKE_CURRENT_SOURCE_DIR}/raudio.c)
|
||||||
set(sources ${raylib_sources})
|
set(sources ${raylib_sources})
|
||||||
endif()
|
endif()
|
||||||
|
14
src/Makefile
14
src/Makefile
@@ -59,9 +59,10 @@ RAYLIB_LIBTYPE ?= STATIC
|
|||||||
# Build mode for library: DEBUG or RELEASE
|
# Build mode for library: DEBUG or RELEASE
|
||||||
RAYLIB_BUILD_MODE ?= RELEASE
|
RAYLIB_BUILD_MODE ?= RELEASE
|
||||||
|
|
||||||
# Included raylib audio module on compilation
|
# Include raylib modules on compilation
|
||||||
# NOTE: Some programs like tools could not require audio support
|
# NOTE: Some programs like tools could not require those modules
|
||||||
INCLUDE_AUDIO_MODULE ?= TRUE
|
RAYLIB_MODULE_AUDIO ?= TRUE
|
||||||
|
RAYLIB_MODULE_MODELS ?= TRUE
|
||||||
|
|
||||||
# Use external GLFW library instead of rglfw module
|
# Use external GLFW library instead of rglfw module
|
||||||
# TODO: Review usage of examples on Linux.
|
# TODO: Review usage of examples on Linux.
|
||||||
@@ -393,7 +394,6 @@ OBJS = core.o \
|
|||||||
shapes.o \
|
shapes.o \
|
||||||
textures.o \
|
textures.o \
|
||||||
text.o \
|
text.o \
|
||||||
models.o \
|
|
||||||
utils.o
|
utils.o
|
||||||
|
|
||||||
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
@@ -401,8 +401,10 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
|||||||
OBJS += rglfw.o
|
OBJS += rglfw.o
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(RAYLIB_MODULE_MODELS),TRUE)
|
||||||
ifeq ($(INCLUDE_AUDIO_MODULE),TRUE)
|
OBJS += models.o
|
||||||
|
endif
|
||||||
|
ifeq ($(RAYLIB_MODULE_AUDIO),TRUE)
|
||||||
OBJS += raudio.o
|
OBJS += raudio.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user