mirror of
https://github.com/daniel5151/ANESE.git
synced 2025-04-02 10:32:00 -04:00
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?!
19 lines
630 B
PowerShell
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 ..;
|