Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[convectionkernels] Add port. #25148

Merged
merged 4 commits into from
Jun 9, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
63 changes: 63 additions & 0 deletions ports/cvtt/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
cmake_minimum_required(VERSION 3.3.0)

project( cvtt )

set( SRC_FILES
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_API.cpp
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_BC6H_IO.cpp
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_BC7_PrioData.cpp
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_BC67.cpp
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_BCCommon.cpp
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_ETC.cpp
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_IndexSelector.cpp
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_S3TC.cpp
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_Util.cpp
)
set( HDR_FILES
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_AggregatedError.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_BC6H_IO.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_BC7_Prio.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_BC7_SingleColor.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_BC67.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_BCCommon.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_EndpointRefiner.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_EndpointSelector.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_ETC.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_ETC1.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_ETC2.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_ETC2_Rounding.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_FakeBT709_Rounding.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_IndexSelector.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_IndexSelectorHDR.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_PackedCovarianceMatrix.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_ParallelMath.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_S3TC.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_S3TC_SingleColor.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_UnfinishedEndpoints.h
${CMAKE_CURRENT_LIST_DIR}/ConvectionKernels_Util.h
)
DragonJoker marked this conversation as resolved.
Show resolved Hide resolved
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-cvtt-config
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
PUBLIC_HEADER DESTINATION include/cvtt
)
install( EXPORT unofficial-cvtt-config
FILE unofficial-cvtt-config.cmake
NAMESPACE unofficial::cvtt::
DESTINATION share/unofficial-cvtt
)
21 changes: 21 additions & 0 deletions ports/cvtt/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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-cvtt)

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
17 changes: 17 additions & 0 deletions ports/cvtt/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "cvtt",
"version-date": "2022-06-08",
"description": "Fast, high-quality texture compression library for many formats ",
DragonJoker marked this conversation as resolved.
Show resolved Hide resolved
"homepage": "https://github.com/elasota/ConvectionKernels",
"license": null,
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1764,6 +1764,10 @@
"baseline": "2.12.0",
"port-version": 2
},
"cvtt": {
"baseline": "2022-06-08",
"port-version": 0
},
"cwalk": {
"baseline": "1.2.6",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/c-/cvtt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "afc83bed7d74230dac216f39068be5f0fbba04a9",
"version-date": "2022-06-08",
"port-version": 0
}
]
}