Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ set(PHYSFS_SRCS
src/physfs_archiver_vdf.c
src/physfs_archiver_lec3d.c
src/physfs_archiver_pod.c
src/physfs_archiver_cuebin.c
src/physfs_version.rc
${PHYSFS_CPP_SRCS}
${PHYSFS_M_SRCS}
Expand Down Expand Up @@ -196,6 +197,11 @@ if(NOT PHYSFS_ARCHIVE_POD)
add_definitions(-DPHYSFS_SUPPORTS_POD=0)
endif()

option(PHYSFS_ARCHIVE_CUEBIN "Enable CUE+BIN support" TRUE)
if(NOT PHYSFS_ARCHIVE_CUEBIN)
add_definitions(-PHYSFS_SUPPORTS_CUEBIN=0)
endif()

option(PHYSFS_PLATFORM_SDL3 "Enable building for the SDL3 file system" FALSE)
if(PHYSFS_PLATFORM_SDL3)
find_package(SDL3 REQUIRED CONFIG REQUIRED COMPONENTS Headers SDL3)
Expand Down Expand Up @@ -459,6 +465,7 @@ message_bool_option("VDF support" PHYSFS_ARCHIVE_VDF)
message_bool_option("ISO9660 support" PHYSFS_ARCHIVE_ISO9660)
message_bool_option("GOB/LAB/LFD support" PHYSFS_ARCHIVE_LECARCHIVES)
message_bool_option("POD support" PHYSFS_ARCHIVE_POD)
message_bool_option("CUE+BIN support" PHYSFS_ARCHIVE_CUEBIN)
message_bool_option("SDL3 filesystem support" PHYSFS_PLATFORM_SDL3)
message_bool_option("Build static library" PHYSFS_BUILD_STATIC)
message_bool_option("Build shared library" PHYSFS_BUILD_SHARED)
Expand Down
3 changes: 2 additions & 1 deletion src/Makefile.os2
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ SRCS = physfs.c &
physfs_archiver_csm.c &
physfs_archiver_vdf.c &
physfs_archiver_lec3d.c &
physfs_archiver_pod.c
physfs_archiver_pod.c &
physfs_archiver_cuebin.c


OBJS = $(SRCS:.c=.obj)
Expand Down
3 changes: 3 additions & 0 deletions src/physfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1211,6 +1211,9 @@ static int initStaticArchivers(void)
#if PHYSFS_SUPPORTS_POD
REGISTER_STATIC_ARCHIVER(POD)
#endif
#if PHYSFS_SUPPORTS_CUEBIN
REGISTER_STATIC_ARCHIVER(CUEBIN)
#endif

#undef REGISTER_STATIC_ARCHIVER

Expand Down
Loading
Loading