mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
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
This commit is contained in:
parent
ca992d3327
commit
8e752f5fa5
17
cmake/Toolchains/nvidiajetsonsdl.armv8.cmake
Normal file
17
cmake/Toolchains/nvidiajetsonsdl.armv8.cmake
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
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)
|
Loading…
Reference in New Issue
Block a user