mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
refs #461 Use the REQUIRES variable in the leaf projects instead of conditions at the SUBDIRS level.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
load(common_pre)
|
||||
|
||||
REQUIRES += contains(BLACK_CONFIG,Doxygen)
|
||||
|
||||
TEMPLATE = lib
|
||||
CONFIG += staticlib
|
||||
CONFIG -= qt
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
load(common_pre)
|
||||
|
||||
REQUIRES += contains(BLACK_CONFIG,Samples)
|
||||
|
||||
TEMPLATE = subdirs
|
||||
CONFIG += ordered
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
load(common_pre)
|
||||
|
||||
REQUIRES += contains(BLACK_CONFIG,BlackCore)
|
||||
|
||||
# GUI is required for the matrix classes
|
||||
# Network for host info etc.
|
||||
QT += network dbus xml multimedia
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
load(common_pre)
|
||||
|
||||
REQUIRES += contains(BLACK_CONFIG,BlackGui)
|
||||
|
||||
QT += network dbus gui svg widgets
|
||||
|
||||
TARGET = blackgui
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
load(common_pre)
|
||||
|
||||
REQUIRES += contains(BLACK_CONFIG,BlackInput)
|
||||
|
||||
QT += network dbus gui widgets multimedia
|
||||
|
||||
TARGET = blackinput
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
load(common_pre)
|
||||
|
||||
REQUIRES += contains(BLACK_CONFIG,BlackSound)
|
||||
|
||||
QT += network dbus gui multimedia
|
||||
|
||||
TARGET = blacksound
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
load(common_pre)
|
||||
|
||||
REQUIRES += contains(BLACK_CONFIG,FS9)
|
||||
|
||||
QT += core dbus gui network concurrent xml
|
||||
|
||||
TARGET = simulatorfs9
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
load(common_pre)
|
||||
|
||||
REQUIRES += contains(BLACK_CONFIG,FSX|FS9)
|
||||
|
||||
QT += core dbus concurrent xml
|
||||
|
||||
TARGET = simulatorfscommon
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
load(common_pre)
|
||||
|
||||
REQUIRES += contains(BLACK_CONFIG,FSX)
|
||||
|
||||
QT += core dbus gui network concurrent xml
|
||||
|
||||
TARGET = simulatorfsx
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
load(common_pre)
|
||||
|
||||
REQUIRES += contains(BLACK_CONFIG,FSX)
|
||||
|
||||
QT += core widgets dbus network
|
||||
|
||||
TARGET = simulatorfsxconfig
|
||||
|
||||
@@ -3,21 +3,11 @@ load(common_pre)
|
||||
TEMPLATE = subdirs
|
||||
CONFIG += ordered
|
||||
|
||||
if (contains(BLACK_CONFIG, FSX) | contains(BLACK_CONFIG, FS9)) {
|
||||
SUBDIRS += fscommon
|
||||
}
|
||||
|
||||
contains(BLACK_CONFIG, FSX) {
|
||||
SUBDIRS += fsx
|
||||
SUBDIRS += fsxconfig
|
||||
}
|
||||
contains(BLACK_CONFIG, FS9) {
|
||||
SUBDIRS += fs9
|
||||
}
|
||||
|
||||
contains(BLACK_CONFIG, XPlane) {
|
||||
SUBDIRS += xplane
|
||||
SUBDIRS += xplaneconfig
|
||||
}
|
||||
SUBDIRS += fscommon
|
||||
SUBDIRS += fsx
|
||||
SUBDIRS += fsxconfig
|
||||
SUBDIRS += fs9
|
||||
SUBDIRS += xplane
|
||||
SUBDIRS += xplaneconfig
|
||||
|
||||
load(common_post)
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
load(common_pre)
|
||||
|
||||
REQUIRES += contains(BLACK_CONFIG,XPlane)
|
||||
|
||||
QT += core dbus network
|
||||
|
||||
TARGET = simulatorxplane
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
load(common_pre)
|
||||
|
||||
REQUIRES += contains(BLACK_CONFIG,XPlane)
|
||||
|
||||
QT += core widgets dbus
|
||||
|
||||
TARGET = simulatorxplaneconfig
|
||||
|
||||
41
src/src.pro
41
src/src.pro
@@ -4,38 +4,15 @@ TEMPLATE = subdirs
|
||||
CONFIG += ordered
|
||||
|
||||
SUBDIRS += blackmisc
|
||||
|
||||
contains(BLACK_CONFIG, BlackSound) {
|
||||
SUBDIRS += blacksound
|
||||
}
|
||||
|
||||
contains(BLACK_CONFIG, BlackInput) {
|
||||
SUBDIRS += blackinput
|
||||
}
|
||||
|
||||
contains(BLACK_CONFIG, BlackCore) {
|
||||
SUBDIRS += blackcore
|
||||
contains(BLACK_CONFIG, BlackGui) {
|
||||
SUBDIRS += blackgui
|
||||
contains(BLACK_CONFIG, SwiftGui) {
|
||||
SUBDIRS += swiftguistandard
|
||||
}
|
||||
contains(BLACK_CONFIG, SwiftCore) {
|
||||
SUBDIRS += swiftcore
|
||||
}
|
||||
contains(BLACK_CONFIG, SwiftData) {
|
||||
SUBDIRS += swiftdata
|
||||
}
|
||||
contains(BLACK_CONFIG, SwiftLauncher) {
|
||||
SUBDIRS += swiftlauncher
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
contains(BLACK_CONFIG, XPlane) {
|
||||
SUBDIRS += xbus/xbus.pro
|
||||
}
|
||||
|
||||
SUBDIRS += blacksound
|
||||
SUBDIRS += blackinput
|
||||
SUBDIRS += blackcore
|
||||
SUBDIRS += blackgui
|
||||
SUBDIRS += swiftguistandard
|
||||
SUBDIRS += swiftcore
|
||||
SUBDIRS += swiftdata
|
||||
SUBDIRS += swiftlauncher
|
||||
SUBDIRS += xbus
|
||||
SUBDIRS += plugins
|
||||
|
||||
load(common_post)
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
load(common_pre)
|
||||
|
||||
REQUIRES += contains(BLACK_CONFIG,SwiftCore)
|
||||
|
||||
QT += core dbus network xml multimedia gui svg
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
load(common_pre)
|
||||
|
||||
REQUIRES += contains(BLACK_CONFIG,SwiftData)
|
||||
|
||||
QT += core dbus network xml multimedia gui svg
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
load(common_pre)
|
||||
|
||||
REQUIRES += contains(BLACK_CONFIG,SwiftGui)
|
||||
|
||||
QT += core dbus gui svg network xml multimedia
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
load(common_pre)
|
||||
|
||||
REQUIRES += contains(BLACK_CONFIG,SwiftLauncher)
|
||||
|
||||
QT += core dbus gui svg network xml multimedia
|
||||
|
||||
# QWebEngine is not supported for MinGW
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
load(common_pre)
|
||||
|
||||
REQUIRES += contains(BLACK_CONFIG,XPlane)
|
||||
|
||||
QT += core gui widgets dbus network
|
||||
|
||||
TEMPLATE = lib
|
||||
|
||||
13
swift.pro
13
swift.pro
@@ -6,20 +6,11 @@ CONFIG += ordered
|
||||
OTHER_FILES += mkspecs/features/*.prf
|
||||
OTHER_FILES += mkspecs/features/*.pri
|
||||
|
||||
contains(BLACK_CONFIG, Doxygen) {
|
||||
SUBDIRS += docs
|
||||
}
|
||||
|
||||
SUBDIRS += resources
|
||||
SUBDIRS += src
|
||||
|
||||
contains(BLACK_CONFIG, Samples) {
|
||||
SUBDIRS += samples
|
||||
}
|
||||
|
||||
contains(BLACK_CONFIG, Unittests) {
|
||||
SUBDIRS += tests
|
||||
}
|
||||
SUBDIRS += samples
|
||||
SUBDIRS += tests
|
||||
|
||||
include(install.pri)
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
load(common_pre)
|
||||
|
||||
REQUIRES += contains(BLACK_CONFIG,Unittests)
|
||||
|
||||
TEMPLATE = subdirs
|
||||
CONFIG += ordered
|
||||
|
||||
|
||||
Reference in New Issue
Block a user