disable swappy by default (#245)

This commit is contained in:
Zeqiang Li 2022-04-11 10:54:04 +08:00 committed by GitHub
parent 9e98579fc3
commit e5e37407a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 14 deletions

View File

@ -99,9 +99,7 @@ if(CC_USE_VULKAN)
endif() endif()
add_library( swappy_static add_library( swappy_static
STATIC STATIC
${SRC_FILE} ${SRC_FILE}
${CMAKE_CURRENT_BINARY_DIR}/classes_dex.o ${CMAKE_CURRENT_BINARY_DIR}/classes_dex.o
# Add new source files here # Add new source files here
@ -111,15 +109,11 @@ add_library( swappy_static
set_target_properties( swappy_static PROPERTIES set_target_properties( swappy_static PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/build ) LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/build )
add_library(swappy add_library(swappy
SHARED SHARED
${SWAPPY_C_SRC}) ${SWAPPY_C_SRC})
set(SWAPPY_ENABLED TRUE) set(SWAPPY_ENABLED FALSE)
add_definitions(-DSWAPPY_ENABLED) add_definitions(-DSWAPPY_ENABLED)
set(LIBS set(LIBS