diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 379ef3c..306ad3f 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -4,6 +4,8 @@ Alpha Release 3 - Finally got rid of the resource/ folder. It's now part of the executable +- Added FLAC support + Windows Alpha Release 2 ---------------------------------------------------------------------- diff --git a/README.md b/README.md index 3c1e2f5..18850eb 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ https://github.com/tsoding/musializer/assets/165283/8b9f9653-9b3d-4c04-9569-338f - qoa - xm - mod -- flac (in development) +- flac ## Download Binaries diff --git a/src/nob_linux.c b/src/nob_linux.c index 3bd9af2..2fdbab7 100644 --- a/src/nob_linux.c +++ b/src/nob_linux.c @@ -99,7 +99,7 @@ bool build_raylib(void) if (nob_needs_rebuild(output_path, &input_path, 1)) { cmd.count = 0; nob_cmd_append(&cmd, "cc"); - nob_cmd_append(&cmd, "-ggdb", "-DPLATFORM_DESKTOP", "-fPIC"); + nob_cmd_append(&cmd, "-ggdb", "-DPLATFORM_DESKTOP", "-fPIC", "-DSUPPORT_FILEFORMAT_FLAC=1"); nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/external/glfw/include"); nob_cmd_append(&cmd, "-c", input_path); nob_cmd_append(&cmd, "-o", output_path); diff --git a/src/nob_macos.c b/src/nob_macos.c index 269588a..306dac1 100644 --- a/src/nob_macos.c +++ b/src/nob_macos.c @@ -98,7 +98,7 @@ bool build_raylib(void) if (nob_needs_rebuild(output_path, &input_path, 1)) { cmd.count = 0; nob_cmd_append(&cmd, "clang"); - nob_cmd_append(&cmd, "-g", "-DPLATFORM_DESKTOP", "-fPIC"); + nob_cmd_append(&cmd, "-g", "-DPLATFORM_DESKTOP", "-fPIC", "-DSUPPORT_FILEFORMAT_FLAC=1"); nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/external/glfw/include"); nob_cmd_append(&cmd, "-Iexternal/glfw/deps/ming"); nob_cmd_append(&cmd, "-DGRAPHICS_API_OPENGL_33"); diff --git a/src/nob_openbsd.c b/src/nob_openbsd.c index ea6ce34..22fae4e 100644 --- a/src/nob_openbsd.c +++ b/src/nob_openbsd.c @@ -99,7 +99,7 @@ bool build_raylib(void) if (nob_needs_rebuild(output_path, &input_path, 1)) { cmd.count = 0; nob_cmd_append(&cmd, "cc"); - nob_cmd_append(&cmd, "-ggdb", "-DPLATFORM_DESKTOP", "-fPIC"); + nob_cmd_append(&cmd, "-ggdb", "-DPLATFORM_DESKTOP", "-fPIC", "-DSUPPORT_FILEFORMAT_FLAC=1"); nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/external/glfw/include"); nob_cmd_append(&cmd, "-c", input_path); nob_cmd_append(&cmd, "-o", output_path); diff --git a/src/nob_win64_mingw.c b/src/nob_win64_mingw.c index 02cb8ce..c7fd438 100644 --- a/src/nob_win64_mingw.c +++ b/src/nob_win64_mingw.c @@ -76,7 +76,7 @@ bool build_raylib() if (nob_needs_rebuild(output_path, &input_path, 1)) { cmd.count = 0; nob_cmd_append(&cmd, "x86_64-w64-mingw32-gcc"); - nob_cmd_append(&cmd, "-ggdb", "-DPLATFORM_DESKTOP", "-fPIC"); + nob_cmd_append(&cmd, "-ggdb", "-DPLATFORM_DESKTOP", "-fPIC", "-DSUPPORT_FILEFORMAT_FLAC=1"); nob_cmd_append(&cmd, "-DPLATFORM_DESKTOP"); nob_cmd_append(&cmd, "-fPIC"); nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/external/glfw/include"); diff --git a/src/nob_win64_msvc.c b/src/nob_win64_msvc.c index 5633c8d..b2e2773 100644 --- a/src/nob_win64_msvc.c +++ b/src/nob_win64_msvc.c @@ -72,7 +72,7 @@ bool build_raylib(void) if (nob_needs_rebuild(output_path, &input_path, 1)) { cmd.count = 0; - nob_cmd_append(&cmd, "cl.exe", "/DPLATFORM_DESKTOP"); + nob_cmd_append(&cmd, "cl.exe", "/DPLATFORM_DESKTOP", "/DSUPPORT_FILEFORMAT_FLAC=1"); nob_cmd_append(&cmd, "/I", "./raylib/raylib-"RAYLIB_VERSION"/src/external/glfw/include"); nob_cmd_append(&cmd, "/c", input_path); nob_cmd_append(&cmd, nob_temp_sprintf("/Fo%s", output_path));