Skip to content

Commit

Permalink
sqlite3 library amalgamation
Browse files Browse the repository at this point in the history
Signed-off-by: Eugenio Collado <eugeniocollado@eprosima.com>
  • Loading branch information
EugenioCollado committed Dec 30, 2024
1 parent 4d292a4 commit 7b12ed7
Show file tree
Hide file tree
Showing 11 changed files with 274,088 additions and 8 deletions.
1 change: 1 addition & 0 deletions ddsrecorder/project_settings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ set(MODULE_THIRDPARTY_HEADERONLY
mcap
nlohmann-json
optionparser
sqlite
)

set(MODULE_THIRDPARTY_PATH
Expand Down
2 changes: 1 addition & 1 deletion ddsrecorder/test/blackbox/sql/SqlFileCreationTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <string>
#include <vector>

#include <sqlite3.h>
#include <sqlite/sqlite3.h>

#include <gtest/gtest.h>

Expand Down
2 changes: 2 additions & 0 deletions ddsrecorder_participants/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
cmake_minimum_required(VERSION 3.5)

# Done this to set machine architecture and be able to call cmake_utils
enable_language(C)
enable_language(CXX)

###############################################################################
Expand Down Expand Up @@ -63,6 +64,7 @@ configure_project_cpp()
file(
GLOB_RECURSE SOURCES_FILES
"${PROJECT_SOURCE_DIR}/src/cpp/*.c*"
"${PROJECT_SOURCE_DIR}/../thirdparty/sqlite/*.c"
)

file(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#pragma once

#include <sqlite3.h>
#include <sqlite/sqlite3.h>
#include <string>
#include <vector>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <string>
#include <utility>

#include <sqlite3.h>
#include <sqlite/sqlite3.h>

#include <cpp_utils/memory/Heritable.hpp>

Expand Down
6 changes: 3 additions & 3 deletions ddsrecorder_participants/project_settings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ endif()

set(MODULE_THIRDPARTY_HEADERONLY
mcap
nlohmann-json)
nlohmann-json
sqlite)

set(fastdds_MINIMUM_VERSION "3.0.0")

Expand All @@ -52,8 +53,7 @@ set(MODULE_DEPENDENCIES
ddspipe_core
ddspipe_participants
$<IF:$<BOOL:${WIN32}>,lz4::lz4,lz4>
$<IF:$<BOOL:${WIN32}>,$<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>,zstd>
sqlite3)
$<IF:$<BOOL:${WIN32}>,$<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>,zstd>)

set(MODULE_CPP_VERSION
C++17)
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <stdexcept>
#include <vector>

#include <sqlite3.h>
#include <sqlite/sqlite3.h>

#include <cpp_utils/exception/InconsistencyException.hpp>
#include <cpp_utils/exception/InitializationException.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <string>
#include <utility>

#include <sqlite3.h>
#include <sqlite/sqlite3.h>

#include <fastdds/dds/core/Time_t.hpp>

Expand Down
1 change: 1 addition & 0 deletions ddsreplayer/project_settings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ set(MODULE_DEPENDENCIES
set(MODULE_THIRDPARTY_HEADERONLY
filewatch
mcap
sqlite
optionparser
)

Expand Down
Loading

0 comments on commit 7b12ed7

Please sign in to comment.