ppsspp/cmake/Toolchains/nvidiajetsonsdl.armv8.cmake
Carlos Estrague / Mrc_munir 8e752f5fa5
Toolchain for nvidia jetson linker tegra lib.
Creating toolchain for NVIDIA jetson by correctly linking to the graphics library that should be used

The current Libglx.so library in L4T that is installed comes into conflict and the detection of the GPU is not correct
2019-05-04 22:02:37 +02:00

18 lines
703 B
CMake

if(NOT EXISTS "/usr/lib/aarch64-linux-gnu/tegra")
message(FATAL_ERROR "Nvidia Jetson platform not recognized")
endif()
include_directories(SYSTEM
/usr/include/GL
)
set(ARCH_FLAGS "-march=armv8-a+crc -mtune=cortex-a57 -funsafe-math-optimizations")
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 "-Wl,-rpath,/usr/lib/aarch64-linux-gnu/tegra" CACHE STRING "" FORCE)
set(OPENGL_LIBRARIES /usr/lib/aarch64-linux-gnu/tegra/libGLX_nvidia.so.0)
set(USING_X11_VULKAN ON CACHE BOOL "" FORCE)