early-access version 2853
This commit is contained in:
22
externals/vcpkg/ports/open62541/openssl.patch
vendored
Executable file
22
externals/vcpkg/ports/open62541/openssl.patch
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 9184b943..bd9203f7 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -526,7 +526,7 @@ if(NOT UA_FORCE_CPP AND (CMAKE_COMPILER_IS_GNUCC OR "x${CMAKE_C_COMPILER_ID}" ST
|
||||
check_add_cc_flag("-Wall") # Warnings
|
||||
check_add_cc_flag("-Wextra") # More warnings
|
||||
check_add_cc_flag("-Wpedantic") # Standard compliance
|
||||
- check_add_cc_flag("-Werror") # All warnings are errors
|
||||
+ #check_add_cc_flag("-Werror") # All warnings are errors
|
||||
|
||||
check_add_cc_flag("-Wno-static-in-inline") # Clang doesn't like the use of static inline methods inside static inline methods
|
||||
check_add_cc_flag("-Wno-overlength-strings") # May happen in the nodeset compiler when complex values are directly encoded
|
||||
@@ -659,7 +659,7 @@ if(APPLE)
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3 /WX /w44996") # Compiler warnings, error on warning
|
||||
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3 /WX /w44996 /wd4090") # Compiler warnings, error on warning
|
||||
|
||||
if(UA_MSVC_FORCE_STATIC_CRT AND NOT BUILD_SHARED_LIBS)
|
||||
set(CompilerFlags CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE CMAKE_C_FLAGS
|
||||
44
externals/vcpkg/ports/open62541/portfile.cmake
vendored
Executable file
44
externals/vcpkg/ports/open62541/portfile.cmake
vendored
Executable file
@@ -0,0 +1,44 @@
|
||||
set(VERSION v1.2.3)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO open62541/open62541
|
||||
REF "${VERSION}"
|
||||
SHA512 ffcc697901ec978fb9d1f8996f8a4c5114c98a0ec19206cac95d1a84f8d0fcbe38bf73e88f1df59d53bc6be481102aa2f2a6a0efa29797e7ce11123bd23131c2
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
openssl.patch
|
||||
)
|
||||
|
||||
vcpkg_check_features(
|
||||
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
openssl UA_ENABLE_ENCRYPTION_OPENSSL
|
||||
mbedtls UA_ENABLE_ENCRYPTION_MBEDTLS
|
||||
amalgamation UA_ENABLE_AMALGAMATION
|
||||
historizing UA_ENABLE_HISTORIZING
|
||||
)
|
||||
|
||||
vcpkg_find_acquire_program(PYTHON3)
|
||||
get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
|
||||
vcpkg_add_to_path("${PYTHON3_DIR}")
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
${FEATURE_OPTIONS}
|
||||
-DOPEN62541_VERSION=${VERSION}
|
||||
OPTIONS_DEBUG
|
||||
-DCMAKE_DEBUG_POSTFIX=d
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/open62541/tools")
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
41
externals/vcpkg/ports/open62541/vcpkg.json
vendored
Executable file
41
externals/vcpkg/ports/open62541/vcpkg.json
vendored
Executable file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"name": "open62541",
|
||||
"version": "1.2.3",
|
||||
"port-version": 1,
|
||||
"description": "open62541 is an open source C (C99) implementation of OPC UA licensed under the Mozilla Public License v2.0.",
|
||||
"homepage": "https://open62541.org",
|
||||
"license": "MPL-2.0",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"default-features": [
|
||||
"openssl"
|
||||
],
|
||||
"features": {
|
||||
"amalgamation": {
|
||||
"description": "Concatenate the library to a single file open62541.h/.c"
|
||||
},
|
||||
"historizing": {
|
||||
"description": "Enable basic support for historical access (client and server)"
|
||||
},
|
||||
"mbedtls": {
|
||||
"description": "Enable encryption support (uses MbedTLS)",
|
||||
"dependencies": [
|
||||
"mbedtls"
|
||||
]
|
||||
},
|
||||
"openssl": {
|
||||
"description": "Enable encryption support (uses OpenSSL)",
|
||||
"dependencies": [
|
||||
"openssl"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user