Skip to content

Commit

Permalink
Enable FLAC format by default
Browse files Browse the repository at this point in the history
  • Loading branch information
tjammer committed Dec 16, 2024
1 parent 3063dda commit b5a603d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/c/dune
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@
(= %{system} elf)))
(deps
(source_tree vendor/raylib)
enable_jpg.patch
enable_formats.patch
(:discover apply_patch.exe))
(action
(no-infer
(progn
(run chmod +w vendor/raylib/src/config.h)
(run ./apply_patch.exe enable_jpg.patch)
(run ./apply_patch.exe enable_formats.patch)
(run make -C vendor/raylib/src RAYLIB_LIBTYPE=STATIC -j 8)
(copy vendor/raylib/src/libraylib.a libraylib.a)
(run make -C vendor/raylib/src clean)
Expand All @@ -101,13 +101,13 @@
(= %{system} macosx))
(deps
(source_tree vendor/raylib)
enable_jpg.patch
enable_formats.patch
(:discover apply_patch.exe))
(action
(no-infer
(progn
(run chmod +w vendor/raylib/src/config.h)
(run ./apply_patch.exe enable_jpg.patch)
(run ./apply_patch.exe enable_formats.patch)
(run make -C vendor/raylib/src RAYLIB_LIBTYPE=STATIC -j 8)
(copy vendor/raylib/src/libraylib.a libraylib.a)
(run make -C vendor/raylib/src clean)
Expand All @@ -121,14 +121,14 @@
(= %{system} mingw64))
(deps
(source_tree vendor/raylib)
enable_jpg.patch
enable_formats.patch
mingw64.patch
(:discover apply_patch.exe))
(action
(no-infer
(progn
(run chmod +w vendor/raylib/src/config.h)
(run ./apply_patch.exe enable_jpg.patch)
(run ./apply_patch.exe enable_formats.patch)
(run chmod +w vendor/raylib/src/Makefile)
(run ./apply_patch.exe mingw64.patch)
(run make -C vendor/raylib/src RAYLIB_LIBTYPE=STATIC -j 8)
Expand All @@ -149,14 +149,14 @@
(= %{system} bsd_elf)))
(deps
(source_tree vendor/raylib)
enable_jpg.patch
enable_formats.patch
freebsd.patch
(:discover apply_patch.exe))
(action
(no-infer
(progn
(run chmod +w vendor/raylib/src/config.h)
(run ./apply_patch.exe enable_jpg.patch)
(run ./apply_patch.exe enable_formats.patch)
(run chmod +w vendor/raylib/src/Makefile)
(run ./apply_patch.exe freebsd.patch)
(run gmake -C vendor/raylib/src RAYLIB_LIBTYPE=STATIC -j 8)
Expand Down
9 changes: 9 additions & 0 deletions src/c/enable_jpg.patch → src/c/enable_formats.patch
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,12 @@ diff --git a/vendor/raylib/src/config.h b/vendor/raylib/src/config.h
#define SUPPORT_FILEFORMAT_GIF 1
#define SUPPORT_FILEFORMAT_QOI 1
//#define SUPPORT_FILEFORMAT_PSD 1
@@ -225,7 +225,7 @@
#define SUPPORT_FILEFORMAT_OGG 1
#define SUPPORT_FILEFORMAT_MP3 1
#define SUPPORT_FILEFORMAT_QOA 1
-//#define SUPPORT_FILEFORMAT_FLAC 1
+#define SUPPORT_FILEFORMAT_FLAC 1
#define SUPPORT_FILEFORMAT_XM 1
#define SUPPORT_FILEFORMAT_MOD 1

0 comments on commit b5a603d

Please sign in to comment.