Skip to content

Commit

Permalink
Make some dependencies conditional
Browse files Browse the repository at this point in the history
Signed-off-by: Kai-Uwe Hermann <[email protected]>
  • Loading branch information
hikinggrass committed Jan 15, 2024
1 parent f1a0a9f commit a49ddcd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ libocpp:
Josev:
git: https://github.com/EVerest/ext-switchev-iso15118.git
git_tag: 2023.12.0
cmake_condition: "EVEREST_ENABLE_PY_SUPPORT"
# OpenV2G
ext-openv2g:
git: https://github.com/EVerest/ext-openv2g.git
Expand All @@ -62,6 +63,7 @@ ext-mbedtls:
everest-utils:
git: https://github.com/EVerest/everest-utils.git
git_tag: v0.2.0
cmake_condition: "BUILD_TESTING"
# evse-security, since this is a direct dependency of libocpp it will get overwritten by the version set there
# setting it here can be misleading since it does not affect the version being used
libevse-security:
Expand Down
12 changes: 9 additions & 3 deletions lib/staging/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
add_subdirectory(can_dpm1000)
add_subdirectory(slac)
add_subdirectory(gpio)
add_subdirectory(ocpp)
if((NOT libslac IN_LIST EVEREST_EXCLUDE_DEPENDENCIES) AND (NOT libfsm IN_LIST EVEREST_EXCLUDE_DEPENDENCIES))
add_subdirectory(slac)
endif()
if(NOT everest-gpio IN_LIST EVEREST_EXCLUDE_DEPENDENCIES)
add_subdirectory(gpio)
endif()
if(NOT libocpp IN_LIST EVEREST_EXCLUDE_DEPENDENCIES)
add_subdirectory(ocpp)
endif()

0 comments on commit a49ddcd

Please sign in to comment.