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

Method generateObjectsRules

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

Source from the content-addressed store, hash-verified

448 super(path)
449 }
450 generateObjectsRules(tool) {
451 for (var result of tool.cFiles) {
452 var source = result.source;
453 var target = result.target;
454 this.line("$(TMP_DIR)\\", target, ": ", source, " $(HEADERS)");
455 if (result.recipe) {
456 var recipe = tool.recipes[result.recipe];
457 recipe = recipe.replace(/\$</g, source);
458 this.write(recipe);
459 }
460 else {
461 this.echo(tool, "cc ", target);
462 this.line("\t$(CC) $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) ", source, " -o $@");
463 }
464 }
465 }
466}
467
468class nrf52NMakeFile extends NMakeFile {

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