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 committed 2016-10-19 12:31:19 +02:00
1 parent 912a58d6c8
commit 8c3552de74
70 files changed
+502 -261

No files matched your search

-1
View File
@@ -14,7 +14,6 @@ set(MOBILE_DEVICE ON)
set(USING_GLES2 ON)
set(IPHONEOS_DEPLOYMENT_TARGET 6.0)
add_definitions(
-DIOS
-DGL_ETC1_RGB8_OES=0
-U__STRICT_ANSI__
)
+1 -1
View File
@@ -13,7 +13,7 @@ link_directories(
)
add_definitions(
-DRPI
-DPPSSPP_PLATFORM_RPI=1
)
set(ARCH_FLAGS "-mfpu=vfp -march=armv6j -mfloat-abi=hard")
+1 -1
View File
@@ -13,7 +13,7 @@ link_directories(
)
add_definitions(
-DRPI
-DPPSSPP_PLATFORM_RPI=1
-U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
)