mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 02:48:59 +08:00
[convectionkernels] Add port. (#25148)
* [cvtt] Add port. * [cvtt] Modified to unofficial-cvtt * Apply suggestions from code review Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * [cvtt] Renamed to convectionkernels Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
This commit is contained in:
parent
062f92c92e
commit
58196ee519
30
ports/convectionkernels/CMakeLists.txt
Normal file
30
ports/convectionkernels/CMakeLists.txt
Normal file
@ -0,0 +1,30 @@
|
||||
cmake_minimum_required(VERSION 3.3.0)
|
||||
|
||||
project( convectionkernels )
|
||||
|
||||
file(GLOB SRC_FILES *.cpp)
|
||||
file(GLOB HDR_FILES *.h)
|
||||
add_library( ${PROJECT_NAME}
|
||||
STATIC
|
||||
${HDR_FILES}
|
||||
${SRC_FILES}
|
||||
)
|
||||
set_property( TARGET ${PROJECT_NAME}
|
||||
PROPERTY PUBLIC_HEADER ${HDR_FILES}
|
||||
)
|
||||
target_include_directories( ${PROJECT_NAME}
|
||||
PRIVATE ${CMAKE_CURRENT_LIST_DIR}
|
||||
INTERFACE $<INSTALL_INTERFACE:include>
|
||||
)
|
||||
install( TARGETS ${PROJECT_NAME}
|
||||
EXPORT unofficial-convectionkernels-config
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
PUBLIC_HEADER DESTINATION include/convectionkernels
|
||||
)
|
||||
install( EXPORT unofficial-convectionkernels-config
|
||||
FILE unofficial-convectionkernels-config.cmake
|
||||
NAMESPACE unofficial::convectionkernels::
|
||||
DESTINATION share/unofficial-convectionkernels
|
||||
)
|
21
ports/convectionkernels/portfile.cmake
Normal file
21
ports/convectionkernels/portfile.cmake
Normal file
@ -0,0 +1,21 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO elasota/ConvectionKernels
|
||||
REF dc2dbbe0ae2cf2be06ef56d1021e2222a56c7fe2
|
||||
SHA512 2bf3aff1acb7b2365b882b4c1274ea8bcb9aea3015b5009e0ec50279122ecc623074d0f4fa04ddf8cd457e1f6868075a773bf8a2fa5b4fa9e2fd51d0a76d2560
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-convectionkernels)
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
17
ports/convectionkernels/vcpkg.json
Normal file
17
ports/convectionkernels/vcpkg.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "convectionkernels",
|
||||
"version-date": "2022-06-08",
|
||||
"description": "Fast, high-quality texture compression library for many formats, also known as cvtt",
|
||||
"homepage": "https://github.com/elasota/ConvectionKernels",
|
||||
"license": null,
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
@ -1548,6 +1548,10 @@
|
||||
"baseline": "4.1.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"convectionkernels": {
|
||||
"baseline": "2022-06-08",
|
||||
"port-version": 0
|
||||
},
|
||||
"coolprop": {
|
||||
"baseline": "6.4.1",
|
||||
"port-version": 1
|
||||
|
9
versions/c-/convectionkernels.json
Normal file
9
versions/c-/convectionkernels.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "cf21fe054d62c4602edd8566bb5d2f92b1bc1734",
|
||||
"version-date": "2022-06-08",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user