| 1816 | } |
| 1817 | |
| 1818 | void cmGlobalFastbuildGenerator::WriteTargetClean() |
| 1819 | { |
| 1820 | if (AllFilesToClean.empty()) { |
| 1821 | FastbuildAliasNode clean; |
| 1822 | clean.Name = FASTBUILD_CLEAN_TARGET_NAME; |
| 1823 | clean.PreBuildDependencies.emplace(FASTBUILD_CLEAN_FILE_NAME); |
| 1824 | WriteAlias(clean, 0); |
| 1825 | return; |
| 1826 | } |
| 1827 | WriteCleanScript(); |
| 1828 | FastbuildExecNode clean; |
| 1829 | clean.Name = FASTBUILD_CLEAN_TARGET_NAME; |
| 1830 | clean.ExecExecutable = GetExternalShellExecutable(); |
| 1831 | clean.ExecArguments = |
| 1832 | FASTBUILD_SCRIPT_FILE_ARG FASTBUILD_1_INPUT_PLACEHOLDER; |
| 1833 | clean.ExecInput = { FASTBUILD_CLEAN_SCRIPT_NAME }; |
| 1834 | clean.ExecAlways = true; |
| 1835 | clean.ExecUseStdOutAsOutput = true; |
| 1836 | clean.ExecOutput = FASTBUILD_CLEAN_FILE_NAME; |
| 1837 | clean.ExecWorkingDir = this->GetCMakeInstance()->GetHomeOutputDirectory(); |
| 1838 | WriteExec(clean, 0); |
| 1839 | } |
| 1840 | |
| 1841 | void cmGlobalFastbuildGenerator::WriteTargets() |
| 1842 | { |
no test coverage detected