From c1c8d552d2d6643aa34f3fde8816c3a9101ac157 Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 24 Feb 2023 12:52:48 -0800 Subject: Add hack to prevent browser source crash on shutdown Documented in BrowserSource::Run(). * Parameterize Release/Debug in build scripts --- GUI/Libraries/fetch.ps1 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'GUI/Libraries/fetch.ps1') diff --git a/GUI/Libraries/fetch.ps1 b/GUI/Libraries/fetch.ps1 index 550dfa5..1495cc9 100644 --- a/GUI/Libraries/fetch.ps1 +++ b/GUI/Libraries/fetch.ps1 @@ -1,7 +1,11 @@ param( - [switch]$overwrite = $false + [switch]$overwrite = $False, + [string]$release = "Release" ) +echo "Overwrite: $overwrite" +echo "Release: $release" + Set-PSDebug -trace 0 $WX_3_2_1_URL = "https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.1/wxWidgets-3.2.1.zip" @@ -87,12 +91,12 @@ if (-Not (Test-Path oatpp)) { mkdir build pushd build > $null cmake.exe .. ` - -DCMAKE_BUILD_TYPE=Release ` + -DCMAKE_BUILD_TYPE=$release ` -DBUILD_SHARED_LIBS=OFF ` -DOATPP_MSVC_LINK_STATIC_RUNTIME=ON ` -DOATPP_BUILD_TESTS=OFF - cmake.exe --build . -j $NPROC --config Release - cp src/Release/oatpp.lib ../../../../GUI/GUI/oatpp/ + cmake.exe --build . -j $NPROC --config $release + cp src/$release/oatpp.lib ../../../../GUI/GUI/oatpp/ cp -Recurse ../src/oatpp/* ../../../../GUI/GUI/oatpp/ popd > $null popd > $null -- cgit v1.2.3