mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 03:59:02 +08:00
[cserialport] Add new port (#27233)
* add new port of CSerialPort v4.1.1 * add cserialport version info * modify according to the suggestion * update version info * remove BUILD_SHARED_LIBS set, it is automatically set by vcpkg_cmake_configure * update version info * move copyright to the end * update version info
This commit is contained in:
parent
ce99c947b6
commit
07a149e072
27
ports/cserialport/portfile.cmake
Normal file
27
ports/cserialport/portfile.cmake
Normal file
@ -0,0 +1,27 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO itas109/CSerialPort
|
||||
REF v4.1.1
|
||||
SHA512 4e0b6d5d07ac9f213762a8bf6a90a109ec134b04a8645dc5fc0b89c69a798c857924ee37f13f421b421148bc39bf1ed4f37361e5d1d9f7f51e0faf01757b3927
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DCSERIALPORT_BUILD_EXAMPLES=OFF
|
||||
-DCSERIALPORT_BUILD_TEST=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/CSerialPort)
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
||||
endif()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
18
ports/cserialport/vcpkg.json
Normal file
18
ports/cserialport/vcpkg.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "cserialport",
|
||||
"version": "4.1.1",
|
||||
"description": "c++ lightweight cross-platform serial port library",
|
||||
"homepage": "https://github.com/itas109/CSerialPort",
|
||||
"license": "LGPL-3.0-only",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
@ -1756,6 +1756,10 @@
|
||||
"baseline": "8.6.0",
|
||||
"port-version": 1
|
||||
},
|
||||
"cserialport": {
|
||||
"baseline": "4.1.1",
|
||||
"port-version": 0
|
||||
},
|
||||
"cspice": {
|
||||
"baseline": "67",
|
||||
"port-version": 2
|
||||
|
9
versions/c-/cserialport.json
Normal file
9
versions/c-/cserialport.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "40b712199f0d2fdacdb68dae7bbf03a0bcab7918",
|
||||
"version": "4.1.1",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user