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
+6 -14
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 \