File tree Expand file tree Collapse file tree 5 files changed +20
-8
lines changed Expand file tree Collapse file tree 5 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,3 @@ FROM ghcr.io/everest/everest-ci/build-kit-base:${BASE_IMAGE_TAG}
10
10
# && cd ${EVEREST_CMAKE_PATH} \
11
11
# && git checkout ${EVEREST_CMAKE_VERSION} \
12
12
# && rm -r .git
13
-
14
- # FIXME(kai): Install sdbus-c++ v2.1.0 from source until CI is updated to debian 13
15
- RUN apt-get update && apt-get -y install libsystemd-dev
16
- RUN git clone https://github.com/Kistler-Group/sdbus-cpp.git -b v2.1.0
17
- RUN cmake -S sdbus-cpp -B sdbus-cpp-build -DCMAKE_BUILD_TYPE=Release
18
- RUN cmake --build sdbus-cpp-build --target install
Original file line number Diff line number Diff line change @@ -97,6 +97,10 @@ if(NOT DISABLE_EDM)
97
97
98
98
# FIXME (aw): we need to set this by hand due to edm
99
99
set (EVEREST_SCHEMA_DIR ${everest-framework_SOURCE_DIR}/schemas)
100
+
101
+ if (NOT TARGET SDBusCpp::sdbus-c++)
102
+ add_library (SDBusCpp::sdbus-c++ ALIAS sdbus-c++)
103
+ endif ()
100
104
else ()
101
105
find_package (everest-framework REQUIRED)
102
106
find_package (everest-ocpp REQUIRED)
@@ -115,6 +119,8 @@ else()
115
119
find_package (nlohmann_json REQUIRED)
116
120
117
121
find_package (ftxui 5 QUIET ) # optional, if not available BringUp module will not be built
122
+
123
+ find_package (sdbus-c++ REQUIRED)
118
124
endif ()
119
125
120
126
Original file line number Diff line number Diff line change @@ -105,6 +105,11 @@ mqttc:
105
105
git : https://github.com/LiamBindle/MQTT-C.git
106
106
git_tag : v1.1.6
107
107
options : ["MQTT_C_EXAMPLES OFF", "CMAKE_POSITION_INDEPENDENT_CODE ON"]
108
+ # Linux_Systemd_Rauc module
109
+ sdbus-cpp :
110
+ git : https://github.com/Kistler-Group/sdbus-cpp.git
111
+ git_tag : v2.1.0
112
+ cmake_condition : " EVEREST_DEPENDENCY_ENABLED_SDBUS_CPP"
108
113
# unit testing
109
114
gtest :
110
115
# GoogleTest now follows the Abseil Live at Head philosophy. We recommend updating to the latest commit in the main branch as often as possible.
Original file line number Diff line number Diff line change 1
-
2
- find_package (sdbus-c++ REQUIRED)
1
+ if (NOT DEFINED sdbus-c++_VERSION_MAJOR AND NOT DISABLE_EDM)
2
+ string (REPLACE "." ";" SDBUS_CPP_VERSION_SPLIT ${CPM_PACKAGE_sdbus-cpp_VERSION})
3
+ list (GET SDBUS_CPP_VERSION_SPLIT 0 sdbus-c++_VERSION_MAJOR)
4
+ endif ()
3
5
message ("Found sdbus-c++ major version: " ${sdbus-c++_VERSION_MAJOR})
4
6
5
7
add_library (everest_system STATIC )
Original file line number Diff line number Diff line change @@ -62,6 +62,11 @@ ev_define_dependency(
62
62
DEPENDENCY_NAME ftxui
63
63
DEPENDENT_MODULES_LIST BUDisplayMessage BUEvseBoardSupport BUIsolationMonitor BUmMWcar BUNfcReader BUOverVoltageMonitor BUPowermeter BUPowerSupplyDC BUSystem)
64
64
65
+ ev_define_dependency(
66
+ DEPENDENCY_NAME sdbus-cpp
67
+ OUTPUT_VARIABLE_SUFFIX SDBUS_CPP
68
+ DEPENDENT_MODULES_LIST Linux_Systemd_Rauc)
69
+
65
70
if (NOT everest-gpio IN_LIST EVEREST_EXCLUDE_DEPENDENCIES)
66
71
set (EVEREST_DEPENDENCY_ENABLED_EVEREST_GPIO ON )
67
72
else ()
You can’t perform that action at this time.
0 commit comments