mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-10 05:34:17 +00:00
Add globaldefs.pri for setting qmake values in each project
This commit is contained in:
parent
dba479774b
commit
67b0907e52
7 changed files with 41 additions and 41 deletions
|
@ -3,11 +3,7 @@ QT -= core gui
|
||||||
TARGET = AntiHooking
|
TARGET = AntiHooking
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
|
|
||||||
# Support debug and release builds from command line for CI
|
include(../globaldefs.pri)
|
||||||
CONFIG += debug_and_release
|
|
||||||
|
|
||||||
# Ensure symbols are always generated
|
|
||||||
CONFIG += force_debug_info
|
|
||||||
|
|
||||||
INCLUDEPATH += $$PWD/../libs/windows/include
|
INCLUDEPATH += $$PWD/../libs/windows/include
|
||||||
contains(QT_ARCH, i386) {
|
contains(QT_ARCH, i386) {
|
||||||
|
|
|
@ -8,11 +8,7 @@ unix:!macx {
|
||||||
TARGET = Moonlight
|
TARGET = Moonlight
|
||||||
}
|
}
|
||||||
|
|
||||||
# Support debug and release builds from command line for CI
|
include(../globaldefs.pri)
|
||||||
CONFIG += debug_and_release
|
|
||||||
|
|
||||||
# Ensure symbols are always generated
|
|
||||||
CONFIG += force_debug_info
|
|
||||||
|
|
||||||
# Precompile QML files to avoid writing qmlcache on portable versions.
|
# Precompile QML files to avoid writing qmlcache on portable versions.
|
||||||
# Since this binds the app against the Qt runtime version, we will only
|
# Since this binds the app against the Qt runtime version, we will only
|
||||||
|
|
13
globaldefs.pri
Normal file
13
globaldefs.pri
Normal 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
|
|
@ -10,18 +10,15 @@ QT -= core gui
|
||||||
TARGET = h264bitstream
|
TARGET = h264bitstream
|
||||||
TEMPLATE = lib
|
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
|
# Build a static library
|
||||||
CONFIG += staticlib
|
CONFIG += staticlib
|
||||||
|
|
||||||
# Disable warnings
|
# Disable warnings
|
||||||
CONFIG += warn_off
|
CONFIG += warn_off
|
||||||
|
|
||||||
|
# Include global qmake defs
|
||||||
|
include(../globaldefs.pri)
|
||||||
|
|
||||||
# Older GCC versions defaulted to GNU89
|
# Older GCC versions defaulted to GNU89
|
||||||
*-g++ {
|
*-g++ {
|
||||||
QMAKE_CFLAGS += -std=gnu99
|
QMAKE_CFLAGS += -std=gnu99
|
||||||
|
|
|
@ -9,11 +9,14 @@ QT -= core gui
|
||||||
TARGET = moonlight-common-c
|
TARGET = moonlight-common-c
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
|
|
||||||
# Support debug and release builds from command line for CI
|
# Build a static library
|
||||||
CONFIG += debug_and_release
|
CONFIG += staticlib
|
||||||
|
|
||||||
# Ensure symbols are always generated
|
# Disable warnings
|
||||||
CONFIG += force_debug_info
|
CONFIG += warn_off
|
||||||
|
|
||||||
|
# Include global qmake defs
|
||||||
|
include(../globaldefs.pri)
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
INCLUDEPATH += $$PWD/../libs/windows/include
|
INCLUDEPATH += $$PWD/../libs/windows/include
|
||||||
|
@ -65,7 +68,6 @@ INCLUDEPATH += \
|
||||||
$$RS_DIR \
|
$$RS_DIR \
|
||||||
$$ENET_DIR/include \
|
$$ENET_DIR/include \
|
||||||
$$COMMON_C_DIR/src
|
$$COMMON_C_DIR/src
|
||||||
CONFIG += warn_off staticlib
|
|
||||||
DEFINES += HAS_SOCKLEN_T
|
DEFINES += HAS_SOCKLEN_T
|
||||||
|
|
||||||
CONFIG(debug, debug|release) {
|
CONFIG(debug, debug|release) {
|
||||||
|
|
|
@ -4,11 +4,17 @@ QT += network
|
||||||
TARGET = qmdnsengine
|
TARGET = qmdnsengine
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
|
|
||||||
# Support debug and release builds from command line for CI
|
# Build a static library
|
||||||
CONFIG += debug_and_release
|
CONFIG += staticlib
|
||||||
|
|
||||||
# Ensure symbols are always generated
|
# Disable warnings
|
||||||
CONFIG += force_debug_info
|
CONFIG += warn_off
|
||||||
|
|
||||||
|
# C++11 is required to build
|
||||||
|
CONFIG += c++11
|
||||||
|
|
||||||
|
# Include global qmake defs
|
||||||
|
include(../globaldefs.pri)
|
||||||
|
|
||||||
QMDNSE_DIR = $$PWD/qmdnsengine/src
|
QMDNSE_DIR = $$PWD/qmdnsengine/src
|
||||||
DEFINES += \
|
DEFINES += \
|
||||||
|
@ -66,5 +72,3 @@ SOURCES += \
|
||||||
INCLUDEPATH += \
|
INCLUDEPATH += \
|
||||||
$$QMDNSE_DIR/include \
|
$$QMDNSE_DIR/include \
|
||||||
$$PWD/qmdnsengine
|
$$PWD/qmdnsengine
|
||||||
|
|
||||||
CONFIG += warn_off staticlib c++11
|
|
||||||
|
|
|
@ -9,15 +9,15 @@ QT -= core gui
|
||||||
TARGET = soundio
|
TARGET = soundio
|
||||||
TEMPLATE = lib
|
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
|
# Build a static library
|
||||||
CONFIG += staticlib
|
CONFIG += staticlib
|
||||||
|
|
||||||
|
# Disable warnings
|
||||||
|
CONFIG += warn_off
|
||||||
|
|
||||||
|
# Include global qmake defs
|
||||||
|
include(../globaldefs.pri)
|
||||||
|
|
||||||
# Force MSVC to compile C as C++ for atomic support
|
# Force MSVC to compile C as C++ for atomic support
|
||||||
*-msvc {
|
*-msvc {
|
||||||
QMAKE_CFLAGS += /TP
|
QMAKE_CFLAGS += /TP
|
||||||
|
@ -28,9 +28,6 @@ CONFIG += staticlib
|
||||||
QMAKE_CFLAGS += -std=gnu99
|
QMAKE_CFLAGS += -std=gnu99
|
||||||
}
|
}
|
||||||
|
|
||||||
# Disable warnings
|
|
||||||
CONFIG += warn_off
|
|
||||||
|
|
||||||
unix:!macx {
|
unix:!macx {
|
||||||
CONFIG += link_pkgconfig
|
CONFIG += link_pkgconfig
|
||||||
|
|
||||||
|
@ -44,11 +41,6 @@ unix:!macx {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CONFIG(release, debug|release) {
|
|
||||||
# Disable asserts on release builds
|
|
||||||
DEFINES += NDEBUG
|
|
||||||
}
|
|
||||||
|
|
||||||
DEFINES += \
|
DEFINES += \
|
||||||
SOUNDIO_STATIC_LIBRARY \
|
SOUNDIO_STATIC_LIBRARY \
|
||||||
SOUNDIO_VERSION_MAJOR=1 \
|
SOUNDIO_VERSION_MAJOR=1 \
|
||||||
|
|
Loading…
Reference in a new issue