Add globaldefs.pri for setting qmake values in each project

This commit is contained in:
Cameron Gutman 2019-04-21 11:08:33 -07:00
parent dba479774b
commit 67b0907e52
7 changed files with 41 additions and 41 deletions

View file

@ -3,11 +3,7 @@ QT -= core gui
TARGET = AntiHooking
TEMPLATE = lib
# Support debug and release builds from command line for CI
CONFIG += debug_and_release
# Ensure symbols are always generated
CONFIG += force_debug_info
include(../globaldefs.pri)
INCLUDEPATH += $$PWD/../libs/windows/include
contains(QT_ARCH, i386) {

View file

@ -8,11 +8,7 @@ unix:!macx {
TARGET = Moonlight
}
# Support debug and release builds from command line for CI
CONFIG += debug_and_release
# Ensure symbols are always generated
CONFIG += force_debug_info
include(../globaldefs.pri)
# Precompile QML files to avoid writing qmlcache on portable versions.
# Since this binds the app against the Qt runtime version, we will only

13
globaldefs.pri Normal file
View file

@ -0,0 +1,13 @@
# Support debug and release builds from command line for CI
CONFIG += debug_and_release
# Ensure symbols are always generated
CONFIG += force_debug_info
# Disable asserts on release builds
CONFIG(release, debug|release) {
DEFINES += NDEBUG
}
# Enable ASan if desired
#CONFIG += sanitizer sanitize_address

View file

@ -10,18 +10,15 @@ QT -= core gui
TARGET = h264bitstream
TEMPLATE = lib
# Support debug and release builds from command line for CI
CONFIG += debug_and_release
# Ensure symbols are always generated
CONFIG += force_debug_info
# Build a static library
CONFIG += staticlib
# Disable warnings
CONFIG += warn_off
# Include global qmake defs
include(../globaldefs.pri)
# Older GCC versions defaulted to GNU89
*-g++ {
QMAKE_CFLAGS += -std=gnu99

View file

@ -9,11 +9,14 @@ QT -= core gui
TARGET = moonlight-common-c
TEMPLATE = lib
# Support debug and release builds from command line for CI
CONFIG += debug_and_release
# Build a static library
CONFIG += staticlib
# Ensure symbols are always generated
CONFIG += force_debug_info
# Disable warnings
CONFIG += warn_off
# Include global qmake defs
include(../globaldefs.pri)
win32 {
INCLUDEPATH += $$PWD/../libs/windows/include
@ -65,7 +68,6 @@ INCLUDEPATH += \
$$RS_DIR \
$$ENET_DIR/include \
$$COMMON_C_DIR/src
CONFIG += warn_off staticlib
DEFINES += HAS_SOCKLEN_T
CONFIG(debug, debug|release) {

View file

@ -4,11 +4,17 @@ QT += network
TARGET = qmdnsengine
TEMPLATE = lib
# Support debug and release builds from command line for CI
CONFIG += debug_and_release
# Build a static library
CONFIG += staticlib
# Ensure symbols are always generated
CONFIG += force_debug_info
# Disable warnings
CONFIG += warn_off
# C++11 is required to build
CONFIG += c++11
# Include global qmake defs
include(../globaldefs.pri)
QMDNSE_DIR = $$PWD/qmdnsengine/src
DEFINES += \
@ -66,5 +72,3 @@ SOURCES += \
INCLUDEPATH += \
$$QMDNSE_DIR/include \
$$PWD/qmdnsengine
CONFIG += warn_off staticlib c++11

View file

@ -9,15 +9,15 @@ QT -= core gui
TARGET = soundio
TEMPLATE = lib
# Support debug and release builds from command line for CI
CONFIG += debug_and_release
# Ensure symbols are always generated
CONFIG += force_debug_info
# Build a static library
CONFIG += staticlib
# Disable warnings
CONFIG += warn_off
# Include global qmake defs
include(../globaldefs.pri)
# Force MSVC to compile C as C++ for atomic support
*-msvc {
QMAKE_CFLAGS += /TP
@ -28,9 +28,6 @@ CONFIG += staticlib
QMAKE_CFLAGS += -std=gnu99
}
# Disable warnings
CONFIG += warn_off
unix:!macx {
CONFIG += link_pkgconfig
@ -44,11 +41,6 @@ unix:!macx {
}
}
CONFIG(release, debug|release) {
# Disable asserts on release builds
DEFINES += NDEBUG
}
DEFINES += \
SOUNDIO_STATIC_LIBRARY \
SOUNDIO_VERSION_MAJOR=1 \