mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 12:35:37 +08:00
[assimp] Fix cmake config name and add cmake version (#14554)
* [assimp] Fix cmake cofig name and add cmake version * [ogre] Update 'Assimp' to 'assimp
This commit is contained in:
parent
3be0fec092
commit
0b4db02b9b
@ -1,6 +1,6 @@
|
|||||||
Source: assimp
|
Source: assimp
|
||||||
Version: 5.0.1
|
Version: 5.0.1
|
||||||
Port-Version: 3
|
Port-Version: 4
|
||||||
Homepage: https://github.com/assimp/assimp
|
Homepage: https://github.com/assimp/assimp
|
||||||
Description: The Open Asset import library
|
Description: The Open Asset import library
|
||||||
Build-Depends: zlib, rapidjson, minizip, stb, kubazip, irrlicht, polyclipping, utfcpp, poly2tri
|
Build-Depends: zlib, rapidjson, minizip, stb, kubazip, irrlicht, polyclipping, utfcpp, poly2tri
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,82 +1,61 @@
|
|||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt
|
||||||
index 453fdff..3a02956 100644
|
index f5553e5..5cffa0c 100644
|
||||||
--- a/CMakeLists.txt
|
--- a/code/CMakeLists.txt
|
||||||
+++ b/CMakeLists.txt
|
+++ b/code/CMakeLists.txt
|
||||||
@@ -132,7 +132,6 @@ OPTION ( IGNORE_GIT_HASH
|
@@ -862,7 +862,7 @@ SET( Extra_SRCS
|
||||||
|
SOURCE_GROUP( Extra FILES ${Extra_SRCS})
|
||||||
find_package(Stb REQUIRED)
|
|
||||||
include_directories(${Stb_INCLUDE_DIR})
|
# irrXML
|
||||||
-find_package(irrXML CONFIG REQUIRED)
|
- find_package(irrXML CONFIG REQUIRED)
|
||||||
find_package(utf8cpp CONFIG REQUIRED)
|
+ find_package(irrlicht CONFIG REQUIRED)
|
||||||
link_libraries(utf8cpp)
|
|
||||||
find_package(RapidJSON CONFIG REQUIRED)
|
# polyclipping
|
||||||
@@ -388,7 +387,7 @@ ENDIF( BUILD_DOCS )
|
find_package(polyclipping CONFIG REQUIRED)
|
||||||
|
@@ -1033,7 +1033,7 @@ TARGET_INCLUDE_DIRECTORIES ( assimp PUBLIC
|
||||||
# Look for system installed irrXML
|
|
||||||
IF ( SYSTEM_IRRXML )
|
TARGET_LINK_LIBRARIES(assimp
|
||||||
- FIND_PACKAGE( irrXML REQUIRED )
|
polyclipping::polyclipping
|
||||||
+ FIND_PACKAGE( irrlicht CONFIG REQUIRED )
|
- irrXML::irrXML
|
||||||
ENDIF( SYSTEM_IRRXML )
|
+ Irrlicht
|
||||||
|
minizip::minizip
|
||||||
# Search for external dependencies, and build them from source if not found
|
ZLIB::ZLIB
|
||||||
diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt
|
kubazip::kubazip
|
||||||
index f5553e5..5cffa0c 100644
|
diff --git a/code/X3D/FIReader.cpp b/code/X3D/FIReader.cpp
|
||||||
--- a/code/CMakeLists.txt
|
index 525a084..0cbca48 100644
|
||||||
+++ b/code/CMakeLists.txt
|
--- a/code/X3D/FIReader.cpp
|
||||||
@@ -862,7 +862,7 @@ SET( Extra_SRCS
|
+++ b/code/X3D/FIReader.cpp
|
||||||
SOURCE_GROUP( Extra FILES ${Extra_SRCS})
|
@@ -654,8 +654,8 @@ public:
|
||||||
|
return currentNodeType;
|
||||||
# irrXML
|
}
|
||||||
- find_package(irrXML CONFIG REQUIRED)
|
|
||||||
+ find_package(irrlicht CONFIG REQUIRED)
|
- virtual int getAttributeCount() const /*override*/ {
|
||||||
|
- return static_cast<int>(attributes.size());
|
||||||
# polyclipping
|
+ virtual unsigned int getAttributeCount() const /*override*/ {
|
||||||
find_package(polyclipping CONFIG REQUIRED)
|
+ return static_cast<unsigned int>(attributes.size());
|
||||||
@@ -1033,7 +1033,7 @@ TARGET_INCLUDE_DIRECTORIES ( assimp PUBLIC
|
}
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(assimp
|
virtual const char* getAttributeName(int idx) const /*override*/ {
|
||||||
polyclipping::polyclipping
|
@@ -1733,7 +1733,7 @@ public:
|
||||||
- irrXML::irrXML
|
return reader->getNodeType();
|
||||||
+ Irrlicht
|
}
|
||||||
minizip::minizip
|
|
||||||
ZLIB::ZLIB
|
- virtual int getAttributeCount() const /*override*/ {
|
||||||
kubazip::kubazip
|
+ virtual unsigned int getAttributeCount() const /*override*/ {
|
||||||
diff --git a/code/X3D/FIReader.cpp b/code/X3D/FIReader.cpp
|
return reader->getAttributeCount();
|
||||||
index 525a084..0cbca48 100644
|
}
|
||||||
--- a/code/X3D/FIReader.cpp
|
|
||||||
+++ b/code/X3D/FIReader.cpp
|
diff --git a/include/assimp/irrXMLWrapper.h b/include/assimp/irrXMLWrapper.h
|
||||||
@@ -654,8 +654,8 @@ public:
|
index 77cfd5e..ba584a0 100644
|
||||||
return currentNodeType;
|
--- a/include/assimp/irrXMLWrapper.h
|
||||||
}
|
+++ b/include/assimp/irrXMLWrapper.h
|
||||||
|
@@ -133,8 +133,8 @@ public:
|
||||||
- virtual int getAttributeCount() const /*override*/ {
|
|
||||||
- return static_cast<int>(attributes.size());
|
// ----------------------------------------------------------------------------------
|
||||||
+ virtual unsigned int getAttributeCount() const /*override*/ {
|
//! Returns size of file in bytes
|
||||||
+ return static_cast<unsigned int>(attributes.size());
|
- virtual int getSize() {
|
||||||
}
|
- return (int)data.size();
|
||||||
|
+ virtual long getSize() const override {
|
||||||
virtual const char* getAttributeName(int idx) const /*override*/ {
|
+ return (long)data.size();
|
||||||
@@ -1733,7 +1733,7 @@ public:
|
}
|
||||||
return reader->getNodeType();
|
|
||||||
}
|
private:
|
||||||
|
|
||||||
- virtual int getAttributeCount() const /*override*/ {
|
|
||||||
+ virtual unsigned int getAttributeCount() const /*override*/ {
|
|
||||||
return reader->getAttributeCount();
|
|
||||||
}
|
|
||||||
|
|
||||||
diff --git a/include/assimp/irrXMLWrapper.h b/include/assimp/irrXMLWrapper.h
|
|
||||||
index 77cfd5e..ba584a0 100644
|
|
||||||
--- a/include/assimp/irrXMLWrapper.h
|
|
||||||
+++ b/include/assimp/irrXMLWrapper.h
|
|
||||||
@@ -133,8 +133,8 @@ public:
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------------
|
|
||||||
//! Returns size of file in bytes
|
|
||||||
- virtual int getSize() {
|
|
||||||
- return (int)data.size();
|
|
||||||
+ virtual long getSize() const override {
|
|
||||||
+ return (long)data.size();
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
|
||||||
|
@ -72,8 +72,8 @@ vcpkg_fixup_cmake_targets()
|
|||||||
vcpkg_fixup_pkgconfig() # Probably requires more fixing for static builds. See qt5-3d and the config changes below
|
vcpkg_fixup_pkgconfig() # Probably requires more fixing for static builds. See qt5-3d and the config changes below
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
|
|
||||||
file(READ ${CURRENT_PACKAGES_DIR}/share/assimp/AssimpConfig.cmake ASSIMP_CONFIG)
|
file(READ ${CURRENT_PACKAGES_DIR}/share/assimp/assimpConfig.cmake ASSIMP_CONFIG)
|
||||||
file(WRITE ${CURRENT_PACKAGES_DIR}/share/assimp/AssimpConfig.cmake "
|
file(WRITE ${CURRENT_PACKAGES_DIR}/share/assimp/assimpConfig.cmake "
|
||||||
include(CMakeFindDependencyMacro)
|
include(CMakeFindDependencyMacro)
|
||||||
find_dependency(ZLIB)
|
find_dependency(ZLIB)
|
||||||
find_dependency(irrlicht CONFIG)
|
find_dependency(irrlicht CONFIG)
|
||||||
|
@ -21,7 +21,7 @@ index 2ae0b66..e6c55cd 100644
|
|||||||
|
|
||||||
# Assimp
|
# Assimp
|
||||||
-find_package(ASSIMP QUIET)
|
-find_package(ASSIMP QUIET)
|
||||||
+find_package(Assimp CONFIG REQUIRED)
|
+find_package(assimp CONFIG REQUIRED)
|
||||||
macro_log_feature(ASSIMP_FOUND "Assimp" "Needed for the AssimpLoader Plugin" "https://www.assimp.org/" FALSE "" "")
|
macro_log_feature(ASSIMP_FOUND "Assimp" "Needed for the AssimpLoader Plugin" "https://www.assimp.org/" FALSE "" "")
|
||||||
|
|
||||||
if(ASSIMP_FOUND)
|
if(ASSIMP_FOUND)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ogre",
|
"name": "ogre",
|
||||||
"version-string": "1.12.9",
|
"version-string": "1.12.9",
|
||||||
"port-version": 2,
|
"port-version": 3,
|
||||||
"description": "3D Object-Oriented Graphics Rendering Engine",
|
"description": "3D Object-Oriented Graphics Rendering Engine",
|
||||||
"homepage": "https://github.com/OGRECave/ogre",
|
"homepage": "https://github.com/OGRECave/ogre",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
|
Loading…
Reference in New Issue
Block a user