|
@ -29,6 +29,7 @@ set(raylib_public_headers |
|
|
|
|
|
|
|
|
# Sources to be compiled |
|
|
# Sources to be compiled |
|
|
set(raylib_sources |
|
|
set(raylib_sources |
|
|
|
|
|
raudio.c |
|
|
rcore.c |
|
|
rcore.c |
|
|
rmodels.c |
|
|
rmodels.c |
|
|
rshapes.c |
|
|
rshapes.c |
|
@ -47,14 +48,12 @@ endif () |
|
|
# Produces a variable LIBS_PRIVATE that will be used later |
|
|
# Produces a variable LIBS_PRIVATE that will be used later |
|
|
include(LibraryConfigurations) |
|
|
include(LibraryConfigurations) |
|
|
|
|
|
|
|
|
if (USE_AUDIO) |
|
|
|
|
|
|
|
|
if (SUPPORT_MODULE_RAUDIO) |
|
|
MESSAGE(STATUS "Audio Backend: miniaudio") |
|
|
MESSAGE(STATUS "Audio Backend: miniaudio") |
|
|
list(APPEND raylib_sources raudio.c) |
|
|
|
|
|
else () |
|
|
else () |
|
|
MESSAGE(STATUS "Audio Backend: None (-DUSE_AUDIO=OFF)") |
|
|
|
|
|
|
|
|
MESSAGE(STATUS "Audio Backend: None (-DCUSTOMIZE_BUILD=ON -DSUPPORT_MODULE_RAUDIO=OFF)") |
|
|
endif () |
|
|
endif () |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_library(raylib ${raylib_sources} ${raylib_public_headers}) |
|
|
add_library(raylib ${raylib_sources} ${raylib_public_headers}) |
|
|
|
|
|
|
|
|
if (NOT BUILD_SHARED_LIBS) |
|
|
if (NOT BUILD_SHARED_LIBS) |
|
|