GPU name normalization on Android
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 12f4696..0c78257 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -112,7 +112,9 @@
src/linux/cpulist.c
src/linux/processors.c)
IF(CMAKE_SYSTEM_NAME STREQUAL "Android")
- LIST(APPEND CPUINFO_SRCS src/gpu/gles2.c)
+ LIST(APPEND CPUINFO_SRCS
+ src/gpu/gles2.c
+ src/linux/gpu.c)
ENDIF()
ELSEIF(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
LIST(APPEND CPUINFO_SRCS src/mach/topology.c)
@@ -157,6 +159,10 @@
# ---[ cpuinfo mock library and mock tests
IF(CPUINFO_BUILD_MOCK_TESTS)
SET(CPUINFO_MOCK_SRCS "${CPUINFO_SRCS}")
+ IF(CMAKE_SYSTEM_NAME STREQUAL "Android")
+ LIST(REMOVE_ITEM CPUINFO_MOCK_SRCS src/gpu/gles2.c)
+ LIST(APPEND CPUINFO_MOCK_SRCS src/gpu/gles2-mock.c)
+ ENDIF()
IF(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "Android")
LIST(APPEND CPUINFO_MOCK_SRCS src/linux/mockfile.c)
ENDIF()