From c9ece3165df5f24dfda900e2e9f62db2ebf96f07 Mon Sep 17 00:00:00 2001 From: David Chavez Date: Wed, 6 Dec 2023 15:59:53 +0100 Subject: [PATCH] +microsoft.com/dxc (#4317) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add dxc * tweak building * Add python to build env * Copy items to prefix * create prefix directory first * copy libs * include zlib * don’t error on warning * specific zlib major --------- Co-authored-by: Jacob Heider --- projects/microsoft.com/dxc/package.yml | 42 ++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 projects/microsoft.com/dxc/package.yml diff --git a/projects/microsoft.com/dxc/package.yml b/projects/microsoft.com/dxc/package.yml new file mode 100644 index 00000000..85193cc3 --- /dev/null +++ b/projects/microsoft.com/dxc/package.yml @@ -0,0 +1,42 @@ +distributable: + url: git+https://github.com/microsoft/DirectXShaderCompiler + ref: v{{version}} + +versions: + github: microsoft/DirectXShaderCompiler/tags + +dependencies: + zlib.net: ^1 + +build: + dependencies: + cmake.org: '*' + git-scm.org: ^2 + ninja-build.org: ^1 + python.org: '>=3.7<3.12' + script: | + git submodule update --init + cmake -B $BUILD_DIR $CMAKE_ARGS + ninja -C $BUILD_DIR + + mkdir -p {{prefix}} + cp -r $BUILD_DIR/bin {{prefix}}/ + cp -r $BUILD_DIR/lib {{prefix}}/ + env: + BUILD_DIR: $(mktemp -d) + CMAKE_ARGS: + - -GNinja + - -C./cmake/caches/PredefinedParams.cmake + - -DSPIRV_BUILD_TESTS=ON + - -DCMAKE_BUILD_TYPE=Release + +provides: + - bin/dxc + - bin/dxv + - bin/dxa + - bin/dxr + - bin/dxl + +test: + script: + dxc --help