Skip to content

Commit

Permalink
Merge branch 'master' into core/server-service-response
Browse files Browse the repository at this point in the history
  • Loading branch information
rex-schilasky committed Jan 9, 2025
2 parents 867d0e8 + b3023ae commit 2675824
Show file tree
Hide file tree
Showing 200 changed files with 715 additions and 353 deletions.
47 changes: 42 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ========================= eCAL LICENSE =================================
#
# Copyright (C) 2016 - 2024 Continental Corporation
# Copyright (C) 2016 - 2025 Continental Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -79,9 +79,12 @@ endif()
option(HAS_QT "Platform supports Qt 5 / 6 library." ON)

option(HAS_CURL "Build with CURL (i.e. upload support in the recorder app)" ON)
option(HAS_FTXUI "Platform supports FTXUI library. Requires C++17 and up." ON)

# Serialization format support
option(HAS_CAPNPROTO "Platform supports Cap'n Proto library" OFF)
option(HAS_FLATBUFFERS "Platform supports flatbuffers library" OFF)
option(HAS_FTXUI "Platform supports FTXUI library. Requires C++17 and up." ON)
option(HAS_MESSAGEPACK "Platform supports messagepack library" OFF)

option(BUILD_DOCS "Build the eCAL documentation" OFF)
option(BUILD_APPS "Build the eCAL applications" ON)
Expand Down Expand Up @@ -307,7 +310,6 @@ endif()
if(HAS_HDF5)
add_subdirectory(contrib/measurement/hdf5)
add_subdirectory(contrib/ecalhdf5)
add_subdirectory(contrib/message)
endif()
add_subdirectory(contrib/measurement/base)

Expand Down Expand Up @@ -390,6 +392,43 @@ if(BUILD_SAMPLES)
add_subdirectory(samples)
endif()


# --------------------------------------------------------
# Serialization extensions
# --------------------------------------------------------
# Capnroto
if (HAS_CAPNPROTO)
set(ECAL_CAPNPROTO_BUILD_SAMPLES ${BUILD_SAMPLES})
set(ECAL_CAPNPROTO_BUILD_TESTS ${BUILD_ECAL_TESTS})
add_subdirectory(serialization/capnproto)
endif ()

# Flatbuffers
if (HAS_FLATBUFFERS)
set(ECAL_FLATBUFFERS_BUILD_SAMPLES ${BUILD_SAMPLES})
set(ECAL_FLATBUFFERS_BUILD_TESTS ${BUILD_ECAL_TESTS})
add_subdirectory(serialization/flatbuffers)
endif()

# Messagepack
#if (HAS_MESSAGEPACK)
#set(ECAL_MESSAGEPACK_BUILD_SAMPLES ${BUILD_SAMPLES})
#set(ECAL_MESSAGEPACK_BUILD_TESTS ${BUILD_ECAL_TESTS})
#add_subdirectory(serialization/messagepack)
#endif()

# Protobuf
set(ECAL_PROTOBUF_BUILD_SAMPLES ${BUILD_SAMPLES})
set(ECAL_PROTOBUF_BUILD_TESTS ${BUILD_ECAL_TESTS})
add_subdirectory(serialization/protobuf)

# String
set(ECAL_STRING_BUILD_SAMPLES ${BUILD_SAMPLES})
set(ECAL_STRING_BUILD_TESTS ${BUILD_ECAL_TESTS})
add_subdirectory(serialization/string)



# --------------------------------------------------------
# unit tests
# --------------------------------------------------------
Expand All @@ -402,8 +441,6 @@ if(BUILD_ECAL_TESTS)
if(HAS_HDF5)
add_subdirectory(tests/contrib/ecalhdf5/hdf5_test)
endif()
add_subdirectory(tests/contrib/ecalproto/dynproto_test)
add_subdirectory(tests/contrib/ecalproto/ecal_proto_test)

# ------------------------------------------------------
# test apps
Expand Down
5 changes: 3 additions & 2 deletions app/mon/mon_cli/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ========================= eCAL LICENSE =================================
#
# Copyright (C) 2016 - 2024 Continental Corporation
# Copyright (C) 2016 - 2025 Continental Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -43,7 +43,8 @@ create_targets_protobuf()

target_link_libraries(${PROJECT_NAME}
tclap::tclap
eCAL::core_protobuf
eCAL::protobuf_core
eCAL::string_core
eCAL::core_pb)
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)

Expand Down
4 changes: 2 additions & 2 deletions app/mon/mon_plugins/capnproto_reflection/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ========================= eCAL LICENSE =================================
#
# Copyright (C) 2016 - 2024 Continental Corporation
# Copyright (C) 2016 - 2025 Continental Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -61,7 +61,7 @@ ecal_add_mon_plugin(${PROJECT_NAME}
target_link_libraries (${PROJECT_NAME}
Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::Widgets
eCAL::core
eCAL::capnproto_core
CapnProto::capnp
CustomQt
eCAL::mon_plugin_lib
Expand Down
4 changes: 2 additions & 2 deletions app/mon/mon_plugins/protobuf_reflection/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ========================= eCAL LICENSE =================================
#
# Copyright (C) 2016 - 2024 Continental Corporation
# Copyright (C) 2016 - 2025 Continental Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -63,7 +63,7 @@ create_targets_protobuf()
target_link_libraries (${PROJECT_NAME}
Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::Widgets
eCAL::core_protobuf
eCAL::protobuf_core
eCAL::app_pb
protobuf::libprotobuf
MonitorTreeView
Expand Down
4 changes: 2 additions & 2 deletions app/mon/mon_plugins/signals_plotting/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ========================= eCAL LICENSE =================================
#
# Copyright (C) 2016 - 2024 Continental Corporation
# Copyright (C) 2016 - 2025 Continental Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -76,7 +76,7 @@ target_link_libraries (${PROJECT_NAME}
Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::Widgets
eCAL::core
eCAL::core_protobuf
eCAL::protobuf_core
eCAL::app_pb
protobuf::libprotobuf
eCAL::mon_plugin_lib
Expand Down
4 changes: 2 additions & 2 deletions app/mon/mon_plugins/string_reflection/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ========================= eCAL LICENSE =================================
#
# Copyright (C) 2016 - 2019 Continental Corporation
# Copyright (C) 2016 - 2025 Continental Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -58,7 +58,7 @@ create_targets_protobuf()
target_link_libraries (${PROJECT_NAME}
Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::Widgets
eCAL::core
eCAL::string_core
eCAL::mon_plugin_lib
)
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_14)
Expand Down
5 changes: 3 additions & 2 deletions app/mon/mon_tui/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ========================= eCAL LICENSE =================================
#
# Copyright (C) 2016 - 2019 Continental Corporation
# Copyright (C) 2016 - 2025 Continental Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -118,7 +118,8 @@ create_targets_protobuf()
target_link_libraries(${PROJECT_NAME}
protobuf::libprotobuf
tclap::tclap
eCAL::core_protobuf
eCAL::protobuf_core
eCAL::string_core
eCAL::core_pb
ftxui::screen
ftxui::dom
Expand Down
4 changes: 2 additions & 2 deletions app/play/play_core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ========================= eCAL LICENSE =================================
#
# Copyright (C) 2016 - 2024 Continental Corporation
# Copyright (C) 2016 - 2025 Continental Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -55,7 +55,7 @@ target_link_libraries(${PROJECT_NAME} PUBLIC
Threads::Threads
spdlog::spdlog
protobuf::libprotobuf
eCAL::core_protobuf
eCAL::protobuf_core
eCAL::app_pb
eCAL::ecaltime_pb
eCAL::hdf5
Expand Down
4 changes: 2 additions & 2 deletions app/rec/rec_client_core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ========================= eCAL LICENSE =================================
#
# Copyright (C) 2016 - 2024 Continental Corporation
# Copyright (C) 2016 - 2025 Continental Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -94,7 +94,7 @@ target_link_libraries(${PROJECT_NAME}
target_link_libraries(${PROJECT_NAME}
PUBLIC
protobuf::libprotobuf
eCAL::core_protobuf
eCAL::protobuf_core
eCAL::core_pb
eCAL::app_pb
PRIVATE
Expand Down
4 changes: 2 additions & 2 deletions app/rec/rec_server_core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ========================= eCAL LICENSE =================================
#
# Copyright (C) 2016 - 2018 Continental Corporation
# Copyright (C) 2016 - 2025 Continental Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -68,7 +68,7 @@ target_link_libraries(${PROJECT_NAME}
PRIVATE
tinyxml2::tinyxml2
protobuf::libprotobuf
eCAL::core_protobuf
eCAL::protobuf_core
eCAL::app_pb
ThreadingUtils
Threads::Threads
Expand Down
4 changes: 2 additions & 2 deletions app/sys/sys_client_cli/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ========================= eCAL LICENSE =================================
#
# Copyright (C) 2016 - 2020 Continental Corporation
# Copyright (C) 2016 - 2025 Continental Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -43,7 +43,7 @@ target_link_libraries(${PROJECT_NAME}
spdlog::spdlog
tclap::tclap
protobuf::libprotobuf
eCAL::core_protobuf
eCAL::protobuf_core
eCAL::core_pb
eCAL::app_pb
eCAL::sys_client_core
Expand Down
4 changes: 2 additions & 2 deletions app/sys/sys_core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ========================= eCAL LICENSE =================================
#
# Copyright (C) 2016 - 2020 Continental Corporation
# Copyright (C) 2016 - 2025 Continental Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -91,7 +91,7 @@ target_link_libraries(${PROJECT_NAME}
tinyxml2::tinyxml2
spdlog::spdlog
protobuf::libprotobuf
eCAL::core_protobuf
eCAL::protobuf_core
eCAL::core_pb
eCAL::app_pb
EcalParser
Expand Down
4 changes: 2 additions & 2 deletions contrib/ecaltime/simtime/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ========================= eCAL LICENSE =================================
#
# Copyright (C) 2016 - 2019 Continental Corporation
# Copyright (C) 2016 - 2025 Continental Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -45,7 +45,7 @@ ecal_add_time_plugin(${PROJECT_NAME} SHARED ${ecal_time_simtime_src} ${ecal_time

target_compile_definitions(${PROJECT_NAME} PRIVATE ECAL_TIME_PLUGIN_API_EXPORT)

target_link_libraries(${PROJECT_NAME} PRIVATE eCAL::core_protobuf)
target_link_libraries(${PROJECT_NAME} PRIVATE eCAL::protobuf_core)
target_link_libraries(${PROJECT_NAME} PRIVATE eCAL::ecaltime_pb)

target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_14)
Expand Down
41 changes: 0 additions & 41 deletions contrib/message/CMakeLists.txt

This file was deleted.

4 changes: 2 additions & 2 deletions contrib/mma/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ========================= eCAL LICENSE =================================
#
# Copyright (C) 2016 - 2019 Continental Corporation
# Copyright (C) 2016 - 2025 Continental Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -82,7 +82,7 @@ create_targets_protobuf()

target_link_libraries(${PROJECT_NAME}
Threads::Threads
eCAL::core_protobuf
eCAL::protobuf_core
eCAL::app_pb
$<$<BOOL:${WIN32}>:Pdh>
$<$<BOOL:${WIN32}>:wbemuuid.lib>)
Expand Down
3 changes: 1 addition & 2 deletions ecal/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ========================= eCAL LICENSE =================================
#
# Copyright (C) 2016 - 2024 Continental Corporation
# Copyright (C) 2016 - 2025 Continental Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -26,7 +26,6 @@ set(ECAL_CORE_PROJECT_ROOT ${CMAKE_CURRENT_LIST_DIR})
add_subdirectory(core)

if(ECAL_CORE_HAS_PROTOBUF)
add_subdirectory(msg/protobuf)
add_subdirectory(core_pb)
endif()

Expand Down
Loading

0 comments on commit 2675824

Please sign in to comment.