Files
pilotclient/mkspecs/features/externals.pri
Roland Winklmeier 925c3d6210 Limit crashpad's INCLUDEPATH to blackcore
Summary:
Only blackcore includes the headers of crashpad. It is therefore
not necessary to add this include paths globally for all projects.

Reviewers: #swift_pilot_client, kbasan

Reviewed By: #swift_pilot_client, kbasan

Subscribers: jenkins

Differential Revision: https://dev.swift-project.org/D70
2017-12-08 00:48:58 +01:00

55 lines
1.6 KiB
Plaintext

################################
# Path to external dependencies
################################
# If you want to manually set the external path, uncomment the following line
# EXTERNALSROOT = /path/to/externals
isEmpty(EXTERNALSROOT) {
EXTERNALSROOT = $$(SWIFT_EXTERNALS_DIR)
}
isEmpty(EXTERNALSROOT) {
EXTERNALSROOT = $$SourceRoot/externals
}
!exists("$$EXTERNALSROOT/common/include") {
error("Could not find externals in $${EXTERNALSROOT}. Please install them!")
}
################################
# Externals
################################
EXTERNALS_SPEC = $$basename(QMAKESPEC)
msvc {
clang_cl: EXTERNALS_SPEC = win32-msvc2015
win32-msvc2017: EXTERNALS_SPEC = win32-msvc2015
win32-msvc {
# From Qt 5.8.1 onwards, QMAKESPEC is win32-msvc without the version number
# see https://codereview.qt-project.org/#/c/162754/
lessThan(MSVC_VER, 14.0) | greaterThan(MSVC_VER, 15.0) {
error(This version of Visual Studio is not supported (MSVC_VER = $$MSVC_VER))
}
EXTERNALS_SPEC = win32-msvc2015
}
}
INCLUDEPATH *= $$EXTERNALSROOT/common/include
INCLUDEPATH *= $$EXTERNALSROOT/$$EXTERNALS_SPEC/include
equals(WORD_SIZE,64) {
EXTERNALS_BIN_DIR = $$EXTERNALSROOT/$$EXTERNALS_SPEC/bin64
EXTERNALS_LIB_DIR = $$EXTERNALSROOT/$$EXTERNALS_SPEC/lib64
}
equals(WORD_SIZE,32) {
EXTERNALS_BIN_DIR = $$EXTERNALSROOT/$$EXTERNALS_SPEC/bin32
EXTERNALS_LIB_DIR = $$EXTERNALSROOT/$$EXTERNALS_SPEC/lib32
}
LIBS *= -L$$EXTERNALS_LIB_DIR
macx: LIBS *= -F$$EXTERNALS_LIB_DIR
win32: LIBS *= -luser32
INCLUDEPATH *= $$EXTERNALDIR/common/include