mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:57:49 +08:00
30 lines
1.0 KiB
CMake
30 lines
1.0 KiB
CMake
|
set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase")
|
||
|
include("${SCRIPT_PATH}/qt_install_submodule.cmake")
|
||
|
|
||
|
set(${PORT}_PATCHES hunspell_include_path_fix.patch)
|
||
|
|
||
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||
|
INVERTED_FEATURES
|
||
|
"xcb" CMAKE_DISABLE_FIND_PACKAGE_XCB
|
||
|
)
|
||
|
|
||
|
|
||
|
if("hunspell" IN_LIST FEATURES)
|
||
|
list(APPEND FEATURE_OPTIONS -DINPUT_vkb_hunspell:STRING=system)
|
||
|
else()
|
||
|
list(APPEND FEATURE_OPTIONS -DINPUT_vkb_hunspell=no)
|
||
|
endif()
|
||
|
if("t9write" IN_LIST FEATURES)
|
||
|
list(APPEND FEATURE_OPTIONS -DINPUT_vkb_handwriting=t9write)
|
||
|
else()
|
||
|
list(APPEND FEATURE_OPTIONS -DINPUT_vkb_handwriting=no)
|
||
|
endif()
|
||
|
|
||
|
qt_install_submodule(PATCHES ${${PORT}_PATCHES}
|
||
|
CONFIGURE_OPTIONS ${FEATURE_OPTIONS}
|
||
|
-DINPUT_vkb_style:STRING=default
|
||
|
CONFIGURE_OPTIONS_RELEASE
|
||
|
CONFIGURE_OPTIONS_DEBUG -DFEATURE_vkb_record_trace_input=ON
|
||
|
-DFEATURE_vkb_sensitive_debug=ON
|
||
|
)
|