Commit 98bbd8e7 authored by Jonatan Hatakeyama Zeidler's avatar Jonatan Hatakeyama Zeidler Committed by Florian Leeber
Browse files

Allow tdlib debug builds

parent 3724b5df
......@@ -7,7 +7,7 @@ stages:
variables:
GIT_SUBMODULE_STRATEGY: 'recursive'
DOCKER_DRIVER: overlay2
CLICKABLE_VERSION: "6.10.1"
CLICKABLE_VERSION: "6.12.2"
cache: &tdlib_cache
key: '$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-1.4'
......
......@@ -12,7 +12,7 @@ You need to build the dependencies (tdlib) once:
From now on building the app is as simple as:
clickable --armhf # or arm64 for the phone
clickable --arch armhf # or arm64 for the phone
clickable desktop #for desktop
When commiting for the first time you need to apply two settings to your fork of TELEports:
......@@ -20,6 +20,19 @@ When commiting for the first time you need to apply two settings to your fork of
Settings -> CI/CD -> General pipelines -> Expand -> Timeout = 2h -> Save Changes
Settings -> CI/CD -> Runners -> Expand -> Shared Runners -> Enable shared runners
## Debugging
Make sure to build teleports clean and with `--debug`:
clickable --arch armhf --debug clean-build
clickable --arch armhf install
clickable --arch armhf gdbserver
In a second terminal:
clickable --arch armhf gdb
Replace `armhf` by `arm64` as needed. See [Debugging Documentation](https://clickable-ut.dev/en/latest/debugging.html) for details.
## C++ Code Style/Formatting
Clang-format is used to keep the code style consistent and should be run before committing any changes to C++ code.
......
{
"clickable_minimum_required": "6.9.1",
"template": "cmake",
"clickable_minimum_required": "6.12.2",
"builder": "cmake",
"kill": "teleports",
"dependencies_target": [
"gperf",
......@@ -11,7 +11,7 @@
],
"libraries": {
"tdlib-prepare": {
"template": "cmake",
"builder": "cmake",
"src_dir": "libs/vendor/tdlib",
"make_args": "prepare_cross_compiling",
"dependencies_target": [
......@@ -19,7 +19,7 @@
]
},
"tdlib": {
"template": "cmake",
"builder": "cmake",
"src_dir": "libs/vendor/tdlib",
"make_args": "tdjson",
"make_jobs": 1,
......@@ -30,8 +30,7 @@
],
"build_args": [
"-DTHREADS_PTHREAD_ARG=0",
"-DCMAKE_CROSSCOMPILING=ON",
"-DCMAKE_BUILD_TYPE=Release"
"-DCMAKE_CROSSCOMPILING=ON"
]
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment