Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions ports/yunsmall-usbipdcpp/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO yunsmall/usbipdcpp
REF "v${VERSION}"
SHA512 5888e0485b0018149cd684bb0806fd3b3bd74215d8e30148e17b1b51ee646c81e93b7865edcdd7e00f351d737ed549668e9ba18d995f908764ba84338a96c3be
HEAD_REF main
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
physical-usb-forwarding USBIPDCPP_BUILD_LIBUSB_COMPONENTS
virtual-device USBIPDCPP_BUILD_VIRTUAL_DEVICE
)

vcpkg_find_acquire_program(PKGCONFIG)
set(ENV{PKG_CONFIG} "${PKGCONFIG}")

if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
set(SHARED_OPTION -DUSBIPDCPP_BUILD_SHARED_LIBS=ON)
else()
set(SHARED_OPTION -DUSBIPDCPP_BUILD_SHARED_LIBS=OFF)
endif()

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DUSBIPDCPP_BUILD_EXAMPLES=OFF
-DUSBIPDCPP_BUILD_TESTS=OFF
${SHARED_OPTION}
${FEATURE_OPTIONS}
)
Comment thread
yunsmall marked this conversation as resolved.

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(PACKAGE_NAME usbipdcpp CONFIG_PATH lib/cmake/usbipdcpp)

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
30 changes: 30 additions & 0 deletions ports/yunsmall-usbipdcpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "yunsmall-usbipdcpp",
"version": "1.0.4",
"description": "A C++ library for creating usbip servers",
"homepage": "https://github.com/yunsmall/usbipdcpp",
"license": "LGPL-3.0",

Check notice on line 6 in ports/yunsmall-usbipdcpp/vcpkg.json

View workflow job for this annotation

GitHub Actions / Check

SPDX deprecated license identifier LGPL-3.0. If you feel able to do so, please consider replacing it. Updated license identifiers can be found at https://spdx.org/licenses/.
"dependencies": [
"asio",
"spdlog",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"physical-usb-forwarding": {
"description": "Build components for forwarding physical USB devices",
"dependencies": [
"libusb"
]
},
"virtual-device": {
Comment thread
yunsmall marked this conversation as resolved.
"description": "Build virtual device components for creating software-emulated USB devices"
}
}
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -11188,6 +11188,10 @@
"baseline": "2.7.3",
"port-version": 0
},
"yunsmall-usbipdcpp": {
"baseline": "1.0.4",
"port-version": 0
},
"yyjson": {
"baseline": "0.12.0",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/y-/yunsmall-usbipdcpp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "7510aca742f3a4a48256360139da1791cd53f56e",
"version": "1.0.4",
"port-version": 0
}
]
}
Loading