2015-07-10 11:28:30 +02:00
|
|
|
include(common.pri)
|
2014-05-07 10:47:53 +02:00
|
|
|
|
2017-04-10 21:18:36 +02:00
|
|
|
#Check if Qt version >= 5.2.0
|
|
|
|
!minQtVersion(5, 2, 0) {
|
2014-05-07 10:47:53 +02:00
|
|
|
message("Cannot build Valentina with Qt version $${QT_VERSION}.")
|
2017-04-10 21:18:36 +02:00
|
|
|
error("Use at least Qt 5.2.0.")
|
2014-05-07 10:47:53 +02:00
|
|
|
}
|
|
|
|
|
2016-09-06 10:54:18 +02:00
|
|
|
#These checks need because we can quote all paths that contain space.
|
|
|
|
LIST = $$split(PWD,' ')
|
|
|
|
count(LIST, 1, >): error("The build will fail. Path '$${PWD}' contains space!!!")
|
|
|
|
|
|
|
|
LIST = $$split(OUT_PWD,' ')
|
|
|
|
count(LIST, 1, >): error("The build will fail. Path '$${OUT_PWD}' contains space!!!")
|
|
|
|
|
2016-08-07 13:14:17 +02:00
|
|
|
unix {
|
2017-07-05 10:35:32 +02:00
|
|
|
*g++* {
|
2016-08-07 13:14:17 +02:00
|
|
|
GCC_VERSION = $$system("g++ -dumpversion")
|
2017-05-30 15:58:01 +02:00
|
|
|
contains(GCC_VERSION, ^7.*$) {
|
2017-03-23 09:36:11 +01:00
|
|
|
message( "g++ version 7.x found" )
|
|
|
|
CONFIG += g++7
|
2016-08-07 13:14:17 +02:00
|
|
|
} else {
|
2017-05-30 15:58:01 +02:00
|
|
|
contains(GCC_VERSION, ^6.*$) {
|
2017-03-23 09:36:11 +01:00
|
|
|
message( "g++ version 6.x found" )
|
|
|
|
CONFIG += g++6
|
2016-08-07 13:14:17 +02:00
|
|
|
} else {
|
2017-05-30 15:58:01 +02:00
|
|
|
contains(GCC_VERSION, ^5.*$) {
|
2017-03-23 09:36:11 +01:00
|
|
|
message( "g++ version 5.x found" )
|
|
|
|
CONFIG += g++5
|
2016-08-07 13:14:17 +02:00
|
|
|
} else {
|
2017-05-30 15:58:01 +02:00
|
|
|
contains(GCC_VERSION, ^4.*$) {
|
2017-03-23 09:36:11 +01:00
|
|
|
message( "g++ version 4.x found" )
|
|
|
|
CONFIG += g++4
|
|
|
|
} else {
|
|
|
|
message( "Unknown GCC configuration" )
|
|
|
|
}
|
2016-08-07 13:14:17 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-04-25 10:58:33 +02:00
|
|
|
TEMPLATE = subdirs
|
|
|
|
SUBDIRS = src
|