forked from Chatterino/chatterino2
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Chatterino:master' into chatterino7
- Loading branch information
Showing
21 changed files
with
117 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,3 +104,6 @@ Stamp | |
tmp | ||
Source | ||
Dependencies_* | ||
|
||
# vcpkg | ||
vcpkg_installed/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Building on Windows with vcpkg | ||
|
||
## Prerequisites | ||
|
||
1. Install [Visual Studio](https://visualstudio.microsoft.com/) with "Desktop development with C++" (~9.66 GB) | ||
1. Install [CMake](https://cmake.org/) (~109 MB) | ||
1. Install [git](https://git-scm.com/) (~264 MB) | ||
1. Install [vcpkg](https://vcpkg.io/) (~80 MB) | ||
- `git clone https://github.com/Microsoft/vcpkg.git` | ||
- `cd .\vcpkg\` | ||
- `.\bootstrap-vcpkg.bat` | ||
- `.\vcpkg integrate install` | ||
- `.\vcpkg integrate powershell` | ||
- `cd ..` | ||
1. Configure the environment for vcpkg | ||
- `set VCPKG_DEFAULT_TRIPLET=x64-windows` | ||
- [default](https://github.com/microsoft/vcpkg/blob/master/docs/users/triplets.md#additional-remarks) is `x86-windows` | ||
- `set VCPKG_ROOT=C:\path\to\vcpkg\` | ||
- `set PATH=%PATH%;%VCPKG_ROOT%` | ||
|
||
## Building | ||
|
||
1. Clone | ||
- `git clone --recurse-submodules https://github.com/Chatterino/chatterino2.git` | ||
1. Install dependencies (~21 GB) | ||
- `cd .\chatterino2\` | ||
- `vcpkg install` | ||
1. Build | ||
- `mkdir .\build\` | ||
- `cd .\build\` | ||
- (cmd) `cmake .. -DCMAKE_TOOLCHAIN_FILE=%VCPKG_ROOT%/scripts/buildsystems/vcpkg.cmake` | ||
- (ps1) `cmake .. -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake"` | ||
- `cmake --build . --parallel <threads> --config Release` | ||
1. Run | ||
- `.\bin\chatterino2.exe` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "widgets/helper/TrimRegExpValidator.hpp" | ||
|
||
namespace chatterino { | ||
|
||
TrimRegExpValidator::TrimRegExpValidator(const QRegularExpression &re, | ||
QObject *parent) | ||
: QRegularExpressionValidator(re, parent) | ||
{ | ||
} | ||
|
||
QValidator::State TrimRegExpValidator::validate(QString &input, int &pos) const | ||
{ | ||
input = input.trimmed(); | ||
return QRegularExpressionValidator::validate(input, pos); | ||
} | ||
|
||
} // namespace chatterino |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#pragma once | ||
|
||
#include <QRegularExpression> | ||
#include <QRegularExpressionValidator> | ||
|
||
namespace chatterino { | ||
|
||
class TrimRegExpValidator : public QRegularExpressionValidator | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
TrimRegExpValidator(const QRegularExpression &re, | ||
QObject *parent = nullptr); | ||
|
||
QValidator::State validate(QString &input, int &pos) const override; | ||
}; | ||
|
||
} // namespace chatterino |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json", | ||
"name": "chatterino", | ||
"version": "2.0.0", | ||
"dependencies": [ | ||
"benchmark", | ||
"boost-asio", | ||
"boost-foreach", | ||
"boost-interprocess", | ||
"boost-random", | ||
"boost-variant", | ||
"gtest", | ||
"openssl", | ||
"qt5-multimedia", | ||
"qt5-tools" | ||
], | ||
"builtin-baseline": "2ac61f87f69f0484b8044f95ab274038fbaf7bdd", | ||
"overrides": [ | ||
{ "name": "openssl", "version-string": "1.1.1n" } | ||
] | ||
} |