1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Add NEON code to cmake system

This commit is contained in:
Logan McNaughton 2016-07-05 23:40:06 -06:00 committed by Sergey Lipskiy
parent 76962e975e
commit b234daf505

View File

@ -178,9 +178,25 @@ FIND_PACKAGE( Freetype REQUIRED )
include_directories( ${FREETYPE_INCLUDE_DIRS} )
if(OPT)
add_definitions(
-D__VEC4_OPT
)
add_definitions(
-D__VEC4_OPT
)
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
EXEC_PROGRAM(cat ARGS "/proc/cpuinfo" OUTPUT_VARIABLE CPUINFO)
STRING(REGEX REPLACE "^.*(neon).*$" "\\1" NEON_THERE ${CPUINFO})
if(NEON_THERE STREQUAL "neon")
add_definitions(
-D__NEON_OPT
)
list(APPEND GLideN64_SOURCES
3DMathNeon.cpp
gSPNeon.cpp
)
list(REMOVE_ITEM GLideN64_SOURCES
3DMath.cpp
)
endif(NEON_THERE STREQUAL "neon")
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
endif(OPT)
# Build type