-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #142 - update build documentation
- Loading branch information
Showing
8 changed files
with
159 additions
and
152 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 |
---|---|---|
|
@@ -15,4 +15,4 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Build Linux | ||
run: ./make.sh all | ||
run: ./make.sh all -y |
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 |
---|---|---|
|
@@ -15,4 +15,4 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Build macOS | ||
run: ./make.sh all | ||
run: ./make.sh all -y |
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 @@ | ||
Feature Flags | ||
============= | ||
|
||
Enabling / Disabling Protocol Support | ||
------------------------------------- | ||
The protocols supported by nchat is controlled by the following cmake flags: | ||
|
||
HAS_DUMMY=ON | ||
HAS_TELEGRAM=ON | ||
HAS_WHATSAPP=ON | ||
|
||
It is possible to enable / disable protocols by passing one or multiple flags | ||
to cmake: | ||
|
||
mkdir -p build && cd build | ||
cmake -DHAS_WHATSAPP=OFF .. && make -s | ||
|
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,82 @@ | ||
Building on Low Memory / RAM Systems | ||
==================================== | ||
The Telegram client library subcomponent requires relatively large amount of | ||
RAM to build by default (3.5GB using g++, and 1.5 GB for clang++). It is | ||
possible to adjust the Telegram client library source code so that it requires | ||
less RAM (but takes longer time). Doing so reduces the memory requirement to | ||
around 1GB under g++ and 0.5GB for clang++. | ||
|
||
Steps to build nchat on a low memory system: | ||
|
||
**Extra Dependencies (Linux)** | ||
|
||
sudo apt install php-cli clang | ||
|
||
**Source** | ||
|
||
git clone https://github.com/d99kris/nchat && cd nchat | ||
|
||
**Setup** | ||
|
||
mkdir -p build && cd build | ||
CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake .. | ||
|
||
**Split source (optional)** | ||
|
||
cmake --build . --target prepare_cross_compiling | ||
cd ../lib/tgchat/ext/td ; php SplitSource.php ; cd - | ||
|
||
**Build** | ||
|
||
make -s | ||
|
||
**Install** | ||
|
||
sudo make install | ||
|
||
**Revert Source Code Split (Optional)** | ||
|
||
cd ../lib/tgchat/ext/td ; php SplitSource.php --undo ; cd - | ||
|
||
Arch Linux | ||
---------- | ||
**Source** | ||
|
||
git clone https://aur.archlinux.org/nchat-git.git && cd nchat-git | ||
|
||
**Prepare** | ||
|
||
Open PKGBUILD in your favourite editor. | ||
Add `php` and `clang` on depends array. | ||
Change the `_install_mode` to `slow`. | ||
|
||
**Build** | ||
|
||
makepkg -s | ||
|
||
**Install** | ||
|
||
makepkg -i | ||
|
||
Fedora | ||
------ | ||
**Extra Dependencies** | ||
|
||
sudo dnf install php-cli | ||
|
||
**Source** | ||
|
||
git clone https://github.com/d99kris/nchat && cd nchat | ||
|
||
**Build** | ||
|
||
mkdir -p build && cd build | ||
CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake .. | ||
cmake --build . --target prepare_cross_compiling | ||
cd ../lib/tgchat/ext/td ; php SplitSource.php ; cd - | ||
make -s | ||
|
||
**Install** | ||
|
||
sudo make install | ||
|
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
|
||
#pragma once | ||
|
||
#define NCHAT_VERSION "3.95" | ||
#define NCHAT_VERSION "3.96" |
Oops, something went wrong.