Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix ARM building.
  • Loading branch information
Sonicadvance1 committed Apr 3, 2013
1 parent c5a0104 commit 1dd1ebb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions Source/Plugins/Plugin_VideoSoftware/CMakeLists.txt
Expand Up @@ -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
Expand All @@ -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})
Expand Down

0 comments on commit 1dd1ebb

Please sign in to comment.