Skip to content

Commit

Permalink
Add a build using wxUSE_UNICODE_UTF8 to Appveyor CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vadz committed Mar 24, 2023
1 parent 0677d49 commit e733e28
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions appveyor.yml
Expand Up @@ -34,6 +34,11 @@ environment:
ARCH: x64
wxUSE_STL: 1
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
- TOOLSET: msbuild
CONFIGURATION: Debug
ARCH: x64
wxUSE_UNICODE_UTF8: 1
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
- TOOLSET: nmake
VS: '14.0'
BUILD: debug
Expand Down Expand Up @@ -67,11 +72,13 @@ before_build:
- ps: |
$env:PATH = $env:PATH -replace "C:\\Program Files\\Git\\usr\\bin",""
if (-not (Test-Path env:wxUSE_STL)) { $env:wxUSE_STL = '0' }
if (-not (Test-Path env:wxUSE_UNICODE_UTF8)) { $env:wxUSE_UNICODE_UTF8 = '0' }
if (-not (Test-Path env:wxUSE_WEBVIEW_EDGE)) { $env:wxUSE_WEBVIEW_EDGE = '0' }
if (($env:TOOLSET -ne "msys2") -and ($env:TOOLSET -ne "cygwin")) {
$txt = gc include\wx\msw\setup.h
Write-Output $txt |
%{$_ -replace "define wxUSE_STL 0", "define wxUSE_STL $env:wxUSE_STL"} |
%{$_ -replace "define wxUSE_UNICODE_UTF8 0", "define wxUSE_UNICODE_UTF8 $env:wxUSE_UNICODE_UTF8"} |
%{$_ -replace "define wxUSE_WEBVIEW_EDGE 0", "define wxUSE_WEBVIEW_EDGE $env:wxUSE_WEBVIEW_EDGE"} |
sc include\wx\msw\setup.h
}
Expand Down

0 comments on commit e733e28

Please sign in to comment.