diff options
| author | yum <yum.food.vr@gmail.com> | 2023-02-24 12:52:48 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2023-02-24 12:52:48 -0800 |
| commit | c1c8d552d2d6643aa34f3fde8816c3a9101ac157 (patch) | |
| tree | 1b5605c6c77e64d1d034ac94252146cbbe27cfe1 /GUI/Libraries/fetch.ps1 | |
| parent | fa1f619fcaaf7d40670d11f492cd0156a85bcf03 (diff) | |
Add hack to prevent browser source crash on shutdown
Documented in BrowserSource::Run().
* Parameterize Release/Debug in build scripts
Diffstat (limited to 'GUI/Libraries/fetch.ps1')
| -rw-r--r-- | GUI/Libraries/fetch.ps1 | 12 |
1 files changed, 8 insertions, 4 deletions
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 |
