aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/vsgxchange
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/vsgxchange')
-rw-r--r--vcpkg/ports/vsgxchange/portfile.cmake42
-rw-r--r--vcpkg/ports/vsgxchange/vcpkg.json59
2 files changed, 101 insertions, 0 deletions
diff --git a/vcpkg/ports/vsgxchange/portfile.cmake b/vcpkg/ports/vsgxchange/portfile.cmake
new file mode 100644
index 0000000..3ef81d0
--- /dev/null
+++ b/vcpkg/ports/vsgxchange/portfile.cmake
@@ -0,0 +1,42 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO vsg-dev/vsgXchange
+ REF "v${VERSION}"
+ SHA512 674a5ab3429009b99e465b5f063714b410d4cfc47e83117d0ea7304ca23f850ec135155b2cfb50055745e5e6a58d3eb3e1849f021c499c49e59558deac5b2526
+ HEAD_REF master
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ assimp vsgXchange_assimp
+ assimp VCPKG_LOCK_FIND_PACKAGE_assimp
+ curl vsgXchange_curl
+ curl VCPKG_LOCK_FIND_PACKAGE_CURL
+ freetype vsgXchange_freetype
+ freetype VCPKG_LOCK_FIND_PACKAGE_Freetype
+ gdal vsgXchange_GDAL
+ gdal VCPKG_LOCK_FIND_PACKAGE_GDAL
+ openexr vsgXchange_openexr
+ openexr VCPKG_LOCK_FIND_PACKAGE_OpenEXR
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ ${FEATURE_OPTIONS}
+ -DVCPKG_LOCK_FIND_PACKAGE_Doxygen=OFF
+ -DVCPKG_LOCK_FIND_PACKAGE_osg2vsg=OFF
+ -DVCPKG_LOCK_FIND_PACKAGE_draco=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/vsgXchange")
+
+vcpkg_copy_tools(TOOL_NAMES vsgconv AUTO_CLEAN)
+vcpkg_clean_executables_in_bin(FILE_NAMES vsgconvd)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
diff --git a/vcpkg/ports/vsgxchange/vcpkg.json b/vcpkg/ports/vsgxchange/vcpkg.json
new file mode 100644
index 0000000..c9ff042
--- /dev/null
+++ b/vcpkg/ports/vsgxchange/vcpkg.json
@@ -0,0 +1,59 @@
+{
+ "name": "vsgxchange",
+ "version": "1.1.7",
+ "description": "Utility library for converting 3rd party images, models and fonts formats to/from VulkanSceneGraph.",
+ "homepage": "https://github.com/vsg-dev/vsgXchange",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ },
+ "vsg"
+ ],
+ "features": {
+ "assimp": {
+ "description": "Enable support for reading 3D model formats as vsg::Node via Assimp",
+ "dependencies": [
+ "assimp"
+ ]
+ },
+ "curl": {
+ "description": "Enable support for reading image and model files from http:// and https://",
+ "dependencies": [
+ {
+ "name": "curl",
+ "default-features": false
+ }
+ ]
+ },
+ "freetype": {
+ "description": "Enable support for reading fonts as vsg::Font via Freetype",
+ "dependencies": [
+ {
+ "name": "freetype",
+ "default-features": false
+ }
+ ]
+ },
+ "gdal": {
+ "description": "Enable support for reading geospatial data formats as vsg::Data via GDAL",
+ "dependencies": [
+ {
+ "name": "gdal",
+ "default-features": false
+ }
+ ]
+ },
+ "openexr": {
+ "description": "Enable support for reading EXR files as vsg::Data",
+ "dependencies": [
+ "openexr"
+ ]
+ }
+ }
+}