Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 1.4 to master #6554

Merged
merged 52 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
f083d7a
fix(client): added missing channel state "UA_SECURECHANNELSTATE_OPN_S…
peschuster May 28, 2024
3bf2471
feat(test): Add a test for MonitoredItems on a DataSource with a fixe…
jpfr May 30, 2024
3f40576
fix(build): Correct path for schema files of external build
keba-estr May 31, 2024
8eb85bb
fix(nc): Correct setting of the namespaceIndex. Improve condition for…
NoelGraf Jun 3, 2024
4c148ac
fix(build): fix OpenSSL link flags in build output files
rickboks Jun 4, 2024
dc0c061
refactor(build): Use the SONAME version x.y property to disambiguate …
jpfr Jun 4, 2024
c18a462
refactor(build): Remove UA_PACK_DEBIAN - use the tools/prepare_packag…
jpfr Jun 4, 2024
68ed72e
feat(tests): Extend tests for writing int32 into an enum type
jpfr Jun 4, 2024
11c1a55
refactor(plugins): Make TCP port reuse the default
jpfr Jun 1, 2024
5ddf7ff
feat(server): Avoid malloc when writing "pointerfree" values of the s…
jpfr Jun 4, 2024
3888af3
fix(ns): Add ModelChangeEventType and ConditionType to support subscr…
NoelGraf Jun 5, 2024
069fffd
fix(arch): Fix build error with undefined UA_IPV6
keba-estr Jun 14, 2024
88dae21
fix(client): channel state set to CLOSING without closing underlying …
peschuster Jun 12, 2024
cd44415
test(client) Added test for connection termination when server sent a…
peschuster Jun 14, 2024
5ff50e2
fix(server): Directly write into the external data source if no callb…
jpfr Jun 15, 2024
de087eb
refactor(examples): Move outdated PubSub RT examples to the attic
jpfr Jun 6, 2024
21a6ec8
refactor(tests): Move incomplete ETF tests to the attic
jpfr Jun 15, 2024
caa1e7e
refactor(examples): Clean up server_pubsub_publisher_rt_level.c
jpfr Jun 6, 2024
5cecbde
refactor(examples): Clean up server_pubsub_subscriber_rt_level.c
jpfr Jun 10, 2024
345ed46
refactor(examples): Clean up server_pubsub_rt_field_information_model.c
jpfr Jun 12, 2024
cff036a
refactor(pubsub): Improve the documentation of UA_PubSubRTLevel
jpfr Jun 6, 2024
913ea88
refactor(pubsub): Use UA_PUBSUB_RT_DETERMINISTIC as the ORed combinat…
jpfr Jun 15, 2024
e4b7f42
feat(pubsub): Don't require the server-lock for RT-publishing when th…
jpfr Jun 6, 2024
5702d83
refactor(pubsub): Disentangle cases for the DataSet preparation
jpfr Jun 6, 2024
d0dd4a3
refactor(pubsub): Memset-zero the offset table fields to initialize
jpfr Jun 15, 2024
9aaf137
refactor(pubsub): Store the external value source in the offset table
jpfr Jun 15, 2024
6ab6a32
refactor(pubsub): Update UA_DataSetWriter_prepareDataSet to check for…
jpfr Jun 15, 2024
bf03702
refactor(pubsub): Cache the direct value pointer for the offset table…
jpfr Jun 15, 2024
b30b07d
refactor(pubsub): Cosmetic improvement in ua_pubsub_writergroup.c
jpfr Jun 15, 2024
381e3ad
refactor(pubsub): Explicit sampling in the RT publish path if direct …
jpfr Jun 15, 2024
f98d982
refactor(pubsub): Use the RT configuration as a bit-field
jpfr Jun 15, 2024
5e6841a
fix(pubsub): Use the external value source in the Reader
jpfr Jun 15, 2024
ab2054b
refactor(build): RT examples depend on sigset_t. Do not build on WIN32
jpfr Jun 15, 2024
f0c4533
fix(pubsub): Don't abort Reader with monitoring enabled for messageRe…
jpfr Jun 15, 2024
152e315
fix(pubsub): Don't overwrite the ReaderGroup external value configura…
jpfr Jun 16, 2024
2b76ea7
refactor(tests): Use the RT_DETERMINISTIC setting in check_pubsub_sub…
jpfr Jun 16, 2024
d463871
Merge branch 'publish_pubsub_rt' into merge_14_master_16
jpfr Jun 18, 2024
4f567ac
refactor(pubsub): Replace nested switch with linear if/else for the P…
jpfr Jun 22, 2024
9832cec
refactor(pubsub): Simplify PubSub monitoring handling
jpfr Jun 22, 2024
554369f
refactor(pubsub): Move StandaloneSubscribedDataSet definitions to ua_…
jpfr Jun 22, 2024
c253cd6
refactor(pubsub): Cleanup in ua_pubsub_dataset.c
jpfr Jun 22, 2024
5ae3272
refactor(pubsub): Make the reader connected to the StandaloneSubscrib…
jpfr Jun 22, 2024
7b2094f
refactor(pubsub): Simplifications in ua_pubsub_writer.c
jpfr Jun 22, 2024
dd0dc62
refactor(pubsub): Make the PublishedDataSet attached a Writer a direc…
jpfr Jun 22, 2024
0f61aca
feat(pubsub): Additional size checks for payloads
jpfr Jun 25, 2024
80bcf11
refactor(pubsub): Simplify the handling of payloads with raw content
jpfr Jun 25, 2024
f29aefc
refactor(pubsub): Simplify state handling of the ReaderGroup
jpfr Jun 25, 2024
3aec47a
refactor(pubsub): Remove the dependency on the DataSetMetaData during…
jpfr Jun 25, 2024
7cfea1f
refactor(pubsub): Simplify DataSetReader_processRaw
jpfr Jun 25, 2024
849367e
fix(pubsub): Cleanup allocations after raw decoding
jpfr Jun 25, 2024
018114e
refactor(pubsub): Remove dead code for mirror variables
jpfr Jun 25, 2024
9406efb
refactor(pubsub): Remove unneeded arguments in the DataSetMessage dec…
jpfr Jun 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(build): Correct path for schema files of external build
  • Loading branch information
keba-estr authored and jpfr committed Jun 2, 2024
commit 3f40576187cc9db8198f6bc0479411416ed5780a
10 changes: 6 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,6 @@ endif()
# Nodeset files combined into NS0 generated file
set(UA_FILE_NODESETS) # List of nodeset-xml files to be considered in the generated information model
set(UA_NODESET_DIR ${PROJECT_SOURCE_DIR}/deps/ua-nodeset CACHE STRING "The path to the node-set directory (e.g. from https://github.com/OPCFoundation/UA-Nodeset)")
set(UA_SCHEMA_DIR ${PROJECT_SOURCE_DIR}/tools/schema) # Directory with the schema files for installation

if(UA_NAMESPACE_ZERO STREQUAL "FULL")
# Use the "full" schema files also for datatypes and statuscodes
Expand All @@ -1145,6 +1144,9 @@ if(UA_NAMESPACE_ZERO STREQUAL "FULL")
endif()
endif()
else()
# Directory with the schema files for installation
set(UA_SCHEMA_DIR ${PROJECT_SOURCE_DIR}/tools/schema)

# Set the reduced Nodeset for NS0
if(NOT UA_FILE_NS0)
set(UA_FILE_NS0 ${UA_SCHEMA_DIR}/Opc.Ua.NodeSet2.Reduced.xml)
Expand Down Expand Up @@ -1507,7 +1509,7 @@ install(TARGETS ${OPEN62541-LIB}
INCLUDES DESTINATION include)

set(open62541_install_tools_dir share/open62541)
set(open62541_install_nodeset_dir share/open62541/schema)
set(open62541_install_schema_dir share/open62541/schema)
set(open62541_crypto_plugin ${UA_ENABLE_ENCRYPTION})

# Create open62541Config.cmake
Expand All @@ -1517,7 +1519,7 @@ configure_package_config_file("${CMAKE_CURRENT_SOURCE_DIR}/tools/cmake/open62541
"${CMAKE_CURRENT_BINARY_DIR}/open62541Config.cmake"
INSTALL_DESTINATION "${cmake_configfile_install}"
PATH_VARS open62541_install_tools_dir
open62541_install_nodeset_dir
open62541_install_schema_dir
open62541_crypto_plugin)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/open62541Config.cmake"
"${CMAKE_CURRENT_SOURCE_DIR}/tools/cmake/open62541Macros.cmake"
Expand Down Expand Up @@ -1566,7 +1568,7 @@ install(DIRECTORY "tools/certs" "tools/nodeset_compiler"

# Trailing slash to prevent "schema/schema" nesting
install(DIRECTORY ${UA_SCHEMA_DIR}/
DESTINATION ${open62541_install_nodeset_dir}
DESTINATION ${open62541_install_schema_dir}
FILES_MATCHING
PATTERN "*.xml"
PATTERN "*Types.bsd"
Expand Down
2 changes: 1 addition & 1 deletion tools/cmake/open62541Config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
include("${CMAKE_CURRENT_LIST_DIR}/open62541Targets.cmake")

set_and_check(open62541_TOOLS_DIR @PACKAGE_open62541_install_tools_dir@ CACHE PATH "Path to the directory that contains the tooling of the stack")
set_and_check(UA_NODESET_DIR @PACKAGE_open62541_install_nodeset_dir@ CACHE PATH "Path to the directory that contains the schema files")
set_and_check(UA_SCHEMA_DIR @PACKAGE_open62541_install_schema_dir@ CACHE PATH "Path to the directory that contains the schema files")
set(open62541_crypto_plugin @open62541_crypto_plugin@)

# Macros for datatype generation, nodeset compiler, etc.
Expand Down
8 changes: 4 additions & 4 deletions tools/cmake/open62541Macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ endfunction()
# passed which will all combined to one resulting code.
# IMPORT_BSD Combination of types array and path to the .bsd file containing additional type definitions referenced by
# the FILES_BSD files. The value is separated with a hash sign, i.e.
# 'UA_TYPES#${UA_NODESET_DIR}/Schema/Opc.Ua.Types.bsd'
# 'UA_TYPES#${UA_SCHEMA_DIR}/Opc.Ua.Types.bsd'
# Multiple files can be passed which will all be imported.
# [FILES_SELECTED] Optional path to a simple text file which contains a list of types which should be included in the generation.
# The file should contain one type per line. Multiple files can be passed to this argument.
Expand Down Expand Up @@ -551,8 +551,8 @@ function(ua_generate_nodeset_and_datatypes)
message(FATAL_ERROR "open62541_TOOLS_DIR must point to the open62541 tools directory")
endif()

if(NOT DEFINED UA_NODESET_DIR)
message(FATAL_ERROR "UA_NODESET_DIR must point to the open62541/deps/ua-nodeset directory")
if(NOT DEFINED UA_SCHEMA_DIR)
message(FATAL_ERROR "UA_SCHEMA_DIR must point to the directory that contains the schema files")
endif()

# ------ Argument checking -----
Expand Down Expand Up @@ -669,7 +669,7 @@ function(ua_generate_nodeset_and_datatypes)
# Create a list of nodesets on which this nodeset depends on
if (NOT UA_GEN_DEPENDS OR "${UA_GEN_DEPENDS}" STREQUAL "" )
if(NOT UA_FILE_NS0)
set(NODESET_DEPENDS "${UA_NODESET_DIR}/Schema/Opc.Ua.NodeSet2.xml")
set(NODESET_DEPENDS "${UA_SCHEMA_DIR}/Opc.Ua.NodeSet2.xml")
else()
set(NODESET_DEPENDS "${UA_FILE_NS0}")
endif()
Expand Down
Loading