Build wallet with Android NDK

This commit is contained in:
MoroccanMalinois
2017-01-05 01:11:05 +00:00
parent dd580d7bc7
commit 80abc3bc4a
10 changed files with 103 additions and 8 deletions

View File

@@ -89,3 +89,14 @@ if (ARM)
PROPERTY COMPILE_DEFINITIONS "NO_OPTIMIZED_MULTIPLY_ON_ARM")
endif()
endif()
# Because of the way Qt works on android with JNI, the code does not live in the main android thread
# So this code runs with a 1 MB default stack size.
# This will force the use of the heap for the allocation of the scratchpad
if (ANDROID)
if( BUILD_GUI_DEPS )
add_definitions(-DFORCE_USE_HEAP=1)
endif()
endif()