]> granicus.if.org Git - graphviz/commitdiff
remove now-unused build.ps1
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 2 May 2021 17:07:55 +0000 (10:07 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 8 May 2021 18:28:08 +0000 (11:28 -0700)
windows/bin/build.ps1 [deleted file]

diff --git a/windows/bin/build.ps1 b/windows/bin/build.ps1
deleted file mode 100644 (file)
index 2f702a4..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-Param (
-    [Parameter(Mandatory=$true)]
-    [ValidateSet("cmake", "msbuild")]
-    [string]
-    $buildsystem
-    ,
-    [Parameter(Mandatory=$true)]
-    [ValidateSet("Release", "Debug")]
-    [string]
-    $configuration
-    ,
-    [Parameter(Mandatory=$true)]
-    [ValidateSet("Win32", "x64")]
-    [string]
-    $platform
-)
-
-$ErrorActionPreference = "Stop"
-
-if ($buildsystem -eq "cmake") {
-    rm -Recurse -Force -ErrorAction SilentlyContinue build
-    mkdir build
-    cd build
-
-    cmake -G "Visual Studio 16 2019" -A $platform ..
-    if ($LastExitCode -ne 0) {
-        exit $LastExitCode
-    }
-    cmake --build . --config $configuration
-    if ($LastExitCode -ne 0) {
-        exit $LastExitCode
-    }
-
-    cpack -C $configuration
-    if ($LastExitCode -ne 0) {
-        exit $LastExitCode
-    }
-} else {
-    MSBuild.exe -p:Configuration=$configuration -p:Platform=$platform graphviz.sln
-    if ($LastExitCode -ne 0) {
-        exit $LastExitCode
-    }
-    if ($configuration -eq "Release") {
-          rm Release\Graphviz\bin\*.lastcodeanalysissucceeded
-          rm Release\Graphviz\bin\*.iobj
-          rm Release\Graphviz\bin\*.ipdb
-          rm Release\Graphviz\bin\*.ilk
-    }
-}