- allow debug builds

This commit is contained in:
Dmytro Bogovych 2022-11-13 21:04:43 +03:00
parent 6b88c48c3a
commit 4e51dc85e8
3 changed files with 21 additions and 1 deletions

View File

@ -1,5 +1,7 @@
QT += core gui svg multimedia QT += core gui svg multimedia
CONFIG += debug_and_release
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets dbus greaterThan(QT_MAJOR_VERSION, 4): QT += widgets dbus
CONFIG += c++17 lrelease embed_translations CONFIG += c++17 lrelease embed_translations

12
scripts/build_linux_debug.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
# I use this script on two different hosts so there are logic to find proper Qt installation
export QT_HOME=/home/$USER/qt5.15/5.15.2/gcc_64
if [ ! -d "$QT_HOME" ] ; then
export QT_HOME=/home/$USER/qt5.15/5.15.2/gcc_64
fi
# Build .appimage
/usr/bin/python3 build_qbreak.py debug

View File

@ -5,6 +5,7 @@ import platform
import os import os
import shutil import shutil
import glob import glob
import sys
from pathlib import Path from pathlib import Path
import multiprocessing import multiprocessing
import build_utils import build_utils
@ -48,8 +49,13 @@ if platform.system() == 'Linux':
print(f'qmake call failed with code {retcode}') print(f'qmake call failed with code {retcode}')
exit(retcode) exit(retcode)
# Check the requested type of build - debug or release
build_type = 'release'
if len(sys.argv) == 2:
build_type = sys.argv[1]
print('Build...') print('Build...')
retcode = os.system('make -j4') retcode = os.system(f'make {build_type} -j4')
if retcode != 0: if retcode != 0:
print(f'make call failed with code {retcode}') print(f'make call failed with code {retcode}')
exit(retcode) exit(retcode)