Checks what recipes are being built to see which of the alternative and optional dependencies are being used, and returns a list of these.
(self)
| 110 | return self.name + self.jni_subdir |
| 111 | |
| 112 | def check_recipe_choices(self): |
| 113 | '''Checks what recipes are being built to see which of the alternative |
| 114 | and optional dependencies are being used, |
| 115 | and returns a list of these.''' |
| 116 | recipes = [] |
| 117 | built_recipes = self.ctx.recipe_build_order or [] |
| 118 | for recipe in self.recipe_depends: |
| 119 | if isinstance(recipe, (tuple, list)): |
| 120 | for alternative in recipe: |
| 121 | if alternative in built_recipes: |
| 122 | recipes.append(alternative) |
| 123 | break |
| 124 | return sorted(recipes) |
| 125 | |
| 126 | def get_build_dir_name(self): |
| 127 | choices = self.check_recipe_choices() |