mirror of
https://github.com/libretro/libretro-super
synced 2024-12-28 15:19:36 +00:00
26 lines
990 B
CMake
26 lines
990 B
CMake
set(CMAKE_C_COMPILER "psp-gcc")
|
|
set(CMAKE_CXX_COMPILER "psp-g++")
|
|
set(CMAKE_AR "psp-ar")
|
|
set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> qc <TARGET> <LINK_FLAGS> <OBJECTS>")
|
|
set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> qc <TARGET> <LINK_FLAGS> <OBJECTS>")
|
|
set(CMAKE_C_COMPILER_AR "psp-ar")
|
|
set(CMAKE_CXX_COMPILER_AR "psp-ar")
|
|
set(CMAKE_RANLIB "psp-ranlib")
|
|
set(CMAKE_C_COMPILER_RANLIB "psp-ranlib")
|
|
set(CMAKE_CXX_COMPILER_RANLIB "psp-ranlib")
|
|
set(CMAKE_SYSTEM_PROCESSOR mipsel)
|
|
set(CMAKE_SYSTEM_NAME Generic)
|
|
set(CMAKE_CROSSCOMPILING ON)
|
|
set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
|
set(CMAKE_C_LINK_FLAGS "")
|
|
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
|
|
|
|
execute_process(COMMAND psp-config --pspsdk-path OUTPUT_VARIABLE PSPSDK_PATH)
|
|
|
|
set(CMAKE_CXX_FLAGS " -I${PSPSDK_PATH}/include -G0 -Wcast-align")
|
|
set(CMAKE_C_FLAGS " -I${PSPSDK_PATH}/include -G0 -Wcast-align")
|
|
|
|
add_definitions(-DPSP)
|
|
set(BUILD_SHARED_LIBS OFF CACHE INTERNAL "Shared libs not available" )
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE OFF)
|