Skip to content

Commit e0899c3

Browse files
committed
[yunsmall-usbipdcpp] New port: A C++ library for creating usbip servers (v1.0.4)
1 parent 12dccca commit e0899c3

4 files changed

Lines changed: 92 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH SOURCE_PATH
3+
REPO yunsmall/usbipdcpp
4+
REF "v${VERSION}"
5+
SHA512 5888e0485b0018149cd684bb0806fd3b3bd74215d8e30148e17b1b51ee646c81e93b7865edcdd7e00f351d737ed549668e9ba18d995f908764ba84338a96c3be
6+
HEAD_REF main
7+
)
8+
9+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
10+
FEATURES
11+
physical-usb-forwarding USBIPDCPP_BUILD_LIBUSB_COMPONENTS
12+
virtual-device USBIPDCPP_BUILD_VIRTUAL_DEVICE
13+
)
14+
15+
vcpkg_find_acquire_program(PKGCONFIG)
16+
set(ENV{PKG_CONFIG} "${PKGCONFIG}")
17+
18+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
19+
set(SHARED_OPTION -DUSBIPDCPP_BUILD_SHARED_LIBS=ON)
20+
else()
21+
set(SHARED_OPTION -DUSBIPDCPP_BUILD_SHARED_LIBS=OFF)
22+
endif()
23+
24+
vcpkg_cmake_configure(
25+
SOURCE_PATH "${SOURCE_PATH}"
26+
OPTIONS
27+
-DUSBIPDCPP_BUILD_EXAMPLES=OFF
28+
-DUSBIPDCPP_BUILD_TESTS=OFF
29+
${SHARED_OPTION}
30+
${FEATURE_OPTIONS}
31+
)
32+
33+
vcpkg_cmake_install()
34+
35+
vcpkg_cmake_config_fixup(PACKAGE_NAME usbipdcpp CONFIG_PATH lib/cmake/usbipdcpp)
36+
37+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
38+
39+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "yunsmall-usbipdcpp",
3+
"version": "1.0.4",
4+
"description": "A C++ library for creating usbip servers",
5+
"homepage": "https://github.com/yunsmall/usbipdcpp",
6+
"license": "LGPL-3.0",
7+
"dependencies": [
8+
"asio",
9+
"spdlog",
10+
{
11+
"name": "vcpkg-cmake",
12+
"host": true
13+
},
14+
{
15+
"name": "vcpkg-cmake-config",
16+
"host": true
17+
}
18+
],
19+
"features": {
20+
"physical-usb-forwarding": {
21+
"description": "Build components for forwarding physical USB devices",
22+
"dependencies": [
23+
"libusb"
24+
]
25+
},
26+
"virtual-device": {
27+
"description": "Build virtual device components for creating software-emulated USB devices"
28+
}
29+
}
30+
}

versions/baseline.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11116,6 +11116,10 @@
1111611116
"baseline": "2.7.3",
1111711117
"port-version": 0
1111811118
},
11119+
"yunsmall-usbipdcpp": {
11120+
"baseline": "1.0.4",
11121+
"port-version": 0
11122+
},
1111911123
"yyjson": {
1112011124
"baseline": "0.12.0",
1112111125
"port-version": 0
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"versions": [
3+
{
4+
"git-tree": "7510aca742f3a4a48256360139da1791cd53f56e",
5+
"version": "1.0.4",
6+
"port-version": 0
7+
},
8+
{
9+
"git-tree": "d4e89c4cd72b9574a4a32bddff8099b2056b7245",
10+
"version": "1.0.2",
11+
"port-version": 0
12+
},
13+
{
14+
"git-tree": "8a0d2335520921f7c9f6061bf461764452153dfd",
15+
"version": "1.0.1",
16+
"port-version": 0
17+
}
18+
]
19+
}

0 commit comments

Comments
 (0)