mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 11:28:59 +08:00
Port for Microsoft GitHub DirectX-Headers (#15222)
This commit is contained in:
parent
524f3af97c
commit
4a678aa329
5
ports/directx-headers/CONTROL
Normal file
5
ports/directx-headers/CONTROL
Normal file
@ -0,0 +1,5 @@
|
||||
Source: directx-headers
|
||||
Version: 1.0
|
||||
Homepage: https://devblogs.microsoft.com/directx/
|
||||
Description: Official DirectX headers
|
||||
Supports: windows|linux
|
22
ports/directx-headers/portfile.cmake
Normal file
22
ports/directx-headers/portfile.cmake
Normal file
@ -0,0 +1,22 @@
|
||||
vcpkg_fail_port_install(ON_TARGET "OSX")
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO Microsoft/DirectX-Headers
|
||||
REF v1.0
|
||||
SHA512 73e35142ff460aa6114a9fa298ce409d4b1cb34fb7bbb1ca55687cf7aca05197c48a02ae8c81bcb36b39b1a3f75d8ecbe503a752df70f4b0980fc026a92df84b
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS -DBUILD_TEST=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/directx-headers/cmake)
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
Loading…
Reference in New Issue
Block a user