mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-17 00:32:01 +00:00
Add miniaudio and stb as dependencies
This commit is contained in:
@@ -15,11 +15,25 @@
|
||||
#endif
|
||||
#ifdef __linux__
|
||||
#define STB_VORBIS_HEADER_ONLY
|
||||
#include "./stb_vorbis.h"
|
||||
#include "stb_vorbis.c"
|
||||
// Fixes strcasecmp in miniaudio
|
||||
// https://stackoverflow.com/questions/31127260/strcasecmp-a-non-standard-function
|
||||
int strcasecmp(const char *a, const char *b) {
|
||||
int ca, cb;
|
||||
do {
|
||||
ca = * (unsigned char *)a;
|
||||
cb = * (unsigned char *)b;
|
||||
ca = tolower(toupper(ca));
|
||||
cb = tolower(toupper(cb));
|
||||
a++;
|
||||
b++;
|
||||
} while (ca == cb && ca != '\0');
|
||||
return ca - cb;
|
||||
}
|
||||
#define MINIAUDIO_IMPLEMENTATION
|
||||
#include "./miniaudio.h"
|
||||
#include "miniaudio.h"
|
||||
#undef STB_VORBIS_HEADER_ONLY
|
||||
#include "./stb_vorbis.h"
|
||||
#include "stb_vorbis.c"
|
||||
#endif
|
||||
#ifdef _WINDOWS64
|
||||
#include "../../Minecraft.Client/Platform/Windows64/Windows64_App.h"
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -57,6 +57,7 @@ client_dependencies = [
|
||||
thread_dep,
|
||||
thread_dep,
|
||||
dependency('zlib'),
|
||||
miniaudio_dep
|
||||
]
|
||||
|
||||
if get_option('enable_vsync')
|
||||
@@ -83,7 +84,7 @@ endif
|
||||
|
||||
client = executable('Minecraft.Client',
|
||||
client_sources + platform_sources + localisation[1],
|
||||
include_directories : include_directories('Platform', 'Platform/Linux/Iggy/include'),
|
||||
include_directories : [include_directories('Platform', 'Platform/Linux/Iggy/include'),stb],
|
||||
dependencies : client_dependencies,
|
||||
cpp_args : global_cpp_args + global_cpp_defs + [
|
||||
'-DUNICODE', '-D_UNICODE',
|
||||
|
||||
Reference in New Issue
Block a user