Skip to content

Commit eeef1af

Browse files
authored
add missing LIN experimental docs to html (SILKIT-1738) (#197)
Use system libs for mingw-w64 build (WORKAROUND) and fix build on mingw with system libs.
1 parent f6c2cf5 commit eeef1af

13 files changed

Lines changed: 53 additions & 55 deletions

File tree

.github/workflows/build-mingw64.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
matrix:
2121
builds:
22-
- arch: x86_64
22+
- arch: mingw-w64-x86_64
2323
bin: /mingw64/bin
2424
#- arch: i686
2525
# bin: /mingw32/bin
@@ -29,7 +29,7 @@ jobs:
2929
steps:
3030
- name: Setup host
3131
run: |
32-
pacman -S mingw-w64-${{ matrix.builds.arch }}-gcc mingw-w64-${{ matrix.builds.arch }}-cmake mingw-w64-${{ matrix.builds.arch }}-ninja --noconfirm
32+
pacman -S ${{ matrix.builds.arch }}-gcc ${{ matrix.builds.arch }}-cmake ${{ matrix.builds.arch }}-ninja ${{ matrix.builds.arch }}-yaml-cpp ${{ matrix.builds.arch }}-fmt ${{ matrix.builds.arch }}-gtest ${{matrix.builds.arch}}-asio ${{matrix.builds.arch}}-spdlog --noconfirm
3333
3434
3535
- uses: actions/checkout@v4
@@ -40,6 +40,6 @@ jobs:
4040
with:
4141
preset-name: gcc-release
4242
artifact-label: ${{ github.job }}-${{ matrix.builds.arch }}
43-
cmake-args: -D SILKIT_BUILD_DOCS=OFF
43+
cmake-args: -D SILKIT_BUILD_DOCS=OFF -D SILKIT_USE_SYSTEM_LIBRARIES=ON -D SILKIT_BUILD_DASHBOARD=OFF
4444
extra-path: "${{ matrix.builds.bin }}:"
4545
shell: C:\shells\msys2bash.cmd {0}

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ set(SILKIT_HOST_PLATFORM "${plat}")
112112
set(SILKIT_HOST_ARCHITECTURE "${arch}")
113113
set(SILKIT_HOST_COMPILER "${comp}")
114114
message(STATUS "SIL Kit - CMAKE_VERSION ${CMAKE_VERSION}")
115+
message(STATUS "SIL Kit - CMAKE_COMMAND ${CMAKE_COMMAND}")
115116
message(STATUS "SIL Kit - SILKIT_HOST_PLATFORM ${SILKIT_HOST_PLATFORM}")
116117
message(STATUS "SIL Kit - SILKIT_HOST_ARCHITECTURE ${SILKIT_HOST_ARCHITECTURE}")
117118
message(STATUS "SIL Kit - SILKIT_HOST_COMPILER ${SILKIT_HOST_COMPILER}")

SilKit/IntegrationTests/FTest_PubSubPerf.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
2020
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
2121

2222
#include <iostream>
23+
#include <iomanip>
2324

2425
#include "silkit/services/all.hpp"
2526
#include "silkit/services/logging/ILogger.hpp"

SilKit/cmake/SilKitTestAsio.cmake

Lines changed: 0 additions & 25 deletions
This file was deleted.

SilKit/source/core/participant/Participant_impl.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
7070
#include "Assert.hpp"
7171
#include "ExecutionEnvironment.hpp"
7272

73+
#include "fmt/ranges.h"
74+
7375

7476

7577
namespace SilKit {

SilKit/source/core/vasio/ConnectKnownParticipants.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include <memory>
3232

3333
#include "fmt/format.h"
34+
#include "fmt/ranges.h"
3435

3536

3637
#if SILKIT_ENABLE_TRACING_INSTRUMENTATION_VAsioConnection

SilKit/source/core/vasio/VAsioConnection.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
4949

5050
#include "asio.hpp"
5151

52+
#include "fmt/ranges.h"
53+
5254

5355
#if SILKIT_ENABLE_TRACING_INSTRUMENTATION_VAsioConnection
5456
#define SILKIT_TRACE_METHOD_(logger, ...) SILKIT_TRACE_METHOD(logger, __VA_ARGS__)

SilKit/source/core/vasio/VAsioPeer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ void VAsioPeer::DispatchBuffer()
261261
// validate the received size
262262
if (_currentMsgSize == 0 || _currentMsgSize > 1024 * 1024 * 1024)
263263
{
264-
SilKit::Services::Logging::Error(_logger, "Received invalid Message Size: {}", _currentMsgSize);
264+
SilKit::Services::Logging::Error(_logger, "Received invalid Message Size: {}", _currentMsgSize.load());
265265
Shutdown();
266266
}
267267

SilKit/source/services/logging/Logger.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ struct fmt::formatter<SilKit::Services::Logging::SimpleLogMessage>
141141
}
142142

143143
template <typename FormatContext>
144-
auto format(const SilKit::Services::Logging::SimpleLogMessage& msg, FormatContext& ctx)
144+
auto format(const SilKit::Services::Logging::SimpleLogMessage& msg, FormatContext& ctx) const
145145
{
146146
if (!msg.kv.empty())
147147
{
@@ -164,7 +164,7 @@ struct fmt::formatter<SilKit::Services::Logging::JsonLogMessage>
164164
}
165165

166166
template <typename FormatContext>
167-
auto format(const SilKit::Services::Logging::JsonLogMessage& msg, FormatContext& ctx)
167+
auto format(const SilKit::Services::Logging::JsonLogMessage& msg, FormatContext& ctx) const
168168
{
169169
if (!msg.kv.empty())
170170
{
@@ -430,7 +430,7 @@ void Logger::Log(Level level, const std::string& msg)
430430
if (nullptr != _loggerJson)
431431
{
432432
JsonString jsonString{msg};
433-
_loggerJson->log(now, spdlog::source_loc{}, to_spdlog(level), fmt::format("{}", jsonString));
433+
_loggerJson->log(now, spdlog::source_loc{}, to_spdlog(level), fmt::format("{}",jsonString.m));
434434
}
435435
if (nullptr != _loggerSimple)
436436
{

SilKit/source/util/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ target_link_libraries(O_SilKit_Util
2929
PUBLIC I_SilKit_Util
3030
PRIVATE SilKitInterface
3131
PRIVATE asio
32-
PRIVATE fmt-header-only
32+
PRIVATE fmt::fmt-header-only
3333
)
3434

3535
if (MSVC)

0 commit comments

Comments
 (0)