| 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); |