mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 14:15:23 +02:00
crecoskie Oct 15, 2005
- Further changes to support macros in buildDefinitions markup. See Bugzilla 111203
This commit is contained in:
parent
1a7b1617d4
commit
9d23691e35
1 changed files with 21 additions and 2 deletions
|
@ -2358,9 +2358,28 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator {
|
|||
buffer.append(WHITESPACE + LOGICAL_AND + WHITESPACE + LINEBREAK);
|
||||
// Get the dependency rule out of the generator
|
||||
String depCmd = depGen.getDependencyCommand(resource, info);
|
||||
buffer.append(depCmd);
|
||||
|
||||
// Resolve any macros in the dep command after it has been generated.
|
||||
// Note: do not trim the result because it will strip out necessary tab characters.
|
||||
try {
|
||||
depCmd = ManagedBuildManager
|
||||
.getBuildMacroProvider()
|
||||
.resolveValueToMakefileFormat(
|
||||
depCmd,
|
||||
EMPTY_STRING,
|
||||
WHITESPACE,
|
||||
IBuildMacroProvider.CONTEXT_FILE,
|
||||
new FileContextData(sourceLocation,
|
||||
outputLocation, null, info
|
||||
.getDefaultConfiguration()
|
||||
.getToolChain()));
|
||||
|
||||
} catch (BuildMacroException e) {
|
||||
}
|
||||
|
||||
buffer.append(depCmd);
|
||||
}
|
||||
|
||||
|
||||
// Echo finished message
|
||||
buffer.append(NEWLINE);
|
||||
buffer.append(TAB + AT + ECHO + WHITESPACE + SINGLE_QUOTE + MESSAGE_FINISH_FILE + WHITESPACE + IN_MACRO + SINGLE_QUOTE + NEWLINE);
|
||||
|
|
Loading…
Add table
Reference in a new issue