Skip to content

Commit

Permalink
Adds --add-custom-recipe to update and create commands
Browse files Browse the repository at this point in the history
Custom recipes were built but not added to the XCode project.
See: kivy#642
  • Loading branch information
meow464 committed Sep 26, 2021
1 parent 912bbe7 commit 0573477
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kivy_ios/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,7 @@ def create(self):
"{}.xcodeproj".format(args.name.lower()),
"project.pbxproj")

recipes = self.recipes_names_from_paths(args.add_custom_recipes)
recipes = self.recipes_names_from_paths(args.add_custom_recipe)

update_pbxproj(filename, pbx_frameworks=args.add_framework,
custom_recipes=recipes, custom_recipes_paths=args.add_custom_recipe)
Expand All @@ -1484,7 +1484,6 @@ def update(self):
parser.add_argument("--add-framework", action="append", help="Additional Frameworks to include with this project")
parser.add_argument("--add-custom-recipe", action="append", default=[],
help="Path to custom recipe (the recipe must already have been built with the 'build' command)")

args = parser.parse_args(sys.argv[2:])

filename = self.find_xcodeproj(args.filename)
Expand All @@ -1493,7 +1492,7 @@ def update(self):
logger.error("{} not found".format(filename))
sys.exit(1)

recipes = self.recipes_names_from_paths(args.add_custom_recipes)
recipes = self.recipes_names_from_paths(args.add_custom_recipe)

update_pbxproj(filename, pbx_frameworks=args.add_framework,
custom_recipes=recipes, custom_recipes_paths=args.add_custom_recipe)
Expand Down

0 comments on commit 0573477

Please sign in to comment.