Skip to content

Commit

Permalink
build system improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Artikash committed Mar 13, 2021
1 parent 74121d7 commit aa0c0e0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,18 @@ environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
arch: x64
msvc_name: Visual Studio 16 2019
platform: x64
qtbin: msvc2017_64
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
arch: x86
msvc_name: Visual Studio 16 2019
platform: Win32
qtbin: msvc2017

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

build:
project: C:\%arch%\Textractor.sln
Expand Down
5 changes: 3 additions & 2 deletions deploy.ps1
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
param([string]$version)

cd $PSScriptRoot;
mkdir -Force -Verbose Builds;
cd Builds;
mkdir -Force -Verbose builds;
cd builds;
mkdir -Force -Verbose x86;
mkdir -Force -Verbose x64;

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

rm -Force -Recurse -Verbose "Textractor";
Expand Down
2 changes: 1 addition & 1 deletion extensions/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ std::string Escape(const std::string& text)
return escaped;
}

TEST(assert(JSON::Parse<wchar_t>(LR"([{"string":"hello world","boolean":false,"number":1.67e+4,"null":null,"array":[]},"hello world"])")))
TEST(assert(JSON::Parse<wchar_t>(LR"([{"string":"hello world","boolean":false,"number":1.67e+4,"null":null,"array":[]},"hello world"])")));
2 changes: 1 addition & 1 deletion include/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ inline void TEXTRACTOR_DEBUG(const wchar_t* format, const Args&... args) { std::
void Localize();

#ifdef _DEBUG
#define TEST(...) static auto _ = CreateThread(nullptr, 0, [](auto) { __VA_ARGS__; return 0UL; }, NULL, 0, nullptr);
#define TEST(...) static auto _ = CreateThread(nullptr, 0, [](auto) { __VA_ARGS__; return 0UL; }, NULL, 0, nullptr)
#else
#define TEST(...)
#endif

0 comments on commit aa0c0e0

Please sign in to comment.