Let specify arbitrary build configuration via Docker
Default to RelWithDebInfo for both optimizations and debug information
This commit is contained in:
parent
5334096d68
commit
29debc07c4
|
@ -85,7 +85,7 @@ jobs:
|
||||||
|
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-v $PWD:/usr/src/tdesktop \
|
-v $PWD:/usr/src/tdesktop \
|
||||||
-e DEBUG=1 \
|
-e CONFIG=Debug \
|
||||||
tdesktop:centos_env \
|
tdesktop:centos_env \
|
||||||
/usr/src/tdesktop/Telegram/build/docker/centos_env/build.sh \
|
/usr/src/tdesktop/Telegram/build/docker/centos_env/build.sh \
|
||||||
-D CMAKE_C_FLAGS_DEBUG="" \
|
-D CMAKE_C_FLAGS_DEBUG="" \
|
||||||
|
|
|
@ -3,9 +3,4 @@ set -e
|
||||||
|
|
||||||
cd Telegram
|
cd Telegram
|
||||||
./configure.sh "$@"
|
./configure.sh "$@"
|
||||||
|
cmake --build ../out --config "${CONFIG:-RelWithDebInfo}" --parallel
|
||||||
if [ -n "$DEBUG" ]; then
|
|
||||||
cmake --build ../out --config Debug --parallel
|
|
||||||
else
|
|
||||||
cmake --build ../out --config Release --parallel
|
|
||||||
fi
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ Or, to create a debug build, run (also using [your **api_id** and **api_hash**](
|
||||||
|
|
||||||
docker run --rm -it \
|
docker run --rm -it \
|
||||||
-v $PWD:/usr/src/tdesktop \
|
-v $PWD:/usr/src/tdesktop \
|
||||||
-e DEBUG=1 \
|
-e CONFIG=Debug \
|
||||||
tdesktop:centos_env \
|
tdesktop:centos_env \
|
||||||
/usr/src/tdesktop/Telegram/build/docker/centos_env/build.sh \
|
/usr/src/tdesktop/Telegram/build/docker/centos_env/build.sh \
|
||||||
-D TDESKTOP_API_ID=YOUR_API_ID \
|
-D TDESKTOP_API_ID=YOUR_API_ID \
|
||||||
|
|
Loading…
Reference in New Issue