add ENABLE_GESTURE options

This commit is contained in:
侯歌 2024-07-24 16:16:57 +08:00
parent dbe9ae8d71
commit 644b49c31c
2 changed files with 7 additions and 6 deletions

View File

@ -10,8 +10,8 @@ option(ENABLE_WEBP "enable webp decoder" ON)
option(ENABLE_CAIROSVG "enable svg decoder" OFF) option(ENABLE_CAIROSVG "enable svg decoder" OFF)
option(ENABLE_MBEDTLS "enable mbedtls" ON) option(ENABLE_MBEDTLS "enable mbedtls" ON)
option(ENABLE_PLPLOT "Enable PLPLot" OFF) option(ENABLE_PLPLOT "Enable PLPLot" OFF)
option(ENABLE_DTV "DTV modules support" OFF) option(ENABLE_GESTURE "Enable Gesture support" ON)
option(ENABLE_AUDIO "Enabled Audio(Sound Effect" ON) option(ENABLE_AUDIO "Enabled Audio(Sound Effect)" ON)
option(FT_WITH_HARFBUZZ "Improve auto-hinting of OpenType fonts." ON) option(FT_WITH_HARFBUZZ "Improve auto-hinting of OpenType fonts." ON)
option(ENABLE_PINYIN2HZ "Chinese Pinyin to HZ support" ON) option(ENABLE_PINYIN2HZ "Chinese Pinyin to HZ support" ON)

View File

@ -45,7 +45,7 @@ include(CheckIncludeFile)
include(CheckFunctionExists) include(CheckFunctionExists)
check_function_exists(mallinfo2 HAVE_MALLINFO2) check_function_exists(mallinfo2 HAVE_MALLINFO2)
check_function_exists(mallinfo HAVE_MALLINFO) check_function_exists(mallinfo HAVE_MALLINFO)
check_include_file("RtAudio.h" HAVE_RTAUDIO_H) check_include_file("rtaudio/RtAudio.h" HAVE_RTAUDIO_H)
message("CMAKE_REQUIRED_INCLUDES=${CMAKE_REQUIRED_INCLUDES} HAVE_RTAUDIO_H=${HAVE_RTAUDIO_H}") message("CMAKE_REQUIRED_INCLUDES=${CMAKE_REQUIRED_INCLUDES} HAVE_RTAUDIO_H=${HAVE_RTAUDIO_H}")
configure_file(gui_features.h.cmake ${PROJECT_BINARY_DIR}/gui_features.h) configure_file(gui_features.h.cmake ${PROJECT_BINARY_DIR}/gui_features.h)
@ -67,9 +67,10 @@ set(SOURCES_GUI
) )
if(CMAKE_BUILD_TYPE STREQUAL "Debug") if(CMAKE_BUILD_TYPE STREQUAL "Debug")
list(APPEND SOURCES_GUI list(APPEND SOURCES_GUI ${SRCS_NAVIGATION})
${SRCS_NAVIGATION} endif()
) if(ENABLE_GESTURE)
list(APPEND SOURCES_GUI ${SRCS_GESTURE})
endif() endif()
add_library(cdroid SHARED ${SOURCES_GUI}) add_library(cdroid SHARED ${SOURCES_GUI})