aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/extensionsystem/copy.pri
blob: 9dc7f8dbd0cf58bf4cd5d6ca6ba2b3fc234fff41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#set COPYFILES and COPYDIR
!equals(_PRO_FILE_PWD_, $$OUT_PWD) { #only do something in case of shadow build
    # stolen from qtcreatorplugin.pri
    copy2build.input = COPYFILES
    copy2build.output = $$COPYDIR/${QMAKE_FUNC_FILE_IN_stripSrcDir}
    isEmpty(vcproj):copy2build.variable_out = PRE_TARGETDEPS
    copy2build.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
    copy2build.name = COPY ${QMAKE_FILE_IN}
    copy2build.CONFIG += no_link
    QMAKE_EXTRA_COMPILERS += copy2build
}