mirror of https://github.com/libsdl-org/SDL.git
Add back glob for src/video/*.c to CMakeLists.txt
This commit is contained in:
parent
735cf5a6f9
commit
12d18c7497
|
|
@ -498,6 +498,7 @@ sdl_glob_sources(
|
||||||
"${SDL3_SOURCE_DIR}/src/thread/*.c"
|
"${SDL3_SOURCE_DIR}/src/thread/*.c"
|
||||||
"${SDL3_SOURCE_DIR}/src/time/*.c"
|
"${SDL3_SOURCE_DIR}/src/time/*.c"
|
||||||
"${SDL3_SOURCE_DIR}/src/timer/*.c"
|
"${SDL3_SOURCE_DIR}/src/timer/*.c"
|
||||||
|
"${SDL3_SOURCE_DIR}/src/video/*.c"
|
||||||
"${SDL3_SOURCE_DIR}/src/video/yuv2rgb/*.c"
|
"${SDL3_SOURCE_DIR}/src/video/yuv2rgb/*.c"
|
||||||
)
|
)
|
||||||
if(MSVC AND TARGET SDL3-shared)
|
if(MSVC AND TARGET SDL3-shared)
|
||||||
|
|
@ -513,12 +514,6 @@ if(MSVC AND TARGET SDL3-shared)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Exclude intrinsinc modules from general builds
|
|
||||||
file(GLOB video_sources "${SDL3_SOURCE_DIR}/src/video/*.c")
|
|
||||||
list(FILTER video_sources EXCLUDE REGEX "SDL_blit_A_avx2.c$")
|
|
||||||
list(FILTER video_sources EXCLUDE REGEX "SDL_blit_A_sse4_1.c$")
|
|
||||||
sdl_glob_sources(${video_sources})
|
|
||||||
|
|
||||||
if(USE_INTELCC)
|
if(USE_INTELCC)
|
||||||
# warning #39: division by zero
|
# warning #39: division by zero
|
||||||
# warning #239: floating point underflow
|
# warning #239: floating point underflow
|
||||||
|
|
@ -744,7 +739,6 @@ if(SDL_ASSEMBLY)
|
||||||
cmake_pop_check_state()
|
cmake_pop_check_state()
|
||||||
if(COMPILER_SUPPORTS_SSE4_1)
|
if(COMPILER_SUPPORTS_SSE4_1)
|
||||||
set(HAVE_SSE4_1 TRUE)
|
set(HAVE_SSE4_1 TRUE)
|
||||||
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/video/SDL_blit_A_sse4_1.c")
|
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
if(SDL_SSE4_2)
|
if(SDL_SSE4_2)
|
||||||
|
|
@ -808,7 +802,6 @@ if(SDL_ASSEMBLY)
|
||||||
return 0;
|
return 0;
|
||||||
}" COMPILER_SUPPORTS_AVX2)
|
}" COMPILER_SUPPORTS_AVX2)
|
||||||
cmake_pop_check_state()
|
cmake_pop_check_state()
|
||||||
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/video/SDL_blit_A_*.c")
|
|
||||||
if(COMPILER_SUPPORTS_AVX2)
|
if(COMPILER_SUPPORTS_AVX2)
|
||||||
set(HAVE_AVX2 TRUE)
|
set(HAVE_AVX2 TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue