2015-07-10 11:28:30 +02:00
|
|
|
include(common.pri)
|
2014-05-07 10:47:53 +02:00
|
|
|
|
2019-04-05 14:42:22 +02:00
|
|
|
#Check if Qt version >= 5.4.0
|
|
|
|
!minQtVersion(5, 4, 0) {
|
2014-05-07 10:47:53 +02:00
|
|
|
message("Cannot build Valentina with Qt version $${QT_VERSION}.")
|
2019-04-05 14:42:22 +02:00
|
|
|
error("Use at least Qt 5.4.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")
|
2019-05-05 16:46:13 +02:00
|
|
|
contains(GCC_VERSION, ^9.*$) {
|
|
|
|
message( "g++ version 9.x found" )
|
|
|
|
CONFIG += g++9
|
2016-08-07 13:14:17 +02:00
|
|
|
} else {
|
2019-05-05 16:46:13 +02:00
|
|
|
GCC_VERSION = $$system("g++ -dumpversion")
|
|
|
|
contains(GCC_VERSION, ^8.*$) {
|
|
|
|
message( "g++ version 8.x found" )
|
|
|
|
CONFIG += g++8
|
2016-08-07 13:14:17 +02:00
|
|
|
} else {
|
2019-05-05 16:46:13 +02:00
|
|
|
contains(GCC_VERSION, ^7.*$) {
|
|
|
|
message( "g++ version 7.x found" )
|
|
|
|
CONFIG += g++7
|
2016-08-07 13:14:17 +02:00
|
|
|
} else {
|
2019-05-05 16:46:13 +02:00
|
|
|
contains(GCC_VERSION, ^6.*$) {
|
|
|
|
message( "g++ version 6.x found" )
|
|
|
|
CONFIG += g++6
|
2017-03-23 09:36:11 +01:00
|
|
|
} else {
|
2019-05-05 16:46:13 +02:00
|
|
|
contains(GCC_VERSION, ^5.*$) {
|
|
|
|
message( "g++ version 5.x found" )
|
|
|
|
CONFIG += g++5
|
2018-12-24 19:00:51 +01:00
|
|
|
} else {
|
2019-05-05 16:46:13 +02:00
|
|
|
contains(GCC_VERSION, ^4.*$) {
|
|
|
|
message( "g++ version 4.x found" )
|
|
|
|
CONFIG += g++4
|
|
|
|
} else {
|
|
|
|
message( "Unknown GCC configuration" )
|
|
|
|
}
|
2018-12-24 19:00:51 +01:00
|
|
|
}
|
2017-03-23 09:36:11 +01:00
|
|
|
}
|
2016-08-07 13:14:17 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-04-25 10:58:33 +02:00
|
|
|
TEMPLATE = subdirs
|
|
|
|
SUBDIRS = src
|