Skip to content

Commit 6905714

Browse files
authored
android: remove dependency on cpu-features.h
android: remove dependency on cpu-features.h getauxval got introduced into bionic well before Android 5.0
1 parent 25ab8c9 commit 6905714

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

Android.mk

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ ifeq ($(NDK_DEBUG),1)
112112
cmd-strip :=
113113
endif
114114

115-
LOCAL_STATIC_LIBRARIES := cpufeatures
116-
117115
include $(BUILD_SHARED_LIBRARY)
118116

119117

@@ -145,4 +143,3 @@ LOCAL_EXPORT_LDLIBS :=
145143

146144
include $(BUILD_STATIC_LIBRARY)
147145

148-
$(call import-module,android/cpufeatures)

CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,8 +1407,6 @@ if(ANDROID)
14071407
"${SDL3_SOURCE_DIR}/src/core/android/*.c"
14081408
"${SDL3_SOURCE_DIR}/src/core/android/*.h"
14091409
)
1410-
sdl_sources("${CMAKE_ANDROID_NDK}/sources/android/cpufeatures/cpu-features.c")
1411-
set_property(SOURCE "${CMAKE_ANDROID_NDK}/sources/android/cpufeatures/cpu-features.c" APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-declaration-after-statement")
14121410

14131411
sdl_glob_sources(
14141412
"${SDL3_SOURCE_DIR}/src/misc/android/*.c"
@@ -3819,10 +3817,6 @@ else()
38193817
set(ARCH_64 FALSE)
38203818
endif()
38213819

3822-
if(ANDROID)
3823-
sdl_include_directories(PRIVATE SYSTEM "${CMAKE_ANDROID_NDK}/sources/android/cpufeatures")
3824-
endif()
3825-
38263820
if(APPLE)
38273821
cmake_push_check_state(RESET)
38283822
check_c_compiler_flag(-fobjc-arc COMPILER_SUPPORTS_FOBJC_ARC)

src/cpuinfo/SDL_cpuinfo.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@
7676
#include <sys/param.h>
7777
#endif
7878

79-
#if defined(SDL_PLATFORM_ANDROID) && defined(__arm__) && !defined(HAVE_GETAUXVAL)
80-
#include <cpu-features.h>
81-
#endif
82-
8379
#if defined(HAVE_GETAUXVAL) || defined(HAVE_ELF_AUX_INFO)
8480
#include <sys/auxv.h>
8581
#endif

0 commit comments

Comments
 (0)