mirror of
https://github.com/prime31/FNA-VSCode-Template.git
synced 2025-10-31 21:50:44 +07:00
17 lines
599 B
PowerShell
17 lines
599 B
PowerShell
# 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.
|
|
|
|
Write-Output "Starting build process..."
|
|
|
|
Get-ChildItem ".\Content\" -R -Filter *.fx |
|
|
Foreach-Object {
|
|
$fileFullname = $_.FullName
|
|
$fileBasename = $_.BaseName
|
|
$fileDirectory = $_.Directory.FullName
|
|
|
|
& 'C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Utilities\bin\x86\fxc.exe' `
|
|
/T fx_2_0 $fileFullname /Fo "$fileDirectory\$fileBasename.fxb"
|
|
|
|
Write-Output ""
|
|
} |