Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Aug 1, 2024
1 parent a6ae2ed commit fb31279
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion 3rdparty/opendbc
Submodule opendbc updated 179 files
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ include_directories(
./3rdparty/lua-5.4.3/src
./3rdparty/QCodeEditor/include
./3rdparty/lz4
./3rdparty/opendbc/can
./3rdparty/opendbc
./3rdparty/opendbc/opendbc
./3rdparty/opendbc/opendbc/can
./3rdparty/cereal/messaging
./3rdparty/cereal
)
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindCereal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ else (Cereal_LIBRARIES AND Cereal_INCLUDE_DIRS)

# build cereal before we search for required Cereal plugin libs below
execute_process(
COMMAND scons -j$(nproc) --minimal
COMMAND scons -j8 --minimal
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/3rdparty/cereal
)

Expand Down
2 changes: 1 addition & 1 deletion cmake/FindRlog.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ else (Rlog_INCLUDE_DIRS AND Rlog_LIBRARIES)
#### find opendbc common
find_path(Rlog_opendbc_INCLUDE_DIR
NAMES common.h
PATHS ${CMAKE_SOURCE_DIR}/3rdparty/opendbc/can
PATHS ${CMAKE_SOURCE_DIR}/3rdparty/opendbc/opendbc/can
/usr/include
/usr/local/include
/opt/local/include
Expand Down
12 changes: 6 additions & 6 deletions plotjuggler_plugins/DataLoadRlog/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ if(Rlog_FOUND)
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
add_definitions(-DDYNAMIC_CAPNP)
add_definitions(-DDBC_FILE_PATH="${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/opendbc")
add_definitions(-DDBC_FILE_PATH="${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/opendbc/opendbc/dbc")

SET(SRC
rlog_parser.cpp
dataload_rlog.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/opendbc/can/common.cc
${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/opendbc/can/dbc.cc
${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/opendbc/can/packer.cc
${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/opendbc/can/parser.cc
${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/opendbc/opendbc/can/common.cc
${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/opendbc/opendbc/can/dbc.cc
${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/opendbc/opendbc/can/packer.cc
${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/opendbc/opendbc/can/parser.cc
)

add_definitions(-L /usr/local/lib)
Expand All @@ -33,4 +33,4 @@ if(Rlog_FOUND)

else()
message("[Rlog] not found. Skipping plugin DataStreamRlog.")
endif()
endif()
12 changes: 6 additions & 6 deletions plotjuggler_plugins/DataStreamCereal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ if(Cereal_FOUND AND Rlog_FOUND)
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
add_definitions(-DDYNAMIC_CAPNP)
add_definitions(-DDBC_FILE_PATH="${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/opendbc")
add_definitions(-DDBC_FILE_PATH="${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/opendbc/opendbc/dbc")

QT5_WRAP_UI ( UI_SRC datastream_cereal.ui )

SET(SRC
datastream_cereal.cpp
../DataLoadRlog/rlog_parser.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/opendbc/can/common.cc
${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/opendbc/can/dbc.cc
${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/opendbc/can/packer.cc
${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/opendbc/can/parser.cc
${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/opendbc/opendbc/can/common.cc
${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/opendbc/opendbc/can/dbc.cc
${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/opendbc/opendbc/can/packer.cc
${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/opendbc/opendbc/can/parser.cc
)

add_library(DataStreamCereal SHARED ${SRC} ${UI_SRC} )
Expand All @@ -31,4 +31,4 @@ if(Cereal_FOUND AND Rlog_FOUND)

else()
message("[Cereal] not found. Skipping plugin DataStreamCereal.")
endif()
endif()

0 comments on commit fb31279

Please sign in to comment.