mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-21 21:55:38 +00:00
(Android) Fixed some CMake issues when building ARM and x86 at the same time
This commit is contained in:
parent
1232d703c4
commit
3964cb2bcf
|
@ -613,10 +613,14 @@ else()
|
|||
endif()
|
||||
|
||||
if(NOT WIN32)
|
||||
# SVG rendering library LunaSVG.
|
||||
# SVG rendering library LunaSVG and Lottie animation library rlottie.
|
||||
if(ANDROID)
|
||||
set(COMMON_LIBRARIES ${COMMON_LIBRARIES} ${PROJECT_SOURCE_DIR}/android_${ANDROID_ABI}/liblunasvg.a)
|
||||
set(COMMON_LIBRARIES ${COMMON_LIBRARIES} ${PROJECT_SOURCE_DIR}/android_${ANDROID_ABI}/librlottie.a)
|
||||
else()
|
||||
set(COMMON_LIBRARIES ${COMMON_LIBRARIES} ${PROJECT_SOURCE_DIR}/liblunasvg.a)
|
||||
# Lottie animation library rlottie.
|
||||
set(COMMON_LIBRARIES ${COMMON_LIBRARIES} ${PROJECT_SOURCE_DIR}/librlottie.a)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
|
|
|
@ -182,3 +182,7 @@ endif()
|
|||
include_directories(${COMMON_INCLUDE_DIRS})
|
||||
add_library(es-core STATIC ${CORE_SOURCES} ${CORE_HEADERS})
|
||||
target_link_libraries(es-core ${COMMON_LIBRARIES})
|
||||
|
||||
if(ANDROID)
|
||||
set_target_properties(es-core PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/android_${ANDROID_ABI})
|
||||
endif()
|
||||
|
|
8
external/CMakeLists.txt
vendored
8
external/CMakeLists.txt
vendored
|
@ -40,6 +40,10 @@ if(CMAKE_CXX_COMPILER_ID MATCHES MSVC)
|
|||
target_compile_options(lunasvg PRIVATE "/wd4251" "/wd4267")
|
||||
endif()
|
||||
|
||||
if(ANDROID)
|
||||
set_target_properties(lunasvg PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/android_${ANDROID_ABI})
|
||||
endif()
|
||||
|
||||
# Disable threading support for rlottie as this functionality actually leads to far worse
|
||||
# performance. As well there is a bug on Windows that makes rlottie hang forever on application
|
||||
# shutdown if compiled using MinGW with threading support enabled.
|
||||
|
@ -60,5 +64,9 @@ else()
|
|||
target_compile_options(rlottie PRIVATE "-w")
|
||||
endif()
|
||||
|
||||
if(ANDROID)
|
||||
set_target_properties(rlottie PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/android_${ANDROID_ABI})
|
||||
endif()
|
||||
|
||||
# Build LunaSVG before rlottie.
|
||||
add_dependencies(rlottie lunasvg)
|
||||
|
|
Loading…
Reference in a new issue