2019-08-22 17:49:39 +03:00
|
|
|
#
|
2020-01-06 14:12:22 +03:00
|
|
|
# Copyright (C) 2018-2020 QuasarApp.
|
2019-08-22 17:49:39 +03:00
|
|
|
# Distributed under the lgplv3 software license, see the accompanying
|
|
|
|
# Everyone is permitted to copy and distribute verbatim copies
|
|
|
|
# of this license document, but changing it is not allowed.
|
|
|
|
#
|
|
|
|
|
|
|
|
!isEmpty(CCACHE_INCLUDE):error("ccache.pri already included")
|
|
|
|
CCACHE_INCLUDE = 1
|
|
|
|
|
2019-08-22 18:06:26 +03:00
|
|
|
contains(QMAKE_HOST.os, Linux):{
|
2019-08-22 17:49:39 +03:00
|
|
|
BIN = $$system(which ccache)
|
|
|
|
|
|
|
|
!isEmpty(BIN) {
|
|
|
|
message(ccache detected in $$BIN)
|
|
|
|
QMAKE_CXX='$$BIN $$QMAKE_CXX'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-22 18:06:26 +03:00
|
|
|
|