ANESE/mk_msvc.ps1
Daniel Prilik 14d278e5d2 ui and build improvements
added some 3rd party libs today! man, cmake is pretty complicated,
so it took a while to figure out, but hey, it seems to be working,
so that's good!

I added two libraries:
- `tinyfiledialogs` to handle opening a file-select window (that
  varies per platform) in the case that no rom is specified on the
  commandline.
- `args` handles parsing and validation of commandline arguments.
  As I start to add more and more flags, it's probably a good idea
  to set up a more extensible framework to configure ANESE

Oh, and FYI, this is all me procrastinating working on the PPU.

weeeeeeee!! isn't emulation fun?!
2017-12-14 16:17:51 -08:00

19 lines
630 B
PowerShell

param (
[switch]$run = $false,
[string]$rom = ""
)
if (-not (Test-Path build_msvc)) {
New-Item -ItemType directory -Path build_msvc
}
Set-Location -Path build_msvc;
$cmake_status = $(cmake -DDEBUG_PPU=ON -DNESTEST=OFF .. | Out-Host;$?;)
$build_status = $(MSBuild.exe /p:Configuration=Release .\anese.sln | Out-Host;$?;)
if ($cmake_status -and $build_status -and $run) {
if ($rom -eq "") {
invoke-expression "cmd /c start powershell -Command { .\Release\anese.exe }"
} else {
invoke-expression "cmd /c start powershell -Command { .\Release\anese.exe '..\$rom' }"
}
}
Set-Location -Path ..;