cmake: Detect features at compile time

Instead of relying on manually passed down flags from CMake,
we now have ppsspp_config.h file to create the platform defines for us.
This improves support for multiplatform builds (such as iOS).
This commit is contained in:
Florent Castelli 2016-10-12 17:32:52 +02:00
parent 912a58d6c8
commit 8c3552de74
70 changed files with 502 additions and 261 deletions

View file

@ -298,15 +298,15 @@ void LogLevelScreen::OnCompleted(DialogResult result) {
}
const char *GetCompilerABI() {
#ifdef HAVE_ARMV7
#if PPSSPP_ARCH(ARMV7)
return "armeabi-v7a";
#elif defined(ARM)
#elif PPSSPP_ARCH(ARM)
return "armeabi";
#elif defined(ARM64)
#elif PPSSPP_ARCH(ARM64)
return "arm64";
#elif defined(_M_IX86)
#elif PPSSPP_ARCH(X86)
return "x86";
#elif defined(_M_X64)
#elif PPSSPP_ARCH(AMD64)
return "x86-64";
#else
return "other";