Compare commits

...

5 Commits

Author SHA1 Message Date
Takatoshi Kondo
7e56a08074 Merge pull request #1039 from redboltz/update_to_413
Update the version to 4.1.3.
2022-11-02 13:46:28 +09:00
Takatoshi Kondo
d679ba57a0 Update the version to 4.1.3. 2022-11-02 12:55:54 +09:00
Takatoshi Kondo
2603c2a591 Merge pull request #1038 from redboltz/fix_1037
Fixed #1037.
2022-11-02 12:52:59 +09:00
Takatoshi Kondo
535bf33681 Updated zlib on CI. 2022-11-02 09:58:46 +09:00
Takatoshi Kondo
b051192ed6 Fixed #1037.
Added MSGPACK_NO_BOOST guard for direct inclusion of chrono adaptor,
2022-11-02 09:58:36 +09:00
7 changed files with 23 additions and 16 deletions

View File

@@ -27,9 +27,9 @@ while getopts "b:t:p:" c; do
done done
mkdir $prefix || exit 1 mkdir $prefix || exit 1
wget https://zlib.net/zlib-1.2.12.tar.gz || exit 1 wget https://zlib.net/zlib-1.2.13.tar.gz || exit 1
tar -xf zlib-1.2.12.tar.gz || exit 1 tar -xf zlib-1.2.13.tar.gz || exit 1
cd zlib-1.2.12 cd zlib-1.2.13
build() build()
{ {

View File

@@ -25,7 +25,7 @@ jobs:
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: ~/boost-prefix/ path: ~/boost-prefix/
key: ${{ runner.os }}-boost-1-76-0-2021-08-09 key: ${{ runner.os }}-boost-1-76-0-2022-08-09
- name: Build boost - name: Build boost
if: steps.cache-boost.outputs.cache-hit != 'true' if: steps.cache-boost.outputs.cache-hit != 'true'
@@ -36,7 +36,7 @@ jobs:
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: ~/zlib-prefix/ path: ~/zlib-prefix/
key: ${{ runner.os }}-zlib-1-2-12-2021-08-09 key: ${{ runner.os }}-zlib-1-2-13-2022-11-02
- name: Build zlib - name: Build zlib
if: steps.cache-zlib.outputs.cache-hit != 'true' if: steps.cache-zlib.outputs.cache-hit != 'true'
@@ -111,7 +111,7 @@ jobs:
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: ~/zlib-prefix/ path: ~/zlib-prefix/
key: ${{ runner.os }}-zlib-1-2-12-2021-08-09 key: ${{ runner.os }}-zlib-1-2-13-2022-11-02
- name: Build zlib - name: Build zlib
if: steps.cache-zlib.outputs.cache-hit != 'true' if: steps.cache-zlib.outputs.cache-hit != 'true'

View File

@@ -1,3 +1,6 @@
# 2022-11-02 version 4.1.3 for C++
* Fix compile error that direct inclusion of chrono with `MSGPACK_NO_BOOST` (#1038))
# 2022-09-07 version 4.1.2 for C++ # 2022-09-07 version 4.1.2 for C++
* Fix noexcept on zone (#1030) * Fix noexcept on zone (#1030)
* Improve cmake support (#1028, #1032) * Improve cmake support (#1028, #1032)

View File

@@ -1,7 +1,7 @@
`msgpack` for C++ `msgpack` for C++
=================== ===================
Version 4.1.2 [![Build Status](https://github.com/msgpack/msgpack-c/workflows/CI/badge.svg?branch=cpp_master)](https://github.com/msgpack/msgpack-c/actions) [![Build status](https://ci.appveyor.com/api/projects/status/8kstcgt79qj123mw/branch/cpp_master?svg=true)](https://ci.appveyor.com/project/redboltz/msgpack-c/branch/cpp_master) Version 4.1.3 [![Build Status](https://github.com/msgpack/msgpack-c/workflows/CI/badge.svg?branch=cpp_master)](https://github.com/msgpack/msgpack-c/actions) [![Build status](https://ci.appveyor.com/api/projects/status/8kstcgt79qj123mw/branch/cpp_master?svg=true)](https://ci.appveyor.com/project/redboltz/msgpack-c/branch/cpp_master)
[![codecov](https://codecov.io/gh/msgpack/msgpack-c/branch/cpp_master/graph/badge.svg)](https://codecov.io/gh/msgpack/msgpack-c/branch/cpp_master) [![codecov](https://codecov.io/gh/msgpack/msgpack-c/branch/cpp_master/graph/badge.svg)](https://codecov.io/gh/msgpack/msgpack-c/branch/cpp_master)
It's like JSON but smaller and faster. It's like JSON but smaller and faster.

View File

@@ -1,4 +1,4 @@
version: 4.1.2.{build} version: 4.1.3.{build}
branches: branches:
only: only:
@@ -23,10 +23,10 @@ environment:
boost_subdir: lib32-msvc-14.0 boost_subdir: lib32-msvc-14.0
build_script: build_script:
- ps: | - ps: |
appveyor DownloadFile http://zlib.net/zlib-1.2.12.tar.gz -FileName zlib-1.2.12.tar.gz appveyor DownloadFile http://zlib.net/zlib-1.2.13.tar.gz -FileName zlib-1.2.13.tar.gz
7z x zlib-1.2.12.tar.gz 2> $null 7z x zlib-1.2.13.tar.gz 2> $null
7z x zlib-1.2.12.tar 2> $null 7z x zlib-1.2.13.tar 2> $null
cd zlib-1.2.12 cd zlib-1.2.13
md build md build
md prefix md prefix
@@ -34,7 +34,7 @@ build_script:
cmake ` cmake `
-G $env:msvc ` -G $env:msvc `
-D CMAKE_INSTALL_PREFIX="$env:APPVEYOR_BUILD_FOLDER\zlib-1.2.12\prefix" ` -D CMAKE_INSTALL_PREFIX="$env:APPVEYOR_BUILD_FOLDER\zlib-1.2.13\prefix" `
.. ..
if ($LastExitCode -ne 0) { exit $LastExitCode } if ($LastExitCode -ne 0) { exit $LastExitCode }
@@ -52,7 +52,7 @@ build_script:
-D MSGPACK_BUILD_EXAMPLES=ON ` -D MSGPACK_BUILD_EXAMPLES=ON `
-D MSGPACK_BUILD_TESTS=ON ` -D MSGPACK_BUILD_TESTS=ON `
-D CMAKE_EXE_LINKER_FLAGS=/LIBPATH:"$env:boost_prefix\$env:boost_subdir" ` -D CMAKE_EXE_LINKER_FLAGS=/LIBPATH:"$env:boost_prefix\$env:boost_subdir" `
-D CMAKE_PREFIX_PATH="$env:boost_prefix;$env:APPVEYOR_BUILD_FOLDER\zlib-1.2.12\prefix" ` -D CMAKE_PREFIX_PATH="$env:boost_prefix;$env:APPVEYOR_BUILD_FOLDER\zlib-1.2.13\prefix" `
-D CMAKE_INSTALL_PREFIX="$env:APPVEYOR_BUILD_FOLDER\prefix" ` -D CMAKE_INSTALL_PREFIX="$env:APPVEYOR_BUILD_FOLDER\prefix" `
-D CMAKE_CXX_FLAGS="/D_VARIADIC_MAX=10 /EHsc /DBOOST_ALL_DYN_LINK" ` -D CMAKE_CXX_FLAGS="/D_VARIADIC_MAX=10 /EHsc /DBOOST_ALL_DYN_LINK" `
.. ..
@@ -62,5 +62,5 @@ build_script:
if ($LastExitCode -ne 0) { exit $LastExitCode } if ($LastExitCode -ne 0) { exit $LastExitCode }
test_script: test_script:
- set PATH=%PATH%;%APPVEYOR_BUILD_FOLDER%\zlib-1.2.12\build\Release;%APPVEYOR_BUILD_FOLDER%\build\release;%boost_prefix%\%boost_subdir% - set PATH=%PATH%;%APPVEYOR_BUILD_FOLDER%\zlib-1.2.13\build\Release;%APPVEYOR_BUILD_FOLDER%\build\release;%boost_prefix%\%boost_subdir%
- ctest -VV -C Release - ctest -VV -C Release

View File

@@ -11,6 +11,8 @@
#ifndef MSGPACK_V1_TYPE_CPP11_CHRONO_HPP #ifndef MSGPACK_V1_TYPE_CPP11_CHRONO_HPP
#define MSGPACK_V1_TYPE_CPP11_CHRONO_HPP #define MSGPACK_V1_TYPE_CPP11_CHRONO_HPP
#if !defined(MSGPACK_NO_BOOST)
#include "msgpack/versioning.hpp" #include "msgpack/versioning.hpp"
#include "msgpack/adaptor/adaptor_base.hpp" #include "msgpack/adaptor/adaptor_base.hpp"
#include "msgpack/object.hpp" #include "msgpack/object.hpp"
@@ -248,4 +250,6 @@ struct object_with_zone<std::chrono::time_point<Clock, Duration>> {
} // namespace msgpack } // namespace msgpack
#endif // !defined(MSGPACK_NO_BOOST)
#endif // MSGPACK_V1_TYPE_CPP11_CHRONO_HPP #endif // MSGPACK_V1_TYPE_CPP11_CHRONO_HPP

View File

@@ -1,3 +1,3 @@
#define MSGPACK_VERSION_MAJOR 4 #define MSGPACK_VERSION_MAJOR 4
#define MSGPACK_VERSION_MINOR 1 #define MSGPACK_VERSION_MINOR 1
#define MSGPACK_VERSION_REVISION 2 #define MSGPACK_VERSION_REVISION 3