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

Bump third_party/libsbp from 84f224f to 1bfe255 #610

Merged
merged 4 commits into from
Dec 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ add_library(settings
setting_type_float.c
setting_type_int.c
setting_type_str.c)
target_compile_options(settings
PRIVATE
-Wno-error=deprecated-declarations
)

target_link_libraries(settings swiftnav)

Expand Down
4 changes: 3 additions & 1 deletion src/setting_sbp_cb.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <stdlib.h>
#include <string.h>

#include <libsbp/settings.h>
#include <libsbp/legacy/settings.h>

#include <swiftnav/logging.h>

Expand All @@ -26,6 +26,8 @@
#include <internal/setting_macros.h>
#include <internal/setting_sbp_cb.h>

#define SBP_SENDER_ID 0x42

#define UPDATE_FILTER_NONE 0x0
#define UPDATE_FILTER_BASIC (0x1 << 3)
#define UPDATE_FILTER_READONLY (0x1 << 1)
Expand Down
4 changes: 3 additions & 1 deletion src/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
#include <string.h>
#include <sys/stat.h>

#include <libsbp/legacy/settings.h>
#include <libsbp/sbp.h>
#include <libsbp/settings.h>

#include <swiftnav/logging.h>

Expand All @@ -98,6 +98,8 @@
#define __attribute__(x)
#endif

#define SBP_SENDER_ID 0x42

#define REGISTER_TIMEOUT_MS 500
#define REGISTER_TRIES 5

Expand Down
17 changes: 9 additions & 8 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_executable(
add_executable(
test_libsettings
src/test_request_state.cpp
src/test_setting_data.cpp
Expand All @@ -20,28 +20,29 @@
${PROJECT_SOURCE_DIR}/src/settings.c
${PROJECT_SOURCE_DIR}/src/settings_util.c)

target_include_directories(test_libsettings
target_include_directories(test_libsettings
PRIVATE
${PROJECT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/tests/include
$<TARGET_PROPERTY:sbp,INCLUDE_DIRECTORIES>
)

target_link_libraries(test_libsettings swiftnav gtest_main)
target_link_libraries(test_libsettings swiftnav gtest_main)
target_compile_options(test_libsettings PRIVATE -Wno-error=deprecated-declarations)

if (WIN32)
add_custom_command(
if (WIN32)
add_custom_command(
TARGET test_libsettings POST_BUILD
COMMENT "Running unit tests"
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/bin/libgtest.dll ${CMAKE_BINARY_DIR}/tests
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/bin/libgtest_main.dll ${CMAKE_BINARY_DIR}/tests
COMMAND test_libsettings
)
else (WIN32)
add_custom_command(
else (WIN32)
add_custom_command(
TARGET test_libsettings POST_BUILD
COMMENT "Running unit tests"
COMMAND test_libsettings
)
endif (WIN32)
endif (WIN32)

2 changes: 1 addition & 1 deletion third_party/libsbp
Submodule libsbp updated 2182 files
Loading