mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Merge branch 'master' into Master5
This commit is contained in:
commit
9b0f5a7a26
|
@ -24,7 +24,7 @@ before_build:
|
|||
- git submodule update --init --recursive
|
||||
- mkdir build
|
||||
- cd build
|
||||
- cmake -G "Visual Studio 14 2015" -D CMAKE_GENERATOR_PLATFORM=%platform% -D STATIC=%STATIC% -D SAMPLES=ON -D BENCHMARKS=ON ..
|
||||
- cmake -G "Visual Studio 14 2015" -D CMAKE_GENERATOR_PLATFORM=%platform% -D STATIC=%STATIC% -D SAMPLES=ON -D BENCHMARKS=ON -D TESTS=ON ..
|
||||
|
||||
build:
|
||||
project: build/xlnt_all.sln
|
||||
|
|
|
@ -26,7 +26,7 @@ jobs:
|
|||
steps:
|
||||
- checkout
|
||||
- run: git submodule update --init --recursive
|
||||
- run: cmake -D XLNT_CXX_LANG=<< parameters.cxx-ver >> -D STATIC=<< parameters.static >> -D BENCHMARKS=<< parameters.benchmarks >> -D SAMPLES=<< parameters.samples >> -D COVERAGE=<< parameters.coverage >> -D CMAKE_BUILD_TYPE=<< parameters.build-type >> .
|
||||
- run: cmake -D XLNT_CXX_LANG=<< parameters.cxx-ver >> -D STATIC=<< parameters.static >> -D BENCHMARKS=<< parameters.benchmarks >> -D TESTS=ON -D SAMPLES=<< parameters.samples >> -D COVERAGE=<< parameters.coverage >> -D CMAKE_BUILD_TYPE=<< parameters.build-type >> .
|
||||
- run: cmake --build . -- -j2
|
||||
- run: ./tests/xlnt.test
|
||||
- when:
|
||||
|
|
|
@ -27,7 +27,7 @@ endif()
|
|||
|
||||
|
||||
# Optional components
|
||||
option(TESTS "Set to OFF to skip building test executable (in ./tests)" ON)
|
||||
option(TESTS "Set to ON to build test executable (in ./tests)" OFF)
|
||||
option(SAMPLES "Set to ON to build executable code samples (in ./samples)" OFF)
|
||||
option(BENCHMARKS "Set to ON to build performance benchmarks (in ./benchmarks)" OFF)
|
||||
option(PYTHON "Set to ON to build Arrow conversion functions (in ./python)" OFF)
|
||||
|
|
12
README.md
12
README.md
|
@ -36,5 +36,17 @@ int main()
|
|||
|
||||
Documentation for the current release of xlnt is available [here](https://tfussell.gitbooks.io/xlnt/content/).
|
||||
|
||||
## Building xlnt - Using vcpkg
|
||||
|
||||
You can download and install xlnt using the [vcpkg](https://github.com/microsoft/vcpkg) dependency manager:
|
||||
|
||||
git clone https://github.com/microsoft/vcpkg.git
|
||||
cd vcpkg
|
||||
./bootstrap-vcpkg.sh
|
||||
./vcpkg integrate install
|
||||
./vcpkg install xlnt
|
||||
|
||||
The xlnt port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/microsoft/vcpkg) on the vcpkg repository.
|
||||
|
||||
## License
|
||||
xlnt is released to the public for free under the terms of the MIT License. See [LICENSE.md](https://github.com/tfussell/xlnt/blob/master/LICENSE.md) for the full text of the license and the licenses of xlnt's third-party dependencies. [LICENSE.md](https://github.com/tfussell/xlnt/blob/master/LICENSE.md) should be distributed alongside any assemblies that use xlnt in source or compiled form.
|
||||
|
|
|
@ -51,7 +51,7 @@ constexpr Number abs(Number val)
|
|||
/// constexpr max
|
||||
/// </summary>
|
||||
template <typename NumberL, typename NumberR>
|
||||
constexpr typename std::common_type<NumberL, NumberR>::type max(NumberL lval, NumberR rval)
|
||||
constexpr typename std::common_type<NumberL, NumberR>::type (max)(NumberL lval, NumberR rval)
|
||||
{
|
||||
return (lval < rval) ? rval : lval;
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ constexpr typename std::common_type<NumberL, NumberR>::type max(NumberL lval, Nu
|
|||
/// constexpr min
|
||||
/// </summary>
|
||||
template <typename NumberL, typename NumberR>
|
||||
constexpr typename std::common_type<NumberL, NumberR>::type min(NumberL lval, NumberR rval)
|
||||
constexpr typename std::common_type<NumberL, NumberR>::type (min)(NumberL lval, NumberR rval)
|
||||
{
|
||||
return (lval < rval) ? lval : rval;
|
||||
}
|
||||
|
|
|
@ -28,10 +28,14 @@
|
|||
#ifdef XLNT_EXPORT
|
||||
#define XLNT_API __declspec(dllexport)
|
||||
#else
|
||||
#ifdef XLNT_SHARED
|
||||
// For clients of the library, supress warnings about DLL interfaces for standard library classes
|
||||
#pragma warning(disable : 4251)
|
||||
#pragma warning(disable : 4275)
|
||||
#define XLNT_API __declspec(dllimport)
|
||||
#else
|
||||
#define XLNT_API
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
#define XLNT_API
|
||||
|
|
Loading…
Reference in New Issue
Block a user