diff options
| author | Sylvain Doremus <DragonJoker@users.noreply.github.com> | 2020-10-23 20:53:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-23 11:53:56 -0700 |
| commit | 30489687b7dfc499f65a34cf835aaf0d482f5488 (patch) | |
| tree | 0ac6855e53cb00294f627f4fca25aa0bfe0d6fff | |
| parent | 264f1c960edd0a08e641fe303bd525569d47bb1c (diff) | |
| download | vcpkg-30489687b7dfc499f65a34cf835aaf0d482f5488.tar.gz vcpkg-30489687b7dfc499f65a34cf835aaf0d482f5488.zip | |
[ashes] Add new port. (#14087)
| -rw-r--r-- | ports/ashes/portfile.cmake | 27 | ||||
| -rw-r--r-- | ports/ashes/vcpkg.json | 12 |
2 files changed, 39 insertions, 0 deletions
diff --git a/ports/ashes/portfile.cmake b/ports/ashes/portfile.cmake new file mode 100644 index 000000000..5b9658553 --- /dev/null +++ b/ports/ashes/portfile.cmake @@ -0,0 +1,27 @@ +vcpkg_fail_port_install(ON_TARGET "UWP" "iOS" "Android" ON_ARCH "x86" "arm")
+
+vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO DragonJoker/Ashes
+ REF 01066539d667b21a20c97c2a70d9bf17555c8cc0
+ SHA512 f335d99ff044b388494cbbf7cbde3c9ee46eaecdc9339fc7f45fa781d23635dde3d3eaa237ed466ce50e5c1ea6e2729d8b5a6cc3930535d1252e564f32d6b778
+)
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DCMAKE_INSTALL_PREFIX=${CURRENT_INSTALLED_DIR}
+ -DPROJECTS_USE_PRECOMPILED_HEADERS=OFF
+ -DVCPKG_PACKAGE_BUILD=ON
+ -DASHES_BUILD_TEMPLATES=OFF
+ -DASHES_BUILD_TESTS=OFF
+ -DASHES_BUILD_INFO=OFF
+ -DASHES_BUILD_SAMPLES=OFF
+)
+
+vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/ashes)
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/ashes RENAME copyright)
diff --git a/ports/ashes/vcpkg.json b/ports/ashes/vcpkg.json new file mode 100644 index 000000000..686237b04 --- /dev/null +++ b/ports/ashes/vcpkg.json @@ -0,0 +1,12 @@ +{ + "name": "ashes", + "version-string": "2020-10-21", + "description": "Drop-in replacement to Vulkan's shared library, allowing the use of OpenGL or Direct3D11 in addition to Vulkan.", + "homepage": "https://github.com/DragonJoker/Ashes", + "supports": "!osx & !linux & !ios & !android & !uwp & !x86 & !arm & !static", + "dependencies": [ + "opengl", + "spirv-cross", + "vulkan-headers" + ] +} |
