mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
This fixes two problems: * Build fix when ETF is enabled * Install XDP and ETF plugin header Package-Manager: Portage-2.3.99, Repoman-2.3.23 Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
37 lines
1.6 KiB
Diff
37 lines
1.6 KiB
Diff
From fef10a1f02ae5863e6670802ce162b6e102e3df8 Mon Sep 17 00:00:00 2001
|
|
From: Kurt Kanzenbach <kurt@kmk-computers.de>
|
|
Date: Sun, 12 Jul 2020 10:39:31 +0200
|
|
Subject: [PATCH] cmake: Install ETF and XDP plugin headers
|
|
|
|
When the corresponding features are enabled, the headers should be installed as
|
|
well.
|
|
|
|
Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
|
|
---
|
|
CMakeLists.txt | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index ee40c19af21f..3401ce3d2bd1 100755
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -858,6 +858,7 @@ if(UA_ENABLE_PUBSUB)
|
|
list(APPEND default_plugin_headers ${PROJECT_SOURCE_DIR}/plugins/include/open62541/plugin/pubsub_udp.h)
|
|
list(APPEND default_plugin_sources ${PROJECT_SOURCE_DIR}/plugins/ua_pubsub_udp.c)
|
|
if(UA_ENABLE_PUBSUB_ETH_UADP_ETF)
|
|
+ list(APPEND default_plugin_headers ${PROJECT_SOURCE_DIR}/plugins/include/open62541/plugin/pubsub_ethernet_etf.h)
|
|
list(APPEND default_plugin_sources ${PROJECT_SOURCE_DIR}/plugins/ua_pubsub_ethernet_etf.c)
|
|
endif()
|
|
if(UA_ENABLE_PUBSUB_ETH_UADP)
|
|
@@ -867,6 +868,7 @@ if(UA_ENABLE_PUBSUB)
|
|
if(UA_ENABLE_PUBSUB_ETH_UADP_XDP)
|
|
if(EXISTS "${XDP_LIBRARY}")
|
|
list(APPEND open62541_LIBRARIES ${XDP_LIBRARY})
|
|
+ list(APPEND default_plugin_headers ${PROJECT_SOURCE_DIR}/plugins/include/open62541/plugin/pubsub_ethernet_xdp.h)
|
|
list(APPEND default_plugin_sources ${PROJECT_SOURCE_DIR}/plugins/ua_pubsub_ethernet_xdp.c)
|
|
else()
|
|
MESSAGE(WARNING "samples in bpf-next directory were not built. Build the bpf-next to use XDP")
|
|
--
|
|
2.26.2
|
|
|