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

Method filterRecipes

tools/mcconfig.js:1155–1175  ·  view source on GitHub ↗
(recipes)

Source from the content-addressed store, hash-verified

1153 }
1154 }
1155 filterRecipes(recipes) {
1156 this.recipes = {};
1157 for (var cFile of this.cFiles)
1158 cFile.recipe = null;
1159 for (var name in recipes) {
1160 var path = this.moddablePath + this.slash + "tools" + this.slash + "mcconfig" + this.slash;
1161 if (this.windows)
1162 path += "nmake.";
1163 else
1164 path += "make.";
1165 path += this.platform + "." + name + ".mk";
1166 this.recipes[name] = this.readFileString(path);
1167 var recipe = recipes[name];
1168 if (recipe instanceof Array) {
1169 for (var pattern of recipe)
1170 this.filterRecipe(name, pattern);
1171 }
1172 else if (recipe)
1173 this.filterRecipe(name, recipe);
1174 }
1175 }
1176 generateAndroidDirectory(from, to) {
1177 this.createDirectory(to);
1178 var names = this.enumerateDirectory(from);

Callers 1

runMethod · 0.80

Calls 1

filterRecipeMethod · 0.80

Tested by

no test coverage detected