aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neumann <30894796+Neumann-A@users.noreply.github.com>2021-03-31 20:58:31 +0200
committerGitHub <noreply@github.com>2021-03-31 11:58:31 -0700
commit87ae70da914eeff6c98c5700d61f8fb8b58f893b (patch)
tree2a57d9bbb767a562370acb4fdc964f92783ed66a
parent8646c6587b69b9294337c2034671b03da3d47291 (diff)
downloadvcpkg-87ae70da914eeff6c98c5700d61f8fb8b58f893b.tar.gz
vcpkg-87ae70da914eeff6c98c5700d61f8fb8b58f893b.zip
[open62541] add amalgamation feature (#16969)
* [open62541] add amalgamation features * version stuff * Update versions/baseline.json * Update ports/open62541/vcpkg.json Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * update version file Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
-rw-r--r--ports/open62541/CONTROL14
-rw-r--r--ports/open62541/portfile.cmake1
-rw-r--r--ports/open62541/vcpkg.json28
-rw-r--r--versions/baseline.json2
-rw-r--r--versions/o-/open62541.json5
5 files changed, 35 insertions, 15 deletions
diff --git a/ports/open62541/CONTROL b/ports/open62541/CONTROL
deleted file mode 100644
index 1c000d539..000000000
--- a/ports/open62541/CONTROL
+++ /dev/null
@@ -1,14 +0,0 @@
-Source: open62541
-Version: 1.1.2
-Homepage: https://open62541.org
-Description: open62541 is an open source C (C99) implementation of OPC UA licensed under the Mozilla Public License v2.0.
-Supports: !uwp
-Default-Features: openssl
-
-Feature: openssl
-Description: Enable encryption support (uses OpenSSL)
-Build-Depends: openssl
-
-Feature: mbedtls
-Description: Enable encryption support (uses MbedTLS)
-Build-Depends: mbedtls
diff --git a/ports/open62541/portfile.cmake b/ports/open62541/portfile.cmake
index 91f054560..55fbd6edb 100644
--- a/ports/open62541/portfile.cmake
+++ b/ports/open62541/portfile.cmake
@@ -11,6 +11,7 @@ vcpkg_from_github(
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
openssl UA_ENABLE_ENCRYPTION_OPENSSL
mbedtls UA_ENABLE_ENCRYPTION_MBEDTLS
+ amalgamation UA_ENABLE_AMALGAMATION
)
vcpkg_find_acquire_program(PYTHON3)
diff --git a/ports/open62541/vcpkg.json b/ports/open62541/vcpkg.json
new file mode 100644
index 000000000..5e0841e7c
--- /dev/null
+++ b/ports/open62541/vcpkg.json
@@ -0,0 +1,28 @@
+{
+ "name": "open62541",
+ "version": "1.1.2",
+ "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",
+ "supports": "!uwp",
+ "default-features": [
+ "openssl"
+ ],
+ "features": {
+ "amalgamation": {
+ "description": "Concatenate the library to a single file open62541.h/.c"
+ },
+ "mbedtls": {
+ "description": "Enable encryption support (uses MbedTLS)",
+ "dependencies": [
+ "mbedtls"
+ ]
+ },
+ "openssl": {
+ "description": "Enable encryption support (uses OpenSSL)",
+ "dependencies": [
+ "openssl"
+ ]
+ }
+ }
+}
diff --git a/versions/baseline.json b/versions/baseline.json
index d37be89bb..b62970cbe 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -4346,7 +4346,7 @@
},
"open62541": {
"baseline": "1.1.2",
- "port-version": 0
+ "port-version": 1
},
"openal-soft": {
"baseline": "1.21.1",
diff --git a/versions/o-/open62541.json b/versions/o-/open62541.json
index a8ada2e95..a24c7cee8 100644
--- a/versions/o-/open62541.json
+++ b/versions/o-/open62541.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "43c958ba9799820838fdf2332020ef83cacc4595",
+ "version": "1.1.2",
+ "port-version": 1
+ },
+ {
"git-tree": "3963c6ad1810891560f00a71c17f14ce53fe290e",
"version-string": "1.1.2",
"port-version": 0