From 1dd1ebb8bdd6dcade1403467c37dfe2c2fa8683b Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Sun, 31 Mar 2013 04:32:13 +0000 Subject: [PATCH] Fix ARM building. --- CMakeLists.txt | 2 ++ Source/Plugins/Plugin_VideoSoftware/CMakeLists.txt | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c281dcb0bb..258740b98e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,6 +114,8 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^arm") add_definitions(-marm -march=armv7-a) add_definitions(-D_M_ARM=1) add_definitions(-D_M_GENERIC=1) +# Set generic options so you don't have to pass anything to cmake to build ARM + set(USE_GLES 1) endif() # Set these next two lines to test generic diff --git a/Source/Plugins/Plugin_VideoSoftware/CMakeLists.txt b/Source/Plugins/Plugin_VideoSoftware/CMakeLists.txt index 0488f728b8..cda287f511 100644 --- a/Source/Plugins/Plugin_VideoSoftware/CMakeLists.txt +++ b/Source/Plugins/Plugin_VideoSoftware/CMakeLists.txt @@ -10,7 +10,6 @@ set(SRCS Src/BPMemLoader.cpp Src/OpcodeDecoder.cpp Src/SWPixelEngine.cpp Src/Rasterizer.cpp - Src/RasterFont.cpp Src/SWRenderer.cpp Src/SetupUnit.cpp Src/SWStatistics.cpp @@ -37,11 +36,11 @@ if(USE_EGL) endif() if(USE_GLES) - set(SRCS ${SRCS} - ../Plugin_VideoOGL/Src/GLUtil.cpp) + set(SRCS ${SRCS} ../Plugin_VideoOGL/Src/GLUtil.cpp) set(LIBS ${LIBS} GLESv2) else() + set(SRCS ${SRCS} Src/RasterFont.cpp) set(LIBS ${LIBS} GLEW ${OPENGL_LIBRARIES})