aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/tinyply
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/tinyply
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/tinyply')
-rw-r--r--vcpkg/ports/tinyply/portfile.cmake32
-rw-r--r--vcpkg/ports/tinyply/vcpkg.json17
2 files changed, 49 insertions, 0 deletions
diff --git a/vcpkg/ports/tinyply/portfile.cmake b/vcpkg/ports/tinyply/portfile.cmake
new file mode 100644
index 0000000..4c01200
--- /dev/null
+++ b/vcpkg/ports/tinyply/portfile.cmake
@@ -0,0 +1,32 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ddiakopoulos/tinyply
+ REF 40aa4a0ae9e9c203e11893f78b8bcaf8a50e65f0 # 2.3.4
+ SHA512 c99bdfcfbcbb13af2e662763f15771d7d5905267fb72ad93b40aad83785e8fbb48feb2359ce2542fe838fcb22a42f8a65cebd9c22963a383638be1ef0100269a
+ HEAD_REF master
+)
+
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" TINYPLY_BUILD_SHARED)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DSHARED_LIB=${TINYPLY_BUILD_SHARED}
+ -DBUILD_TESTS=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+# License
+file(READ "${SOURCE_PATH}/readme.md" readme_contents)
+string(FIND "${readme_contents}" "## License" license_pos)
+string(SUBSTRING "${readme_contents}" ${license_pos} -1 license_contents)
+file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright "${license_contents}")
+
+vcpkg_fixup_pkgconfig()
diff --git a/vcpkg/ports/tinyply/vcpkg.json b/vcpkg/ports/tinyply/vcpkg.json
new file mode 100644
index 0000000..3c93b66
--- /dev/null
+++ b/vcpkg/ports/tinyply/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "tinyply",
+ "version": "2.3.4",
+ "description": "C++11 ply 3d mesh format importer & exporter",
+ "homepage": "https://github.com/ddiakopoulos/tinyply",
+ "license": "BSD-2-Clause",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}