mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 12:46:19 +08:00
[libsercomm] Adding new port (#21105)
* [libsercomm] Adding new port * [libsercomm] Update portfile to remove deprecated functions * [libsercomm] Addressing comments from pull request - Removing "pic" feature - Removing PREFER_NINJA from vcpkg_cmake_configure * [libsercomm] Running x-add-version
This commit is contained in:
parent
0de4f9feb6
commit
85b31152df
40
ports/libsercomm/portfile.cmake
Normal file
40
ports/libsercomm/portfile.cmake
Normal file
@ -0,0 +1,40 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO ingeniamc/sercomm
|
||||
REF 1.3.2
|
||||
SHA512 f1581f2dfa262ffb1b3aec5a1e6d32493c322c94541fbacc98efff23b3b42b14c9abdcfb063a78b7c54fb1f9d8dbf59d8064099601de2175af6c6d830708324c
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_check_features(
|
||||
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
errdesc WITH_ERRDESC
|
||||
devmon WITH_DEVMON
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
DISABLE_PARALLEL_CONFIGURE
|
||||
OPTIONS
|
||||
${FEATURE_OPTIONS}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
# Fix CMake files
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/sercomm)
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
# Remove includes in debug
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
||||
endif()
|
||||
# Handle copyright
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
||||
# Copy pdb files
|
||||
vcpkg_copy_pdbs()
|
29
ports/libsercomm/vcpkg.json
Normal file
29
ports/libsercomm/vcpkg.json
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "libsercomm",
|
||||
"version": "1.3.2",
|
||||
"description": "Multiplatform serial communications library",
|
||||
"homepage": "https://github.com/ingeniamc/sercomm",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"default-features": [
|
||||
"devmon",
|
||||
"errdesc"
|
||||
],
|
||||
"features": {
|
||||
"devmon": {
|
||||
"description": "When enabled, device listing and monitoring will be supported"
|
||||
},
|
||||
"errdesc": {
|
||||
"description": "When enabled, error details description can be obtained"
|
||||
}
|
||||
}
|
||||
}
|
@ -3820,6 +3820,10 @@
|
||||
"baseline": "2.3.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"libsercomm": {
|
||||
"baseline": "1.3.2",
|
||||
"port-version": 0
|
||||
},
|
||||
"libsigcpp": {
|
||||
"baseline": "3.0.3",
|
||||
"port-version": 1
|
||||
|
9
versions/l-/libsercomm.json
Normal file
9
versions/l-/libsercomm.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "85fa53c8aa1927afa7844c01b646a86de8803c30",
|
||||
"version": "1.3.2",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user