mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 02:53:02 +08:00
[alembic] Enable release only and debug only build on alembic port (#18963)
* [alembic] Enable release only and debug only build on alembic port * Fix version database. Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
parent
db4d9760aa
commit
c8441af7e0
@ -1,6 +0,0 @@
|
|||||||
Source: alembic
|
|
||||||
Version: 1.7.16
|
|
||||||
Build-Depends: ilmbase, hdf5
|
|
||||||
Description: Alembic is an open framework for storing and sharing scene data that includes a C++ library, a file format, and client plugins and applications.
|
|
||||||
Homepage: https://alembic.io/
|
|
||||||
Supports: windows & !arm & !uwp & !static
|
|
@ -45,23 +45,31 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||||
|
|
||||||
if(VCPKG_TARGET_IS_WINDOWS)
|
if(VCPKG_TARGET_IS_WINDOWS)
|
||||||
|
|
||||||
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
||||||
|
|
||||||
file(GLOB EXE ${CURRENT_PACKAGES_DIR}/bin/*.exe)
|
file(GLOB EXE ${CURRENT_PACKAGES_DIR}/bin/*.exe)
|
||||||
file(GLOB DEBUG_EXE ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe)
|
|
||||||
file(REMOVE ${EXE})
|
file(REMOVE ${EXE})
|
||||||
file(REMOVE ${DEBUG_EXE})
|
|
||||||
|
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/Alembic.dll ${CURRENT_PACKAGES_DIR}/bin/Alembic.dll)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/Alembic.dll ${CURRENT_PACKAGES_DIR}/bin/Alembic.dll)
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/Alembic.dll ${CURRENT_PACKAGES_DIR}/debug/bin/Alembic.dll)
|
file(READ ${CURRENT_PACKAGES_DIR}/share/${PORT}/AlembicTargets-release.cmake RELEASE_CONFIG)
|
||||||
|
string(REPLACE "\${_IMPORT_PREFIX}/lib/Alembic.dll"
|
||||||
|
"\${_IMPORT_PREFIX}/bin/Alembic.dll" RELEASE_CONFIG "${RELEASE_CONFIG}")
|
||||||
|
file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/AlembicTargets-release.cmake "${RELEASE_CONFIG}")
|
||||||
|
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
||||||
|
|
||||||
|
file(GLOB DEBUG_EXE ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe)
|
||||||
|
file(REMOVE ${DEBUG_EXE})
|
||||||
|
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/Alembic.dll ${CURRENT_PACKAGES_DIR}/debug/bin/Alembic.dll)
|
||||||
file(READ ${CURRENT_PACKAGES_DIR}/share/${PORT}/AlembicTargets-debug.cmake DEBUG_CONFIG)
|
file(READ ${CURRENT_PACKAGES_DIR}/share/${PORT}/AlembicTargets-debug.cmake DEBUG_CONFIG)
|
||||||
string(REPLACE "\${_IMPORT_PREFIX}/debug/lib/Alembic.dll"
|
string(REPLACE "\${_IMPORT_PREFIX}/debug/lib/Alembic.dll"
|
||||||
"\${_IMPORT_PREFIX}/debug/bin/Alembic.dll" DEBUG_CONFIG "${DEBUG_CONFIG}")
|
"\${_IMPORT_PREFIX}/debug/bin/Alembic.dll" DEBUG_CONFIG "${DEBUG_CONFIG}")
|
||||||
file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/AlembicTargets-debug.cmake "${DEBUG_CONFIG}")
|
file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/AlembicTargets-debug.cmake "${DEBUG_CONFIG}")
|
||||||
|
|
||||||
file(READ ${CURRENT_PACKAGES_DIR}/share/${PORT}/AlembicTargets-release.cmake RELEASE_CONFIG)
|
endif()
|
||||||
string(REPLACE "\${_IMPORT_PREFIX}/lib/Alembic.dll"
|
|
||||||
"\${_IMPORT_PREFIX}/bin/Alembic.dll" RELEASE_CONFIG "${RELEASE_CONFIG}")
|
|
||||||
file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/AlembicTargets-release.cmake "${RELEASE_CONFIG}")
|
|
||||||
else()
|
else()
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||||
|
12
ports/alembic/vcpkg.json
Normal file
12
ports/alembic/vcpkg.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "alembic",
|
||||||
|
"version": "1.7.16",
|
||||||
|
"port-version": 1,
|
||||||
|
"description": "Alembic is an open framework for storing and sharing scene data that includes a C++ library, a file format, and client plugins and applications.",
|
||||||
|
"homepage": "https://alembic.io/",
|
||||||
|
"supports": "windows & !arm & !uwp & !static",
|
||||||
|
"dependencies": [
|
||||||
|
"hdf5",
|
||||||
|
"ilmbase"
|
||||||
|
]
|
||||||
|
}
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "058a9ce893dbaf6ad6d2743b47a9c633eff3798a",
|
||||||
|
"version": "1.7.16",
|
||||||
|
"port-version": 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "41cf27d8f6792056c456e4640f20f13a016db205",
|
"git-tree": "41cf27d8f6792056c456e4640f20f13a016db205",
|
||||||
"version-string": "1.7.16",
|
"version-string": "1.7.16",
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
},
|
},
|
||||||
"alembic": {
|
"alembic": {
|
||||||
"baseline": "1.7.16",
|
"baseline": "1.7.16",
|
||||||
"port-version": 0
|
"port-version": 1
|
||||||
},
|
},
|
||||||
"aliyun-oss-c-sdk": {
|
"aliyun-oss-c-sdk": {
|
||||||
"baseline": "3.10.0",
|
"baseline": "3.10.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user