Skip to content

Instantly share code, notes, and snippets.

@Aerocatia
Created February 3, 2023 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aerocatia/ac929b9a95bdf51d9440e5e7252c7742 to your computer and use it in GitHub Desktop.
Save Aerocatia/ac929b9a95bdf51d9440e5e7252c7742 to your computer and use it in GitHub Desktop.
mingw-w64-directx-headers
pkgname=mingw-w64-directx-headers
pkgdesc="DirectX headers for using D3D12 (mingw-w64)"
pkgver=1.608.2
pkgrel=2
arch=('any')
makedepends=('mingw-w64-cmake' 'ninja')
url="https://github.com/microsoft/DirectX-Headers"
license=('MIT')
options=('staticlibs' '!strip' '!buildflags')
source=(directx-headers-${pkgver}.tar.gz::https://github.com/microsoft/DirectX-Headers/archive/refs/tags/v${pkgver}.tar.gz)
sha256sums=('6d2b2ee19e744ce5e0e9716367ad38ebf94dd5ef18a014971594f29eb67bd87e')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
for _arch in ${_architectures}; do
${_arch}-cmake -S DirectX-Headers-$pkgver -B build/${_arch} -G Ninja \
-DDXHEADERS_BUILD_TEST=OFF \
-DDXHEADERS_BUILD_GOOGLE_TEST=OFF
cmake --build build/${_arch}
done
}
package() {
for _arch in ${_architectures}; do
DESTDIR="${pkgdir}" cmake --install build/${_arch}
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment