From e5e37407a3130c6eb6d4f85685566ff73e991759 Mon Sep 17 00:00:00 2001 From: Zeqiang Li Date: Mon, 11 Apr 2022 10:54:04 +0800 Subject: [PATCH] disable swappy by default (#245) --- sources/Swappy/src/swappy/CMakeLists.txt | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/sources/Swappy/src/swappy/CMakeLists.txt b/sources/Swappy/src/swappy/CMakeLists.txt index 9e1d3ef3..ca5d8d2d 100644 --- a/sources/Swappy/src/swappy/CMakeLists.txt +++ b/sources/Swappy/src/swappy/CMakeLists.txt @@ -99,27 +99,21 @@ if(CC_USE_VULKAN) endif() add_library( swappy_static - - STATIC - - ${SRC_FILE} - ${CMAKE_CURRENT_BINARY_DIR}/classes_dex.o - # Add new source files here + STATIC + ${SRC_FILE} + ${CMAKE_CURRENT_BINARY_DIR}/classes_dex.o + # Add new source files here ) set_target_properties( swappy_static PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/build ) +add_library(swappy + SHARED + ${SWAPPY_C_SRC}) - -add_library( swappy - - SHARED - - ${SWAPPY_C_SRC}) - -set(SWAPPY_ENABLED TRUE) +set(SWAPPY_ENABLED FALSE) add_definitions(-DSWAPPY_ENABLED) set(LIBS