aboutsummaryrefslogtreecommitdiff
path: root/ports/directxmath
diff options
context:
space:
mode:
authorChuck Walbourn <walbourn@users.noreply.github.com>2020-12-28 17:28:53 -0800
committerGitHub <noreply@github.com>2020-12-28 17:28:53 -0800
commitec58d649c18a56507468e47ea69c51a917d18052 (patch)
treeafeda4e54d6eaf86b1d786ccef9ff8d8516cf016 /ports/directxmath
parentd1e64a013e4df05b11fa1bb084abf1a3e3dde4ed (diff)
downloadvcpkg-ec58d649c18a56507468e47ea69c51a917d18052.tar.gz
vcpkg-ec58d649c18a56507468e47ea69c51a917d18052.zip
Updated directxtk et al for cmake package support (#15210)
Diffstat (limited to 'ports/directxmath')
-rw-r--r--ports/directxmath/CONTROL4
-rw-r--r--ports/directxmath/portfile.cmake32
2 files changed, 36 insertions, 0 deletions
diff --git a/ports/directxmath/CONTROL b/ports/directxmath/CONTROL
new file mode 100644
index 000000000..0c6bcc956
--- /dev/null
+++ b/ports/directxmath/CONTROL
@@ -0,0 +1,4 @@
+Source: directxmath
+Version: 3.1.6
+Homepage: https://walbourn.github.io/introducing-directxmath/
+Description: DirectXMath SIMD C++ math library
diff --git a/ports/directxmath/portfile.cmake b/ports/directxmath/portfile.cmake
new file mode 100644
index 000000000..96a722e0f
--- /dev/null
+++ b/ports/directxmath/portfile.cmake
@@ -0,0 +1,32 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Microsoft/DirectXMath
+ REF dec2020
+ SHA512 73c073f6ef5f2dd867c3f934d471258c001fb85a99b897ef25ac26595c31157e00118143f5fdaa3f25512a2a46ebbe464efd1d697a999137bc4cffc9c29fec8c
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
+
+if(NOT VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_download_distfile(
+ SAL_HEADER
+ URLS "https://raw.githubusercontent.com/dotnet/corert/master/src/Native/inc/unix/sal.h"
+ FILENAME "sal.h"
+ SHA512 1643571673195d9eb892d2f2ac76eac7113ef7aa0ca116d79f3e4d3dc9df8a31600a9668b7e7678dfbe5a76906f9e0734ef8d6db0903ccc68fc742dd8238d8b0
+ )
+
+ file(INSTALL
+ ${DOWNLOADS}/sal.h
+ DESTINATION ${CURRENT_PACKAGES_DIR}/include/)
+endif()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)