MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / generateObjectsRules

Method generateObjectsRules

tools/mcconfig.js:494–510  ·  view source on GitHub ↗
(tool)

Source from the content-addressed store, hash-verified

492 super(path)
493 }
494 generateObjectsRules(tool) {
495 for (var result of tool.cFiles) {
496 var source = result.source;
497 var target = result.target;
498 this.line("$(TMP_DIR)\\", target, ": ", source, " $(HEADERS)");
499 if (result.recipe) {
500 var recipe = tool.recipes[result.recipe];
501 recipe = recipe.replace(/\$</g, source);
502 this.write(recipe);
503 }
504 else {
505 this.echo(tool, "cc ", target);
506 this.line("\t$(CC) $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) ", source, " -o $@");
507 this.line("\t$(AR) $(AR_OPTIONS) $(ARCHIVE_FILE) $@");
508 }
509 }
510 }
511}
512
513class CMakeListsFile extends PrerequisiteFile {

Callers

nothing calls this directly

Calls 4

replaceMethod · 0.80
echoMethod · 0.80
writeMethod · 0.65
lineMethod · 0.45

Tested by

no test coverage detected