1# use p4 where to get the solutions base dir. 2# need to check for "..." since p4 behaves differently between versions 3# SOLUTIONBASEDIR = $$system(p4 where //depot/addons/main/...) 4 5# figure out the path on your harddrive 6# SOLUTIONBASEDIR = $$member(SOLUTIONBASEDIR, 2) 7SOLUTIONBASEDIR = $$(SOLUTIONBASEDIR) 8 9# strip the trailing "..." 10# SOLUTIONBASEDIR ~= s/\\.\\.\\.$// 11 12# replace \ with / 13# win32:SOLUTIONBASEDIR ~= s.\\\\./.g 14 15isEmpty(SOLUTIONBASEDIR):DEFINES += QT_NO_SOLUTIONS 16 17