mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-13 05:31:37 +08:00
50494bb7d4
* update open62541 * run x-add-version * adds patch to qtopcua to support open62541 v1.3 * x-add-version * Update ports/open62541/vcpkg.json Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com> * x-add-version * remove explicit set of version variable * x-add-version * Add a warning when the user tries to turn on both encryption options, as requested by @LilyWangLL. --------- Co-authored-by: Julian Zimmermann <Julian.Zimmermann@gti.de> Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
35 lines
1.2 KiB
CMake
35 lines
1.2 KiB
CMake
set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase")
|
|
include("${SCRIPT_PATH}/qt_install_submodule.cmake")
|
|
|
|
set(${PORT}_PATCHES open62541_v1.3_support.patch)
|
|
|
|
# General features:
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
"open62541" FEATURE_open62541
|
|
# "open62541" FEATURE_open62541_security # requires vendored open62541
|
|
"uacpp" FEATURE_uacpp
|
|
"ns0idnames" FEATURE_ns0idnames
|
|
"ns0idgenerator" FEATURE_ns0idgenerator
|
|
"qml" CMAKE_REQUIRE_FIND_PACKAGE_Qt6Quick
|
|
INVERTED_FEATURES
|
|
"qml" CMAKE_DISABLE_FIND_PACKAGE_Qt6Quick
|
|
)
|
|
if("open62541" IN_LIST FEATURES)
|
|
list(APPEND FEATURE_OPTIONS -DINPUT_open62541=system
|
|
-DHAVE_open62541=true)
|
|
else()
|
|
list(APPEND FEATURE_OPTIONS -DINPUT_open62541=no)
|
|
endif()
|
|
|
|
if(NOT "open62541" IN_LIST FEATURES AND NOT "gds" IN_LIST FEATURES)
|
|
list(APPEND FEATURE_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_WrapOpenSSL=ON)
|
|
endif()
|
|
|
|
qt_install_submodule(PATCHES ${${PORT}_PATCHES}
|
|
CONFIGURE_OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
CONFIGURE_OPTIONS_RELEASE
|
|
CONFIGURE_OPTIONS_DEBUG
|
|
)
|