+SPECIAL_RECIPES = [
+ ('android-mustpass', [
+ RunScript(os.path.join("scripts", "build_android_mustpass.py"),
+ lambda env: ["--build-dir", os.path.join(env.tmpDir, "android-mustpass")]),
+ ]),
+ ('vulkan-mustpass', [
+ RunScript(os.path.join("external", "vulkancts", "scripts", "build_mustpass.py"),
+ lambda env: ["--build-dir", os.path.join(env.tmpDir, "vulkan-mustpass")]),
+ ]),
+ ('gen-inl-files', [
+ RunScript(os.path.join("scripts", "gen_egl.py")),
+ RunScript(os.path.join("scripts", "opengl", "gen_all.py")),
+ RunScript(os.path.join("external", "vulkancts", "scripts", "gen_framework.py")),
+ RunScript(os.path.join("scripts", "src_util", "check_all.py")),
+ ])
+]
+
+def getBuildRecipes ():
+ return [(b.getName(), [b]) for b in BUILD_TARGETS]
+
+def getAllRecipe (recipes):
+ allSteps = []
+ for name, steps in recipes:
+ allSteps += steps
+ return ("all", allSteps)
+
+def getRecipes ():
+ recipes = getBuildRecipes()
+ recipes += SPECIAL_RECIPES
+ return recipes
+
+def getRecipe (recipes, recipeName):
+ for curName, steps in recipes:
+ if curName == recipeName:
+ return (curName, steps)
+ return None
+
+RECIPES = getRecipes()
+