vcpkg/ports/qtopcua/portfile.cmake
Julian Zimmermann 50494bb7d4
[open62541] update to 1.3.5 (#29887)
* 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>
2023-04-14 14:13:31 -07:00

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
)