aboutsummaryrefslogtreecommitdiff
path: root/ports
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 /ports
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>
Diffstat (limited to 'ports')
-rw-r--r--ports/open62541/CONTROL14
-rw-r--r--ports/open62541/portfile.cmake1
-rw-r--r--ports/open62541/vcpkg.json28
3 files changed, 29 insertions, 14 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"
+ ]
+ }
+ }
+}