Fixed adding duplicate fsops files to CMakeLists.txt

main
Sam Lantinga 2024-03-19 16:20:55 -07:00
parent 478b965e6c
commit ed5d2bdda5
1 changed files with 0 additions and 28 deletions

View File

@ -1298,10 +1298,6 @@ if(ANDROID)
sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/posix/SDL_sysfsops.c") sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/posix/SDL_sysfsops.c")
set(HAVE_SDL_FSOPS TRUE) set(HAVE_SDL_FSOPS TRUE)
set(SDL_FSOPS_POSIX 1) # !!! FIXME: this might need something else for .apk data?
sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/posix/SDL_sysfsops.c")
set(HAVE_SDL_FSOPS TRUE)
if(SDL_HAPTIC) if(SDL_HAPTIC)
set(SDL_HAPTIC_ANDROID 1) set(SDL_HAPTIC_ANDROID 1)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/haptic/android/*.c") sdl_glob_sources("${SDL3_SOURCE_DIR}/src/haptic/android/*.c")
@ -1468,10 +1464,6 @@ elseif(EMSCRIPTEN)
sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/posix/SDL_sysfsops.c") sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/posix/SDL_sysfsops.c")
set(HAVE_SDL_FSOPS TRUE) set(HAVE_SDL_FSOPS TRUE)
set(SDL_FSOPS_POSIX 1)
sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/posix/SDL_sysfsops.c")
set(HAVE_SDL_FSOPS TRUE)
if(SDL_CAMERA) if(SDL_CAMERA)
set(SDL_CAMERA_DRIVER_EMSCRIPTEN 1) set(SDL_CAMERA_DRIVER_EMSCRIPTEN 1)
set(HAVE_CAMERA TRUE) set(HAVE_CAMERA TRUE)
@ -2480,10 +2472,6 @@ elseif(HAIKU)
sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/posix/SDL_sysfsops.c") sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/posix/SDL_sysfsops.c")
set(HAVE_SDL_FSOPS TRUE) set(HAVE_SDL_FSOPS TRUE)
set(SDL_FSOPS_POSIX 1)
sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/posix/SDL_sysfsops.c")
set(HAVE_SDL_FSOPS TRUE)
set(SDL_TIME_UNIX 1) set(SDL_TIME_UNIX 1)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/time/unix/*.c") sdl_glob_sources("${SDL3_SOURCE_DIR}/src/time/unix/*.c")
set(HAVE_SDL_TIME TRUE) set(HAVE_SDL_TIME TRUE)
@ -2524,10 +2512,6 @@ elseif(RISCOS)
sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/posix/SDL_sysfsops.c") sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/posix/SDL_sysfsops.c")
set(HAVE_SDL_FSOPS TRUE) set(HAVE_SDL_FSOPS TRUE)
set(SDL_FSOPS_POSIX 1)
sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/posix/SDL_sysfsops.c")
set(HAVE_SDL_FSOPS TRUE)
set(SDL_TIME_UNIX 1) set(SDL_TIME_UNIX 1)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/time/unix/*.c") sdl_glob_sources("${SDL3_SOURCE_DIR}/src/time/unix/*.c")
set(HAVE_SDL_TIME TRUE) set(HAVE_SDL_TIME TRUE)
@ -2571,8 +2555,6 @@ elseif(VITA)
# !!! FIXME: do we need a FSops implementation for this? # !!! FIXME: do we need a FSops implementation for this?
# !!! FIXME: do we need a FSops implementation for this?
if(SDL_JOYSTICK) if(SDL_JOYSTICK)
set(SDL_JOYSTICK_VITA 1) set(SDL_JOYSTICK_VITA 1)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/joystick/vita/*.c") sdl_glob_sources("${SDL3_SOURCE_DIR}/src/joystick/vita/*.c")
@ -2713,8 +2695,6 @@ elseif(PSP)
# !!! FIXME: do we need a FSops implementation for this? # !!! FIXME: do we need a FSops implementation for this?
# !!! FIXME: do we need a FSops implementation for this?
if(SDL_JOYSTICK) if(SDL_JOYSTICK)
set(SDL_JOYSTICK_PSP 1) set(SDL_JOYSTICK_PSP 1)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/joystick/psp/*.c") sdl_glob_sources("${SDL3_SOURCE_DIR}/src/joystick/psp/*.c")
@ -2784,8 +2764,6 @@ elseif(PS2)
# !!! FIXME: do we need a FSops implementation for this? # !!! FIXME: do we need a FSops implementation for this?
# !!! FIXME: do we need a FSops implementation for this?
if(SDL_JOYSTICK) if(SDL_JOYSTICK)
set(SDL_JOYSTICK_PS2 1) set(SDL_JOYSTICK_PS2 1)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/joystick/ps2/*.c") sdl_glob_sources("${SDL3_SOURCE_DIR}/src/joystick/ps2/*.c")
@ -2843,8 +2821,6 @@ elseif(N3DS)
# !!! FIXME: do we need a FSops implementation for this? # !!! FIXME: do we need a FSops implementation for this?
# !!! FIXME: do we need a FSops implementation for this?
if(SDL_JOYSTICK) if(SDL_JOYSTICK)
set(SDL_JOYSTICK_N3DS 1) set(SDL_JOYSTICK_N3DS 1)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/joystick/n3ds/*.c") sdl_glob_sources("${SDL3_SOURCE_DIR}/src/joystick/n3ds/*.c")
@ -2968,10 +2944,6 @@ if(NOT HAVE_SDL_FSOPS)
set(SDL_FSOPS_DUMMY 1) set(SDL_FSOPS_DUMMY 1)
sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/dummy/SDL_sysfsops.c") sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/dummy/SDL_sysfsops.c")
endif() endif()
if(NOT HAVE_SDL_FSOPS)
set(SDL_FSOPS_DUMMY 1)
sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/dummy/SDL_sysfsops.c")
endif()
if(NOT HAVE_SDL_LOCALE) if(NOT HAVE_SDL_LOCALE)
set(SDL_LOCALE_DUMMY 1) set(SDL_LOCALE_DUMMY 1)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/locale/dummy/*.c") sdl_glob_sources("${SDL3_SOURCE_DIR}/src/locale/dummy/*.c")