[openfbx] Miniz dep was removed in latest version and replaced by libdeflate (#42694)

Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
This commit is contained in:
Eviral 2024-12-19 22:14:06 +01:00 committed by GitHub
parent 5a1b13ca83
commit 8e78590ad7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 13 additions and 6 deletions

View File

@ -6,10 +6,11 @@ set(CMAKE_CXX_STANDARD 11)
include(GNUInstallDirs) include(GNUInstallDirs)
find_package(miniz REQUIRED) find_package(libdeflate REQUIRED)
add_library(openfbx src/ofbx.cpp) add_library(openfbx src/ofbx.cpp)
target_link_libraries(openfbx PRIVATE miniz::miniz) target_link_libraries(openfbx PRIVATE $<IF:$<TARGET_EXISTS:libdeflate::libdeflate_shared>,libdeflate::libdeflate_shared,libdeflate::libdeflate_static>)
target_include_directories(openfbx target_include_directories(openfbx
PUBLIC PUBLIC

View File

@ -1,8 +1,8 @@
@PACKAGE_INIT@ @PACKAGE_INIT@
include(CMakeFindDependencyMacro) include(CMakeFindDependencyMacro)
find_dependency(miniz) find_dependency(libdeflate)
include("${CMAKE_CURRENT_LIST_DIR}/unofficial-openfbxTargets.cmake") include("${CMAKE_CURRENT_LIST_DIR}/unofficial-openfbxTargets.cmake")
check_required_components(miniz) check_required_components(libdeflate)

View File

@ -1,11 +1,12 @@
{ {
"name": "openfbx", "name": "openfbx",
"version-date": "2024-05-08", "version-date": "2024-05-08",
"port-version": 1,
"description": "Lightweight open source FBX importer", "description": "Lightweight open source FBX importer",
"homepage": "https://github.com/nem0/OpenFBX", "homepage": "https://github.com/nem0/OpenFBX",
"license": "MIT", "license": "MIT",
"dependencies": [ "dependencies": [
"miniz", "libdeflate",
{ {
"name": "vcpkg-cmake", "name": "vcpkg-cmake",
"host": true "host": true

View File

@ -6694,7 +6694,7 @@
}, },
"openfbx": { "openfbx": {
"baseline": "2024-05-08", "baseline": "2024-05-08",
"port-version": 0 "port-version": 1
}, },
"openfx": { "openfx": {
"baseline": "1.4", "baseline": "1.4",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "91f58df63150443bd8e644f319361162031b88c7",
"version-date": "2024-05-08",
"port-version": 1
},
{ {
"git-tree": "a8cefcba9bae878776bff95c9f078ffa58d5f15a", "git-tree": "a8cefcba9bae878776bff95c9f078ffa58d5f15a",
"version-date": "2024-05-08", "version-date": "2024-05-08",