MCPcopy Index your code
hub / github.com/Moddable-OpenSource/moddable / generateObjectsRules

Method generateObjectsRules

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

Source from the content-addressed store, hash-verified

425 super(path)
426 }
427 generateObjectsRules(tool) {
428 for (var result of tool.cFiles) {
429 var source = result.source;
430 var target = result.target;
431 this.line("$(TMP_DIR)\\", target, ": ", source, " $(HEADERS)");
432 if (result.recipe) {
433 var recipe = tool.recipes[result.recipe];
434 recipe = recipe.replace(/\$</g, source);
435 this.write(recipe);
436 }
437 else {
438 this.echo(tool, "cc ", target);
439 this.line("\t$(CC) $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) ", source, " -o $@");
440 this.line("\t$(AR) $(AR_OPTIONS) $(APP_ARCHIVE) $@");
441 }
442 }
443 }
444}
445
446class esp32NMakeFile 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