From 9f7b9a884cc4403255581ac6805470bca66ad6b7 Mon Sep 17 00:00:00 2001 From: Mike Date: Tue, 8 Oct 2019 12:41:23 -0700 Subject: [PATCH] windows fixes --- .vscode/buildEffects.ps1 | 26 ++++++++++++++++++++++++++ .vscode/tasks.json | 2 -- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 .vscode/buildEffects.ps1 diff --git a/.vscode/buildEffects.ps1 b/.vscode/buildEffects.ps1 new file mode 100644 index 0000000..a6ed69b --- /dev/null +++ b/.vscode/buildEffects.ps1 @@ -0,0 +1,26 @@ +#!/bin/bash +# buildEffects +# 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..." + +Set-Location $PSScriptRoot +Set-Location ../project_name + + +$fxc = "C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Utilities\bin\x86\fxc.exe" + +$files = Get-ChildItem -Path "Content\*" -Recurse -Include *fx + +foreach ($file in $files) +{ + $fileName = $file.BaseName + $filePath = $file.FullName + & $fxc /T fx_2_0 $filePath /Fo "${filePath}b" + + Write-Output "Built ${fileName}.fx to ${filePath}b" +} + + diff --git a/.vscode/tasks.json b/.vscode/tasks.json index fdf992d..9b83033 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -76,7 +76,6 @@ "windows":{ "command": "start", "args": [ - "/wait", "${workspaceFolder}/project_name/bin/Debug/project_name.exe" ] }, @@ -94,7 +93,6 @@ "windows":{ "command": "start", "args": [ - "/wait", "${workspaceFolder}/project_name/bin/Release/project_name.exe" ] },