Skip to content

Commit e6d0f32

Browse files
committed
feat: add new port kcenon-common-system
[kcenon-common-system] new port
1 parent 4ebb301 commit e6d0f32

5 files changed

Lines changed: 80 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# kcenon-common-system portfile
2+
# High-performance C++20 foundation library (header-only)
3+
4+
vcpkg_from_github(
5+
OUT_SOURCE_PATH SOURCE_PATH
6+
REPO kcenon/common_system
7+
REF "v${VERSION}"
8+
SHA512 7385ba3a073fea06604f71a7ffc016425408c768444cec2ec897537411926a7e1fad99f7215e6724b3668a6e227f0716dbdcdda462764f5c4e52709087751e26
9+
HEAD_REF main
10+
)
11+
12+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
13+
FEATURES
14+
yaml BUILD_WITH_YAML_CPP
15+
)
16+
17+
vcpkg_cmake_configure(
18+
SOURCE_PATH "${SOURCE_PATH}"
19+
OPTIONS
20+
-DCOMMON_BUILD_TESTS=OFF
21+
-DCOMMON_BUILD_INTEGRATION_TESTS=OFF
22+
-DCOMMON_BUILD_EXAMPLES=OFF
23+
-DCOMMON_BUILD_BENCHMARKS=OFF
24+
-DCOMMON_BUILD_DOCS=OFF
25+
${FEATURE_OPTIONS}
26+
)
27+
28+
vcpkg_cmake_install()
29+
30+
vcpkg_cmake_config_fixup(
31+
PACKAGE_NAME common_system
32+
CONFIG_PATH lib/cmake/common_system
33+
)
34+
35+
# Header-only library - remove all debug content and empty lib directories
36+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
37+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
38+
39+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

ports/kcenon-common-system/usage

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
The package kcenon-common-system provides CMake targets:
2+
3+
find_package(common_system CONFIG REQUIRED)
4+
target_link_libraries(main PRIVATE kcenon::common_system)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "kcenon-common-system",
3+
"version-semver": "0.2.0",
4+
"description": "High-performance C++20 foundation library providing Result<T> pattern, interfaces, and common utilities",
5+
"homepage": "https://github.com/kcenon/common_system",
6+
"license": "BSD-3-Clause",
7+
"supports": "!(uwp | xbox)",
8+
"dependencies": [
9+
{
10+
"name": "vcpkg-cmake",
11+
"host": true
12+
},
13+
{
14+
"name": "vcpkg-cmake-config",
15+
"host": true
16+
}
17+
],
18+
"features": {
19+
"yaml": {
20+
"description": "YAML configuration file support via yaml-cpp",
21+
"dependencies": ["yaml-cpp"]
22+
}
23+
}
24+
}

versions/baseline.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4220,6 +4220,10 @@
42204220
"baseline": "6.25.0",
42214221
"port-version": 1
42224222
},
4223+
"kcenon-common-system": {
4224+
"baseline": "0.2.0",
4225+
"port-version": 0
4226+
},
42234227
"kcodecs": {
42244228
"baseline": "6.25.0",
42254229
"port-version": 1
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": "6a7a5c8035eeabf95f6b09ddee4b323afa2035a8",
5+
"version-semver": "0.2.0",
6+
"port-version": 0
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)