summaryrefslogtreecommitdiffstats
path: root/taskcluster/scripts/misc/build-mingw-fxc2-x86.sh
blob: da93bbf1bccd7ce1c67ef1026b778d87dd682d7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
set -x -e -v

WORKSPACE=$HOME/workspace
INSTALL_DIR=$WORKSPACE/fxc2

mkdir -p $INSTALL_DIR/bin

export PATH="$MOZ_FETCHES_DIR/clang/bin:$PATH"

# --------------

cd $MOZ_FETCHES_DIR/fxc2
make -j$(nproc) x86

cp fxc2.exe $INSTALL_DIR/bin/
cp dll/d3dcompiler_47_32.dll $INSTALL_DIR/bin/d3dcompiler_47.dll

# --------------

cd $WORKSPACE
tar caf fxc2.tar.zst fxc2

mkdir -p $UPLOAD_DIR
cp fxc2.tar.* $UPLOAD_DIR