Skip to content

Commit dcef14b

Browse files
committed
Add vcpkg support
1 parent d43d75a commit dcef14b

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

ports/decimal/b2-options.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Copyright 2024 Matt Borland
2+
# Distributed under the Boost Software License, Version 1.0.
3+
# https://www.boost.org/LICENSE_1_0.txt
4+
5+
if(APPLE)
6+
list(APPEND B2_OPTIONS cxxstd=14)
7+
endif()

ports/decimal/portfile.cmake

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2024 Matt Borland
2+
# Distributed under the Boost Software License, Version 1.0.
3+
# https://www.boost.org/LICENSE_1_0.txt
4+
#
5+
# See: https://devblogs.microsoft.com/cppblog/registries-bring-your-own-libraries-to-vcpkg/
6+
7+
vcpkg_from_github(
8+
OUT_SOURCE_PATH SOURCE_PATH
9+
REPO cppalliance/decimal
10+
REF v1.0.0
11+
SHA512 73043ea9514b747e519a5365ae57d9c1516d5f55784779d056d7db7266fd68328cd394e144db28125563c898b1d3acb6a4b47588ff319edefc84d35567a40b52
12+
HEAD_REF master
13+
)
14+
15+
file(COPY "${SOURCE_PATH}/include" DESTINATION "${CURRENT_PACKAGES_DIR}")
16+
file(COPY "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

ports/decimal/vcpkg.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "decimal",
3+
"version": "1.0.0",
4+
"description": "A C++14 implementation of IEEE 754 decimal floating point numbers",
5+
"homepage": "https://github.com/cppalliance/decimal",
6+
"dependencies": [
7+
{
8+
"name": "boost-vcpkg-helpers",
9+
"version>=": "1.81.0"
10+
},
11+
{
12+
"name": "vcpkg-cmake",
13+
"host": true
14+
}
15+
]
16+
}

0 commit comments

Comments
 (0)