Skip to content

Commit acd9ee2

Browse files
sapdragonLilyWangLL
authored andcommitted
[syscalls-cpp] Add new port (microsoft#45996)
Co-authored-by: Lily Wang <[email protected]>
1 parent 5dede96 commit acd9ee2

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed

ports/syscalls-cpp/portfile.cmake

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH SOURCE_PATH
3+
REPO sapdragon/syscalls-cpp
4+
REF "v${VERSION}"
5+
SHA512 47709c046b1b8ce629c8aa879164b49c918150fe5c1f6e3349b12ba1ffceb99557ee2357ec324e67e66c4afb80e11067eb73e7c4aa96776515f63cf7cef2aa94
6+
HEAD_REF main
7+
)
8+
9+
vcpkg_cmake_configure(
10+
SOURCE_PATH "${SOURCE_PATH}"
11+
OPTIONS
12+
-DCMAKE_INSTALL_INCLUDEDIR=include/syscalls-cpp
13+
)
14+
15+
vcpkg_cmake_install()
16+
17+
vcpkg_cmake_config_fixup(PACKAGE_NAME syscalls-cpp)
18+
19+
vcpkg_fixup_pkgconfig()
20+
21+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
22+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")

ports/syscalls-cpp/vcpkg.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "syscalls-cpp",
3+
"version": "1.1.1",
4+
"description": "A modern C++20 header-only library for advanced direct system call invocation.",
5+
"homepage": "https://github.com/sapdragon/syscalls-cpp",
6+
"license": "MIT",
7+
"supports": "windows & (x64 | x86)",
8+
"dependencies": [
9+
{
10+
"name": "vcpkg-cmake",
11+
"host": true
12+
},
13+
{
14+
"name": "vcpkg-cmake-config",
15+
"host": true
16+
}
17+
]
18+
}

versions/baseline.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9224,6 +9224,10 @@
92249224
"baseline": "0.11.2",
92259225
"port-version": 2
92269226
},
9227+
"syscalls-cpp": {
9228+
"baseline": "1.1.1",
9229+
"port-version": 0
9230+
},
92279231
"systemc": {
92289232
"baseline": "3.0.1",
92299233
"port-version": 0

versions/s-/syscalls-cpp.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"versions": [
3+
{
4+
"git-tree": "5a4d576fa20a4efecce6d3b9e0ca6cf3f62921e7",
5+
"version": "1.1.1",
6+
"port-version": 0
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)