mirror of https://github.com/raysan5/raylib
Use stb_vorbis.h as header only
This commit is contained in:
parent
e48f2f9d43
commit
4ec4dc691f
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* DEPENDENCIES:
|
||||
* mini_al.h - Audio device management lib (http://kcat.strangesoft.net/openal.html)
|
||||
* stb_vorbis.c - Ogg audio files loading (http://www.nothings.org/stb_vorbis/)
|
||||
* stb_vorbis.h - Ogg audio files loading (http://www.nothings.org/stb_vorbis/)
|
||||
* jar_xm.h - XM module file loading
|
||||
* jar_mod.h - MOD audio file loading
|
||||
* dr_flac.h - FLAC audio file loading
|
||||
|
|
|
@ -24,13 +24,13 @@ gcc -O2 -c textures.c -std=c99 -Wall -DPLATFORM_DESKTOP
|
|||
gcc -O2 -c text.c -std=c99 -Wall -DPLATFORM_DESKTOP
|
||||
gcc -O2 -c models.c -std=c99 -Wall -DPLATFORM_DESKTOP
|
||||
gcc -O2 -c audio.c -std=c99 -Wall -DPLATFORM_DESKTOP
|
||||
gcc -O2 -c external/stb_vorbis.c -Wall -I.
|
||||
gcc -O2 -c external/mini_al.c -Wall -I.
|
||||
gcc -O2 -c utils.c -std=c99 -Wall -DPLATFORM_DESKTOP
|
||||
|
||||
:: .
|
||||
:: . > Generate raylib library
|
||||
:: ------------------------------
|
||||
ar rcs libraylib.a core.o rglfw.o shapes.o textures.o text.o models.o audio.o mini_al.o stb_vorbis.o utils.o
|
||||
ar rcs libraylib.a core.o rglfw.o shapes.o textures.o text.o models.o audio.o mini_al.o utils.o
|
||||
:: .
|
||||
:: > Installing raylib library
|
||||
:: -----------------------------
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -153,7 +153,6 @@
|
|||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\src\audio.c" />
|
||||
<ClCompile Include="..\..\..\src\core.c" />
|
||||
<ClCompile Include="..\..\..\src\external\stb_vorbis.c" />
|
||||
<ClCompile Include="..\..\..\src\models.c" />
|
||||
<ClCompile Include="..\..\..\src\shapes.c" />
|
||||
<ClCompile Include="..\..\..\src\text.c" />
|
||||
|
|
|
@ -235,7 +235,6 @@
|
|||
<ClCompile Include="..\..\..\src\audio.c" />
|
||||
<ClCompile Include="..\..\..\src\core.c" />
|
||||
<ClCompile Include="..\..\..\src\external\mini_al.c" />
|
||||
<ClCompile Include="..\..\..\src\external\stb_vorbis.c" />
|
||||
<ClCompile Include="..\..\..\src\models.c" />
|
||||
<ClCompile Include="..\..\..\src\rglfw.c" />
|
||||
<ClCompile Include="..\..\..\src\shapes.c" />
|
||||
|
|
|
@ -162,7 +162,6 @@
|
|||
<ClCompile Include="..\..\..\src\audio.c" />
|
||||
<ClCompile Include="..\..\..\src\core.c" />
|
||||
<ClCompile Include="..\..\..\src\external\mini_al.c" />
|
||||
<ClCompile Include="..\..\..\src\external\stb_vorbis.c" />
|
||||
<ClCompile Include="..\..\..\src\models.c" />
|
||||
<ClCompile Include="..\..\..\src\rglfw.c" />
|
||||
<ClCompile Include="..\..\..\src\shapes.c" />
|
||||
|
|
|
@ -47,8 +47,7 @@ add_definitions("-DRAYLIB_CMAKE=1")
|
|||
if(USE_AUDIO)
|
||||
file(GLOB mini_al external/mini_al.c)
|
||||
MESSAGE(STATUS "Audio Backend: mini_al")
|
||||
file(GLOB stb_vorbis external/stb_vorbis.c)
|
||||
set(sources ${raylib_sources} ${mini_al} ${stb_vorbis})
|
||||
set(sources ${raylib_sources} ${mini_al})
|
||||
else()
|
||||
MESSAGE(STATUS "Audio Backend: None (-DUSE_AUDIO=OFF)")
|
||||
set(INCLUDE_AUDIO_MODULE 0)
|
||||
|
|
|
@ -404,7 +404,6 @@ endif
|
|||
|
||||
ifeq ($(INCLUDE_AUDIO_MODULE),TRUE)
|
||||
OBJS += audio.o
|
||||
OBJS += stb_vorbis.o
|
||||
OBJS += mini_al.o
|
||||
endif
|
||||
|
||||
|
@ -537,10 +536,6 @@ audio.o : audio.c raylib.h
|
|||
mini_al.o : external/mini_al.c external/mini_al.h
|
||||
$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS) -D$(PLATFORM)
|
||||
|
||||
# Compile stb_vorbis library
|
||||
stb_vorbis.o: external/stb_vorbis.c external/stb_vorbis.h
|
||||
$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS) -D$(PLATFORM)
|
||||
|
||||
# Compile utils module
|
||||
utils.o : utils.c utils.h
|
||||
$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS) -D$(PLATFORM)
|
||||
|
@ -628,9 +623,9 @@ endif
|
|||
# Clean everything
|
||||
clean:
|
||||
ifeq ($(PLATFORM_OS),WINDOWS)
|
||||
del *.o $(RAYLIB_RELEASE_PATH)/libraylib.a $(RAYLIB_RELEASE_PATH)/libraylib.bc $(RAYLIB_RELEASE_PATH)/libraylib.so external/stb_vorbis.o
|
||||
del *.o $(RAYLIB_RELEASE_PATH)/libraylib.a $(RAYLIB_RELEASE_PATH)/libraylib.bc $(RAYLIB_RELEASE_PATH)/libraylib.so
|
||||
else
|
||||
rm -fv *.o $(RAYLIB_RELEASE_PATH)/libraylib.a $(RAYLIB_RELEASE_PATH)/libraylib.bc $(RAYLIB_RELEASE_PATH)/libraylib.so* external/stb_vorbis.o
|
||||
rm -fv *.o $(RAYLIB_RELEASE_PATH)/libraylib.a $(RAYLIB_RELEASE_PATH)/libraylib.bc $(RAYLIB_RELEASE_PATH)/libraylib.so*
|
||||
endif
|
||||
ifeq ($(PLATFORM),PLATFORM_ANDROID)
|
||||
rm -rf $(ANDROID_TOOLCHAIN)
|
||||
|
|
|
@ -91,7 +91,7 @@
|
|||
#include <stdio.h> // Required for: FILE, fopen(), fclose(), fread()
|
||||
|
||||
#if defined(SUPPORT_FILEFORMAT_OGG)
|
||||
//#define STB_VORBIS_HEADER_ONLY
|
||||
#define STB_VORBIS_IMPLEMENTATION
|
||||
#include "external/stb_vorbis.h" // OGG loading functions
|
||||
#endif
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue