Skip to content

Commit b5c38e4

Browse files
committed
Add vcpkg support
1 parent 66152d5 commit b5c38e4

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

ports/int128/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/int128/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/int128
10+
REF v1.1.0
11+
SHA512 f184f341b0a6afb83cfed6b1680356f20d6df01fcc9fedd901ecb27e87819f093c1d8acfc14d2a50335e20c5079f36ac6902c531cc96b1c4590d147edacf5e8f
12+
HEAD_REF master
13+
)
14+
15+
file(COPY "${SOURCE_PATH}/include" DESTINATION "${CURRENT_PACKAGES_DIR}")
16+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

ports/int128/vcpkg.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "int128",
3+
"version": "1.1.0",
4+
"description": "Portable and performant 128-bit integers",
5+
"homepage": "https://github.com/cppalliance/int128",
6+
"license": "BSL-1.0",
7+
"dependencies": [
8+
{
9+
"name": "vcpkg-cmake",
10+
"host": true
11+
}
12+
]
13+
}

0 commit comments

Comments
 (0)