Skip to content

Commit aa0c0e0

Browse files
committed
build system improvements
1 parent 74121d7 commit aa0c0e0

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

.appveyor.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,18 @@ environment:
77
matrix:
88
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
99
arch: x64
10-
msvc_name: Visual Studio 16 2019
1110
platform: x64
1211
qtbin: msvc2017_64
1312
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
1413
arch: x86
15-
msvc_name: Visual Studio 16 2019
1614
platform: Win32
1715
qtbin: msvc2017
1816

1917
before_build:
2018
- cd C:\
2119
- mkdir %arch%
2220
- cd %arch%
23-
- cmake -G "%msvc_name%" -A "%platform%" -DQt5_DIR="C:\Qt\5.13\%qtbin%\lib\cmake\Qt5" -DCMAKE_BUILD_TYPE="RelWithDebInfo" ../Textractor
21+
- cmake -G "Visual Studio 16 2019" -A "%platform%" -DQt5_DIR="C:\Qt\5.13\%qtbin%\lib\cmake\Qt5" -DCMAKE_BUILD_TYPE="RelWithDebInfo" -DVERSION="" ../Textractor
2422

2523
build:
2624
project: C:\%arch%\Textractor.sln

deploy.ps1

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
param([string]$version)
22

33
cd $PSScriptRoot;
4-
mkdir -Force -Verbose Builds;
5-
cd Builds;
4+
mkdir -Force -Verbose builds;
5+
cd builds;
66
mkdir -Force -Verbose x86;
77
mkdir -Force -Verbose x64;
88

@@ -85,6 +85,7 @@ foreach ($arch in @("x86", "x64"))
8585
{
8686
copy -Force -Recurse -Verbose -Destination "Runtime/$arch/$file" -Path "Release_$arch/$file";
8787
}
88+
copy -Force -Recurse -Verbose -Destination "$arch" -Path "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Redist/MSVC/**/$arch/Microsoft.VC142.CRT/*"
8889
}
8990

9091
rm -Force -Recurse -Verbose "Textractor";

extensions/network.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ std::string Escape(const std::string& text)
6262
return escaped;
6363
}
6464

65-
TEST(assert(JSON::Parse<wchar_t>(LR"([{"string":"hello world","boolean":false,"number":1.67e+4,"null":null,"array":[]},"hello world"])")))
65+
TEST(assert(JSON::Parse<wchar_t>(LR"([{"string":"hello world","boolean":false,"number":1.67e+4,"null":null,"array":[]},"hello world"])")));

include/common.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ inline void TEXTRACTOR_DEBUG(const wchar_t* format, const Args&... args) { std::
139139
void Localize();
140140

141141
#ifdef _DEBUG
142-
#define TEST(...) static auto _ = CreateThread(nullptr, 0, [](auto) { __VA_ARGS__; return 0UL; }, NULL, 0, nullptr);
142+
#define TEST(...) static auto _ = CreateThread(nullptr, 0, [](auto) { __VA_ARGS__; return 0UL; }, NULL, 0, nullptr)
143143
#else
144144
#define TEST(...)
145145
#endif

0 commit comments

Comments
 (0)