mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
cmake: Make Vita's heap size configurable
This commit is contained in:
parent
dd74c2cc2d
commit
dcc4f3a2de
1 changed files with 2 additions and 1 deletions
|
@ -49,6 +49,7 @@ if (NOT LIBSUPERDERPY_CONFIG_INCLUDED)
|
|||
add_definitions(-DLIBSUPERDERPY_ORIENTATION_${LIBSUPERDERPY_ORIENTATION}=true)
|
||||
|
||||
set(EMSCRIPTEN_TOTAL_MEMORY "128" CACHE STRING "Amount of memory allocated by Emscripten in asm.js builds (MB, must be multiple of 16)" )
|
||||
set(VITA_HEAP_SIZE "64" CACHE STRING "Amount of memory allocated by newlib for heap on PS Vita (MB)" )
|
||||
option(LIBSUPERDERPY_IMGUI "Compile with Dear ImGui support." OFF)
|
||||
if (LIBSUPERDERPY_IMGUI)
|
||||
enable_language(CXX)
|
||||
|
@ -229,7 +230,7 @@ if (NOT LIBSUPERDERPY_CONFIG_INCLUDED)
|
|||
endif(POCKETCHIP)
|
||||
|
||||
if(VITA)
|
||||
add_definitions(-DLIBSUPERDERPY_VITA_HEAP_SIZE=64)
|
||||
add_definitions(-DLIBSUPERDERPY_VITA_HEAP_SIZE=${VITA_HEAP_SIZE})
|
||||
endif(VITA)
|
||||
|
||||
if(MAEMO5 OR POCKETCHIP)
|
||||
|
|
Loading…
Reference in a new issue