mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
3e4faea6ad
Also add a shortcut to b.sh since it has its own toolchain file.
27 lines
785 B
CMake
27 lines
785 B
CMake
if(NOT EXISTS "/opt/vc/include/bcm_host.h")
|
|
message(FATAL_ERROR "RaspberryPI platform not recognized")
|
|
endif()
|
|
|
|
include_directories(SYSTEM
|
|
/opt/vc/include
|
|
/opt/vc/include/interface/vcos/pthreads
|
|
/opt/vc/include/interface/vmcx_host/linux
|
|
)
|
|
|
|
add_definitions(
|
|
-DPPSSPP_PLATFORM_RPI=1
|
|
)
|
|
|
|
set(ARCH_FLAGS "-mfpu=vfp -march=armv6j -mfloat-abi=hard")
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ARCH_FLAGS}" CACHE STRING "" FORCE)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ARCH_FLAGS}" CACHE STRING "" FORCE)
|
|
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} ${ARCH_FLAGS}" CACHE STRING "" FORCE)
|
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "-L/opt/vc/lib" CACHE STRING "" FORCE)
|
|
|
|
set(OPENGL_LIBRARIES brcmGLESv2 bcm_host)
|
|
set(EGL_LIBRARIES brcmEGL)
|
|
set(USING_GLES2 ON)
|
|
set(USING_FBDEV ON)
|
|
set(USE_WAYLAND_WSI OFF)
|