Skip to content

Commit

Permalink
[ashes] Add new port. (#14087)
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonJoker committed Oct 23, 2020
1 parent 264f1c9 commit 3048968
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
27 changes: 27 additions & 0 deletions ports/ashes/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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)
12 changes: 12 additions & 0 deletions ports/ashes/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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"
]
}

0 comments on commit 3048968

Please sign in to comment.