forked from Chatterino/chatterino2
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into chatterino7
- Loading branch information
Showing
31 changed files
with
1,376 additions
and
388 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
set -ev; | ||
|
||
# aqt installs into .qtinstall/Qt/<version>/gcc_64 | ||
# This is doing the same as jurplel/install-qt-action | ||
# See https://github.com/jurplel/install-qt-action/blob/74ca8cd6681420fc8894aed264644c7a76d7c8cb/action/src/main.ts#L52-L74 | ||
qtpath=$(echo .qtinstall/Qt/[0-9]*/*/bin/qmake | sed -e s:/bin/qmake$::) | ||
export LD_LIBRARY_PATH="$qtpath/lib" | ||
export QT_ROOT_DIR=$qtpath | ||
export QT_PLUGIN_PATH="$qtpath/plugins" | ||
export PATH="$PATH:$(realpath "$qtpath/bin")" | ||
export Qt6_DIR="$(realpath "$qtpath")" | ||
|
||
cmake -S. -Bbuild-clang-tidy \ | ||
-DCMAKE_BUILD_TYPE=Debug \ | ||
-DPAJLADA_SETTINGS_USE_BOOST_FILESYSTEM=On \ | ||
-DUSE_PRECOMPILED_HEADERS=OFF \ | ||
-DCMAKE_EXPORT_COMPILE_COMMANDS=On \ | ||
-DCHATTERINO_LTO=Off \ | ||
-DCHATTERINO_PLUGINS=On \ | ||
-DBUILD_WITH_QT6=On \ | ||
-DBUILD_TESTS=On \ | ||
-DBUILD_BENCHMARKS=On | ||
|
||
# Run MOC and UIC | ||
# This will compile the dependencies | ||
# Get the targets using `ninja -t targets | grep autogen` | ||
cmake --build build-clang-tidy --parallel -t \ | ||
Core_autogen \ | ||
LibCommuni_autogen \ | ||
Model_autogen \ | ||
Util_autogen \ | ||
chatterino-lib_autogen |
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
Oops, something went wrong.