mirror of
https://github.com/prime31/FNA-VSCode-Template.git
synced 2025-10-31 21:50:44 +07:00
19 lines
576 B
Bash
Executable File
19 lines
576 B
Bash
Executable File
#!/bin/bash
|
|
# Compiles all .fx files found in the project's Content directory.
|
|
# Intended for usage with VS Code Build Tasks tooling.
|
|
# You may need to change the path to fxc.exe depending on your installation.
|
|
|
|
printf "Starting build process...\n"
|
|
|
|
for file in `find ./Content/** -name "*.fx"` ;
|
|
do
|
|
# Hush, wine...
|
|
export WINEDEBUG=fixme-all,err-all
|
|
|
|
# Build the effect
|
|
wine ~/.wine/drive_c/Program\ Files/Microsoft\ DirectX\ SDK\ \(June\ 2010\)/Utilities/bin/x86/fxc.exe\
|
|
/T fx_2_0 $file /Fo "`dirname $file`/`basename $file .fx`.fxb"
|
|
|
|
echo ""
|
|
|
|
done |