diff options
| author | DanielDelaporus <62656340+DanielDelaporus@users.noreply.github.com> | 2021-07-28 00:50:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-27 15:50:29 -0700 |
| commit | c8441af7e0e7b7522c4d1261ab435385df2a1181 (patch) | |
| tree | 3bc9e366c743e7b3d08389a0fcfecc8b82abb996 | |
| parent | db4d9760aaebc8445308c8d3a425cc01bb47c459 (diff) | |
| download | vcpkg-c8441af7e0e7b7522c4d1261ab435385df2a1181.tar.gz vcpkg-c8441af7e0e7b7522c4d1261ab435385df2a1181.zip | |
[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>
| -rw-r--r-- | ports/alembic/CONTROL | 6 | ||||
| -rw-r--r-- | ports/alembic/portfile.cmake | 42 | ||||
| -rw-r--r-- | ports/alembic/vcpkg.json | 12 | ||||
| -rw-r--r-- | versions/a-/alembic.json | 5 | ||||
| -rw-r--r-- | versions/baseline.json | 2 |
5 files changed, 43 insertions, 24 deletions
diff --git a/ports/alembic/CONTROL b/ports/alembic/CONTROL deleted file mode 100644 index 333445866..000000000 --- a/ports/alembic/CONTROL +++ /dev/null @@ -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 diff --git a/ports/alembic/portfile.cmake b/ports/alembic/portfile.cmake index 60199e30c..dd8a3100e 100644 --- a/ports/alembic/portfile.cmake +++ b/ports/alembic/portfile.cmake @@ -45,23 +45,31 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) if(VCPKG_TARGET_IS_WINDOWS) - file(GLOB EXE ${CURRENT_PACKAGES_DIR}/bin/*.exe) - file(GLOB DEBUG_EXE ${CURRENT_PACKAGES_DIR}/debug/bin/*.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}/debug/lib/Alembic.dll ${CURRENT_PACKAGES_DIR}/debug/bin/Alembic.dll) - - file(READ ${CURRENT_PACKAGES_DIR}/share/${PORT}/AlembicTargets-debug.cmake DEBUG_CONFIG) - string(REPLACE "\${_IMPORT_PREFIX}/debug/lib/Alembic.dll" - "\${_IMPORT_PREFIX}/debug/bin/Alembic.dll" DEBUG_CONFIG "${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) - 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}") + + if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release") + + file(GLOB EXE ${CURRENT_PACKAGES_DIR}/bin/*.exe) + file(REMOVE ${EXE}) + file(RENAME ${CURRENT_PACKAGES_DIR}/lib/Alembic.dll ${CURRENT_PACKAGES_DIR}/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) + string(REPLACE "\${_IMPORT_PREFIX}/debug/lib/Alembic.dll" + "\${_IMPORT_PREFIX}/debug/bin/Alembic.dll" DEBUG_CONFIG "${DEBUG_CONFIG}") + file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/AlembicTargets-debug.cmake "${DEBUG_CONFIG}") + + endif() + else() file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin) diff --git a/ports/alembic/vcpkg.json b/ports/alembic/vcpkg.json new file mode 100644 index 000000000..ca8d213ba --- /dev/null +++ b/ports/alembic/vcpkg.json @@ -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" + ] +} diff --git a/versions/a-/alembic.json b/versions/a-/alembic.json index c35cbf3e8..3528cffd2 100644 --- a/versions/a-/alembic.json +++ b/versions/a-/alembic.json @@ -1,6 +1,11 @@ { "versions": [ { + "git-tree": "058a9ce893dbaf6ad6d2743b47a9c633eff3798a", + "version": "1.7.16", + "port-version": 1 + }, + { "git-tree": "41cf27d8f6792056c456e4640f20f13a016db205", "version-string": "1.7.16", "port-version": 0 diff --git a/versions/baseline.json b/versions/baseline.json index 5ccb76584..183d12ab0 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -50,7 +50,7 @@ }, "alembic": { "baseline": "1.7.16", - "port-version": 0 + "port-version": 1 }, "aliyun-oss-c-sdk": { "baseline": "3.10.0", |
