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