Common: Ported over Dolphin's code for x86 CPU capability detection.

This commit is contained in:
bunnei 2015-07-21 19:49:33 -04:00
parent 3f69c2039d
commit 4d51792285
5 changed files with 286 additions and 19 deletions

View file

@ -56,6 +56,14 @@ set(HEADERS
vector_math.h
)
if(_M_X86)
set(SRCS ${SRCS}
cpu_detect_x86.cpp)
else()
set(SRCS ${SRCS}
cpu_detect_generic.cpp)
endif()
create_directory_groups(${SRCS} ${HEADERS})
add_library(common STATIC ${SRCS} ${HEADERS})