MCPcopy Create free account
hub / github.com/Kitware/CMake / WriteRuleFiles

Method WriteRuleFiles

Source/cmMakefileExecutableTargetGenerator.cxx:50–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 default;
49
50void cmMakefileExecutableTargetGenerator::WriteRuleFiles()
51{
52 // create the build.make file and directory, put in the common blocks
53 this->CreateRuleFile();
54
55 // write rules used to help build object files
56 this->WriteCommonCodeRules();
57
58 // write the per-target per-language flags
59 this->WriteTargetLanguageFlags();
60
61 // write in rules for object files and custom commands
62 this->WriteTargetBuildRules();
63
64 // write the device link rules
65 this->WriteDeviceExecutableRule(false);
66
67 // write the link rules
68 this->WriteExecutableRule(false);
69 if (this->GeneratorTarget->NeedRelinkBeforeInstall(this->GetConfigName())) {
70 // Write rules to link an installable version of the target.
71 this->WriteExecutableRule(true);
72 }
73
74 this->WriteTargetLinkDependRules();
75
76 // Write clean target
77 this->WriteTargetCleanRules();
78
79 // Write the dependency generation rule. This must be done last so
80 // that multiple output pair information is available.
81 this->WriteTargetDependRules();
82
83 // close the streams
84 this->CloseFileStreams();
85}
86
87void cmMakefileExecutableTargetGenerator::WriteDeviceExecutableRule(
88 bool relink)

Callers

nothing calls this directly

Calls 11

WriteExecutableRuleMethod · 0.95
CreateRuleFileMethod · 0.80
WriteCommonCodeRulesMethod · 0.80
WriteTargetBuildRulesMethod · 0.80
WriteTargetCleanRulesMethod · 0.80
CloseFileStreamsMethod · 0.80

Tested by

no test coverage detected