Files
pilotclient/mkspecs/features/config.pri
Roland Winklmeier 7317ddd155 Add first batch of configuration tests
Summary:
Configuration tests check whether all mandatory dependencies to build
swift are met. They can also be used to check optional dependencies, which
results in certain features to be enabled or disabled.
This first batch tests for mandatory libraries libpng, zlib and OpenGL.
If this is not tested and some libraries are missing, the developer will
be notified very late in the build.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Subscribers: msutcliffe, jenkins

Differential Revision: https://dev.swift-project.org/D34
2017-09-24 19:49:30 +01:00

66 lines
2.3 KiB
Plaintext

## Public Area ##
BLACK_CONFIG *= BlackCore
BLACK_CONFIG *= BlackGui
BLACK_CONFIG *= BlackSound
BLACK_CONFIG *= BlackInput
BLACK_CONFIG *= Samples
BLACK_CONFIG *= Unittests
BLACK_CONFIG *= SwiftData
BLACK_CONFIG *= SwiftCore
BLACK_CONFIG *= SwiftGui
BLACK_CONFIG *= SwiftLauncher
BLACK_CONFIG *= FS9
BLACK_CONFIG *= FSX
BLACK_CONFIG *= P3D
BLACK_CONFIG *= XPlane
BLACK_CONFIG *= ProfileRelease
BLACK_CONFIG *= AssertsInRelease
#BLACK_CONFIG *= AllowNoisyWarnings
BLACK_CONFIG *= PackageInstaller
#BLACK_CONFIG *= Static
BLACK_CONFIG *= Doxygen
#BLACK_CONFIG *= SwiftDevBranch
#BLACK_CONFIG *= SwiftStableBranch
BLACK_CONFIG *= FSUIPC
isEmpty(BLACK_EOL): BLACK_EOL = "20180101"
## Private Area ##
## Dependency Checks ##
load(configure)
defineTest(CheckMandatoryDependency) {
!qtCompileTest($${1}): error(Cannot find $${1} development package. Make sure it is installed. Inspect config.log for more information.)
}
defineTest(CheckOptionalDependency) {
qtCompileTest($${1})
}
# include vatsim client id and key
include(vatsim.pri)
# Header based compiler macros
# DEFINES correspond with buildconfig_gen.cpp.in
!contains(BLACK_CONFIG, BlackSound) { DEFINE_WITH_BLACKSOUND = "//" }
!contains(BLACK_CONFIG, BlackInput) { DEFINE_WITH_BLACKINPUT = "//" }
!contains(BLACK_CONFIG, BlackCore) { DEFINE_WITH_BLACKCORE = "//" }
!contains(BLACK_CONFIG, BlackGui) { DEFINE_WITH_BLACKGUI = "//" }
!contains(BLACK_CONFIG, SwiftData) { DEFINE_WITH_SWIFTDATA = "//" }
!contains(BLACK_CONFIG, SwiftGui) { DEFINE_WITH_SWIFTGUI = "//" }
!contains(BLACK_CONFIG, SwiftCore) { DEFINE_WITH_SWIFTCORE = "//" }
!contains(BLACK_CONFIG, P3D) { DEFINE_WITH_P3D = "//" }
!contains(BLACK_CONFIG, FSX) { DEFINE_WITH_FSX = "//" }
!contains(BLACK_CONFIG, FS9) { DEFINE_WITH_FS9 = "//" }
!contains(BLACK_CONFIG, FSUIPC) { DEFINE_WITH_FSUIPC = "//" }
!contains(BLACK_CONFIG, XPlane) { DEFINE_WITH_XPLANE = "//" }
!contains(BLACK_CONFIG, SwiftDevBranch) { DEFINE_SWIFT_DEV_BRANCH = "//" }
!contains(BLACK_CONFIG, SwiftStableBranch) { DEFINE_SWIFT_STABLE_BRANCH = "//" }
!contains(BLACK_CONFIG, SwiftVatsimSupport) { DEFINE_SWIFT_VATSIM_SUPPORT = "//" }
# Global compiler Macros
contains(BLACK_CONFIG, Static) { DEFINES *= WITH_STATIC }
contains(BLACK_CONFIG, AssertsInRelease) { DEFINES *= QT_FORCE_ASSERTS }