mirror of
https://github.com/autc04/Retro68.git
synced 2025-02-06 11:32:07 +00:00
towards building libretro
This commit is contained in:
parent
de5ea08375
commit
1c6c1ddd9f
@ -18,7 +18,7 @@
|
|||||||
cmake_minimum_required(VERSION 2.8)
|
cmake_minimum_required(VERSION 2.8)
|
||||||
project(Retro)
|
project(Retro)
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME MATCHES Retro68)
|
if(CMAKE_SYSTEM_NAME MATCHES Retro68 OR CMAKE_SYSTEM_NAME MATCHES RetroPPC)
|
||||||
|
|
||||||
|
|
||||||
set( REZ_TEMPLATES_PATH ${CMAKE_CURRENT_SOURCE_DIR}/libretro)
|
set( REZ_TEMPLATES_PATH ${CMAKE_CURRENT_SOURCE_DIR}/libretro)
|
||||||
|
@ -23,18 +23,26 @@
|
|||||||
|
|
||||||
cmake_minimum_required(VERSION 2.8)
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
|
||||||
|
if(CMAKE_SYSTEM_NAME MATCHES Retro68)
|
||||||
|
set(ARCH_FILES
|
||||||
|
Retro68Runtime.h
|
||||||
|
start.c
|
||||||
|
relocate.c
|
||||||
|
glue.c
|
||||||
|
Retro68.r
|
||||||
|
Retro68APPL.r
|
||||||
|
)
|
||||||
|
install(FILES Retro68Runtime.h DESTINATION include)
|
||||||
|
install(FILES Retro68.r Retro68APPL.r DESTINATION RIncludes)
|
||||||
|
else()
|
||||||
|
set(ARCH_FILES)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_library(retrocrt
|
add_library(retrocrt
|
||||||
Retro68Runtime.h
|
|
||||||
start.c
|
|
||||||
relocate.c
|
|
||||||
malloc.c
|
malloc.c
|
||||||
syscalls.c
|
syscalls.c
|
||||||
glue.c
|
|
||||||
consolehooks.c
|
consolehooks.c
|
||||||
Retro68.r
|
${ARCH_FILES}
|
||||||
Retro68APPL.r
|
|
||||||
)
|
)
|
||||||
|
|
||||||
install(TARGETS retrocrt DESTINATION lib)
|
install(TARGETS retrocrt DESTINATION lib)
|
||||||
install(FILES Retro68Runtime.h DESTINATION include)
|
|
||||||
install(FILES Retro68.r Retro68APPL.r DESTINATION RIncludes)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user