mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-21 07:45:02 +02:00
Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
eba6304a3a | ||
![]() |
ef0927a6f0 | ||
![]() |
bf2504e7bb | ||
![]() |
724d1aad39 | ||
![]() |
a5c8a2c845 | ||
![]() |
4e027b72de | ||
![]() |
c31fafbcd1 | ||
![]() |
68cc50a3de | ||
![]() |
9f37918bb5 | ||
![]() |
b8b54a2fef | ||
![]() |
f2c1991ede |
19
.github/workflows/gha.yml
vendored
19
.github/workflows/gha.yml
vendored
@@ -18,6 +18,9 @@ jobs:
|
|||||||
pattern: [0, 1, 2, 3]
|
pattern: [0, 1, 2, 3]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
- name: install gtest
|
||||||
|
run: |
|
||||||
|
brew install --force googletest
|
||||||
- name: build and test
|
- name: build and test
|
||||||
env:
|
env:
|
||||||
CC: clang
|
CC: clang
|
||||||
@@ -48,22 +51,8 @@ jobs:
|
|||||||
export CHAR_SIGN="unsigned"
|
export CHAR_SIGN="unsigned"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# install gtest
|
|
||||||
wget https://github.com/google/googletest/archive/release-1.7.0.zip -O googletest-release-1.7.0.zip
|
|
||||||
unzip -q googletest-release-1.7.0.zip
|
|
||||||
cd googletest-release-1.7.0
|
|
||||||
$CXX -m${ARCH} src/gtest-all.cc -I. -Iinclude -c
|
|
||||||
$CXX -m${ARCH} src/gtest_main.cc -I. -Iinclude -c
|
|
||||||
ar -rv libgtest.a gtest-all.o
|
|
||||||
ar -rv libgtest_main.a gtest_main.o
|
|
||||||
mkdir -p ${BASE}/usr/include
|
|
||||||
cp -r include/gtest ${BASE}/usr/include
|
|
||||||
mkdir -p ${BASE}/usr/lib
|
|
||||||
mv *.a ${BASE}/usr/lib
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
# build and test
|
# build and test
|
||||||
CMAKE_CXX_COMPILER="${CXX}" CMAKE_C_COMPILER="${CC}" GTEST_ROOT="${BASE}/usr" CFLAGS="-Werror -g -fsanitize=undefined -fno-sanitize-recover=all" CXXFLAGS="-Werror -g -ggdb3 -fsanitize=undefined -fno-sanitize-recover=all" ${ACTION}
|
CMAKE_CXX_COMPILER="${CXX}" CMAKE_C_COMPILER="${CC}" CFLAGS="-Werror -g -fsanitize=undefined -fno-sanitize-recover=all" CXXFLAGS="-Werror -g -ggdb3 -fsanitize=undefined -fno-sanitize-recover=all" ${ACTION}
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
# 2024-06-24 version 6.0.2
|
||||||
|
* Fix header file installation to respect `CMAKE_INSTALL_INCLUDEDIR` (#1125)
|
||||||
|
* Support absolute path for `CMAKE_INSTALL_*DIR` (#1121)
|
||||||
|
* Removed invalid ctest option. (#1120)
|
||||||
|
* Support relative path for `CMAKE_INSTALL_*DIR{ (#1119)
|
||||||
|
|
||||||
# 2024-04-02 version 6.0.1
|
# 2024-04-02 version 6.0.1
|
||||||
* Improve CI environment (#1061, #1091, #1109)
|
* Improve CI environment (#1061, #1091, #1109)
|
||||||
* Improve build system (#1060, #1069, #1108)
|
* Improve build system (#1060, #1069, #1108)
|
||||||
|
@@ -30,8 +30,16 @@ LIST (APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/")
|
|||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
SET (prefix ${CMAKE_INSTALL_PREFIX})
|
SET (prefix ${CMAKE_INSTALL_PREFIX})
|
||||||
SET (exec_prefix ${CMAKE_INSTALL_PREFIX})
|
SET (exec_prefix ${CMAKE_INSTALL_PREFIX})
|
||||||
SET (libdir ${CMAKE_INSTALL_LIBDIR})
|
IF (IS_ABSOLUTE ${CMAKE_INSTALL_LIBDIR})
|
||||||
SET (includedir ${CMAKE_INSTALL_INCLUDEDIR})
|
SET (libdir ${CMAKE_INSTALL_LIBDIR})
|
||||||
|
ELSE ()
|
||||||
|
SET (libdir "\${prefix}/${CMAKE_INSTALL_LIBDIR}")
|
||||||
|
ENDIF ()
|
||||||
|
IF (IS_ABSOLUTE ${CMAKE_INSTALL_INCLUDEDIR})
|
||||||
|
SET (includedir ${CMAKE_INSTALL_INCLUDEDIR})
|
||||||
|
ELSE ()
|
||||||
|
SET (includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
|
||||||
|
ENDIF ()
|
||||||
|
|
||||||
OPTION (MSGPACK_32BIT "32bit compile" OFF)
|
OPTION (MSGPACK_32BIT "32bit compile" OFF)
|
||||||
|
|
||||||
@@ -263,12 +271,14 @@ INSTALL (TARGETS ${MSGPACK_INSTALLTARGETS} EXPORT msgpack-c-targets
|
|||||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
)
|
)
|
||||||
FOREACH (file ${msgpack-c_common_HEADERS})
|
FOREACH (file ${msgpack-c_common_HEADERS})
|
||||||
GET_FILENAME_COMPONENT (dir ${file} PATH)
|
GET_FILENAME_COMPONENT(dir ${file} DIRECTORY)
|
||||||
INSTALL (FILES ${file} DESTINATION ${dir})
|
STRING(REPLACE "include" "${CMAKE_INSTALL_INCLUDEDIR}" header_path ${dir})
|
||||||
|
INSTALL (FILES ${file} DESTINATION ${header_path})
|
||||||
ENDFOREACH ()
|
ENDFOREACH ()
|
||||||
FOREACH (file ${msgpack-c_configured_HEADERS})
|
FOREACH (file ${msgpack-c_configured_HEADERS})
|
||||||
GET_FILENAME_COMPONENT (dir ${file} PATH)
|
GET_FILENAME_COMPONENT(dir ${file} DIRECTORY)
|
||||||
INSTALL (FILES ${CMAKE_CURRENT_BINARY_DIR}/${file} DESTINATION ${dir})
|
STRING(REPLACE "include" "${CMAKE_INSTALL_INCLUDEDIR}" header_path ${dir})
|
||||||
|
INSTALL (FILES ${CMAKE_CURRENT_BINARY_DIR}/${file} DESTINATION ${header_path})
|
||||||
ENDFOREACH ()
|
ENDFOREACH ()
|
||||||
IF (NOT MSVC)
|
IF (NOT MSVC)
|
||||||
INSTALL (FILES ${CMAKE_CURRENT_BINARY_DIR}/msgpack-c.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
INSTALL (FILES ${CMAKE_CURRENT_BINARY_DIR}/msgpack-c.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
`msgpack` for C
|
`msgpack` for C
|
||||||
===================
|
===================
|
||||||
|
|
||||||
Version 6.0.1 [](https://github.com/msgpack/msgpack-c/actions) [](https://ci.appveyor.com/project/redboltz/msgpack-c/branch/c_master)
|
Version 6.0.2 [](https://github.com/msgpack/msgpack-c/actions) [](https://ci.appveyor.com/project/redboltz/msgpack-c/branch/c_master)
|
||||||
[](https://codecov.io/gh/msgpack/msgpack-c/branch/c_master)
|
[](https://codecov.io/gh/msgpack/msgpack-c/branch/c_master)
|
||||||
|
|
||||||
It's like JSON but smaller and faster.
|
It's like JSON but smaller and faster.
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
version: 6.0.1.{build}
|
version: 6.0.2.{build}
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
|
@@ -42,7 +42,7 @@ then
|
|||||||
exit $ret
|
exit $ret
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ctest -VVr
|
ctest -VV
|
||||||
|
|
||||||
ret=$?
|
ret=$?
|
||||||
if [ $ret -ne 0 ]
|
if [ $ret -ne 0 ]
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
#define MSGPACK_VERSION_MAJOR 6
|
#define MSGPACK_VERSION_MAJOR 6
|
||||||
#define MSGPACK_VERSION_MINOR 0
|
#define MSGPACK_VERSION_MINOR 0
|
||||||
#define MSGPACK_VERSION_REVISION 1
|
#define MSGPACK_VERSION_REVISION 2
|
||||||
|
Reference in New Issue
Block a user