Common: Add memory arena and page fault handler classes

This commit is contained in:
Connor McLaughlin
2020-10-18 14:43:51 +10:00
parent 11faf6ccfb
commit ceb67b5018
7 changed files with 664 additions and 2 deletions

View File

@@ -54,6 +54,10 @@ add_library(common
minizip_helpers.h
null_audio_stream.cpp
null_audio_stream.h
memory_arena.cpp
memory_arena.h
page_fault_handler.cpp
page_fault_handler.h
rectangle.h
progress_callback.cpp
progress_callback.h
@@ -183,3 +187,8 @@ if(APPLE AND NOT BUILD_LIBRETRO_CORE)
gl/context_agl.h
)
endif()
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
# We need -lrt for shm_unlink
target_link_libraries(common PRIVATE rt)
endif()