mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-20 15:51:07 +01:00
android: remove dependency on cpu-features.h
android: remove dependency on cpu-features.h getauxval got introduced into bionic well before Android 5.0
This commit is contained in:
committed by
GitHub
parent
25ab8c99df
commit
6905714986
@@ -1407,8 +1407,6 @@ if(ANDROID)
|
||||
"${SDL3_SOURCE_DIR}/src/core/android/*.c"
|
||||
"${SDL3_SOURCE_DIR}/src/core/android/*.h"
|
||||
)
|
||||
sdl_sources("${CMAKE_ANDROID_NDK}/sources/android/cpufeatures/cpu-features.c")
|
||||
set_property(SOURCE "${CMAKE_ANDROID_NDK}/sources/android/cpufeatures/cpu-features.c" APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-declaration-after-statement")
|
||||
|
||||
sdl_glob_sources(
|
||||
"${SDL3_SOURCE_DIR}/src/misc/android/*.c"
|
||||
@@ -3819,10 +3817,6 @@ else()
|
||||
set(ARCH_64 FALSE)
|
||||
endif()
|
||||
|
||||
if(ANDROID)
|
||||
sdl_include_directories(PRIVATE SYSTEM "${CMAKE_ANDROID_NDK}/sources/android/cpufeatures")
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
cmake_push_check_state(RESET)
|
||||
check_c_compiler_flag(-fobjc-arc COMPILER_SUPPORTS_FOBJC_ARC)
|
||||
|
||||
Reference in New Issue
Block a user