| 710 | } |
| 711 | |
| 712 | void cmGhsMultiTargetGenerator::WriteCustomCommandLine( |
| 713 | std::ostream& fout, std::string& fname, cmCustomCommandGenerator const& ccg) |
| 714 | { |
| 715 | /* NOTE: Customization Files are not well documented. Testing showed |
| 716 | * that ":outputName=file" can only be used once per script. The |
| 717 | * script will only run if ":outputName=file" is missing or just run |
| 718 | * once if ":outputName=file" is not specified. If there are |
| 719 | * multiple outputs then the script needs to be listed multiple times |
| 720 | * for each output. Otherwise it won't rerun the script if one of |
| 721 | * the outputs is manually deleted. |
| 722 | */ |
| 723 | bool specifyExtra = true; |
| 724 | for (auto const& out : ccg.GetOutputs()) { |
| 725 | fout << fname << '\n'; |
| 726 | fout << " :outputName=\"" << out << "\"\n"; |
| 727 | if (specifyExtra) { |
| 728 | for (auto const& byp : ccg.GetByproducts()) { |
| 729 | fout << " :extraOutputFile=\"" << byp << "\"\n"; |
| 730 | } |
| 731 | for (auto const& dep : ccg.GetDepends()) { |
| 732 | fout << " :depends=\"" << dep << "\"\n"; |
| 733 | } |
| 734 | specifyExtra = false; |
| 735 | } |
| 736 | } |
| 737 | } |
| 738 | |
| 739 | std::string cmGhsMultiTargetGenerator::WriteObjectLangOverride( |
| 740 | cmSourceFile const* sourceFile) |
no test coverage detected