1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore: Add sonnect in build scripts and update docs

This commit is contained in:
Diadlo 2018-05-19 00:06:19 +03:00 committed by sudden6
parent 8d10fe47ec
commit 4c9b7bfccc
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
4 changed files with 27 additions and 3 deletions

View File

@ -35,6 +35,7 @@ sudo apt-get install -y --force-yes \
libgdk-pixbuf2.0-dev \
libglib2.0-dev \
libgtk2.0-dev \
libkdeui5 \
libopenal-dev \
libopus-dev \
libqrencode-dev \
@ -170,7 +171,8 @@ build_qtox() {
cmake -H. -B"$BUILDDIR" \
-DSMILEYS=DISABLED \
-DENABLE_STATUSNOTIFIER=False \
-DENABLE_GTK_SYSTRAY=False
-DENABLE_GTK_SYSTRAY=False \
-DSPELL_CHECK=OFF
bdir

View File

@ -63,6 +63,18 @@ dependencies are missing.
|---------|---------|
| [Check] | >= 0.9 |
### Spell checking support
| Name | Version |
|----------|---------|
| [sonnet] | >= 5.45 |
Use `-DSPELL_CHECK=OFF` to disable it.
**Note:** Specified version was tested and works well. You can try to use older
version, but in this case you may have some errors (including a complete lack
of spell check).
### Linux
#### Auto-away support
@ -299,6 +311,7 @@ sudo apt-get install \
libexif-dev \
libgdk-pixbuf2.0-dev \
libgtk2.0-dev \
libkdeui5 \
libopenal-dev \
libopus-dev \
libqrencode-dev \
@ -337,6 +350,7 @@ sudo dnf install \
check-devel \
ffmpeg-devel \
gtk2-devel \
kf5-sonnet \
libexif-devel \
libsodium-devel \
libtool \
@ -381,7 +395,8 @@ sudo zypper install \
openal-soft-devel \
patterns-openSUSE-devel_basis \
qrencode-devel \
sqlcipher-devel
sqlcipher-devel \
sonnet-devel
```
<a name="slackware-other-deps" />
@ -414,6 +429,7 @@ sudo apt-get install \
libgdk-pixbuf2.0-dev \
libglib2.0-dev \
libgtk2.0-dev \
libkdeui5 \
libopenal-dev \
libopus-dev \
libqrencode-dev \
@ -447,6 +463,7 @@ sudo apt-get install \
libgdk-pixbuf2.0-dev \
libglib2.0-dev \
libgtk2.0-dev \
libkdeui5 \
libopenal-dev \
libopus-dev \
libqrencode-dev \
@ -805,3 +822,4 @@ Switches:
[sqlcipher]: https://www.zetetic.net/sqlcipher/
[toxcore]: https://github.com/TokTok/c-toxcore/
[filteraudio]: https://github.com/irungentoo/filter_audio
[sonnet]: https://github.com/KDE/sonnet

View File

@ -230,7 +230,8 @@ build() {
fcho "Now working in ${PWD}"
fcho "Starting cmake ..."
export CMAKE_PREFIX_PATH=$(brew --prefix qt5)
cmake -H$QTOX_DIR -B.
# Spell check on MaxOS currently not supported
cmake -H$QTOX_DIR -B. -DSPELL_CHECK=OFF
make -j$(sysctl -n hw.ncpu)
}

View File

@ -1125,15 +1125,18 @@ then
fi
set -u
# Spell check on windows currently not supported, disable
if [[ "$BUILD_TYPE" == "release" ]]
then
cmake -DCMAKE_TOOLCHAIN_FILE=./toolchain.cmake \
-DCMAKE_BUILD_TYPE=Release \
-DSPELL_CHECK=OFF \
..
elif [[ "$BUILD_TYPE" == "debug" ]]
then
cmake -DCMAKE_TOOLCHAIN_FILE=./toolchain.cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DSPELL_CHECK=OFF \
..
fi