diff options
| author | Jonathan Hale <Squareys@googlemail.com> | 2020-07-14 17:38:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-14 08:38:18 -0700 |
| commit | 5e40afca0d7286a9a7d742822cc2a1179a9e63fc (patch) | |
| tree | 4e83343034a70f029a180a78d9fbab3971c222ba /ports/meshoptimizer | |
| parent | 9891a8f2132aa18cdc6f96862ee5406f2d901b0e (diff) | |
| download | vcpkg-5e40afca0d7286a9a7d742822cc2a1179a9e63fc.tar.gz vcpkg-5e40afca0d7286a9a7d742822cc2a1179a9e63fc.zip | |
[corrade,magnum,*-plugins,*-extras,*-integration] Update to v2020.06 (#12211)
* [magnum] Improve maintainability of feature to cmake flag conversion
* [magnum] Ignore features not supported on current platform
Allows `vcpkg install magnum[*]` on any platform.
Signed-off-by: Squareys <squareys@googlemail.com>
* [magnum] Add cglcontext and windowlesscglapplication features
* docs: Update valid VCPKG_CMAKE_SYSTEM_NAME values
Signed-off-by: Squareys <squareys@googlemail.com>
* [magnum-plugins] Replace deprecated basisu with archive download
Signed-off-by: Squareys <squareys@googlemail.com>
* [magnum-plugins] Add meshoptimizersceneconverter feature
Signed-off-by: Squareys <squareys@googlemail.com>
* [magnum-plugins] Also use vcpkg_check_features
Analog to magnum port.
Signed-off-by: Squareys <squareys@googlemail.com>
* [corrade,magnum,*-plugins,*-extras,*-integration] Update to v2020.06
Signed-off-by: Squareys <squareys@googlemail.com>
* [meshoptimizer] Add initial port
Signed-off-by: Squareys <squareys@googlemail.com>
* [magnum-plugins] Replace meshoptimizer download with feature dependency
Signed-off-by: Squareys <squareys@googlemail.com>
* [corrade,magnum-*] Fix license installation command
Signed-off-by: Squareys <squareys@googlemail.com>
* [meshoptimizer] Use vcpkg_fixup_cmake_targets
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Diffstat (limited to 'ports/meshoptimizer')
| -rw-r--r-- | ports/meshoptimizer/CONTROL | 5 | ||||
| -rw-r--r-- | ports/meshoptimizer/portfile.cmake | 29 |
2 files changed, 34 insertions, 0 deletions
diff --git a/ports/meshoptimizer/CONTROL b/ports/meshoptimizer/CONTROL new file mode 100644 index 000000000..320908e70 --- /dev/null +++ b/ports/meshoptimizer/CONTROL @@ -0,0 +1,5 @@ +Source: meshoptimizer +Version: 0.14 +Port-Version: 1 +Homepage: https://github.com/zeux/meshoptimizer +Description: Mesh optimization library that makes meshes smaller and faster to render diff --git a/ports/meshoptimizer/portfile.cmake b/ports/meshoptimizer/portfile.cmake new file mode 100644 index 000000000..e46b17460 --- /dev/null +++ b/ports/meshoptimizer/portfile.cmake @@ -0,0 +1,29 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO zeux/meshoptimizer + REF v0.14 + SHA512 303b3bf1bed7cba8f89bce1c2782e3718fc8f4ec01f7ffd64f5ca23406130097f07d234b142916b16fe586db97c7deaa0ae9135b4e558543cc1664e7db85de67 + HEAD_REF master +) + +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED_LIBS) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DMESHOPT_BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} +) + +vcpkg_install_cmake() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) + +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/meshoptimizer) + +# Handle copyright +file(INSTALL ${SOURCE_PATH}/LICENSE.md + DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} + RENAME copyright) + +vcpkg_copy_pdbs() |
