diff --git a/.gitignore b/.gitignore index 554a3800..0e661004 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,8 @@ freetype-* build/* dist/* +.eggs/* +kivy_ios.egg-info/* src/SDL/Xcode-iPhoneOS/SDL/build/ src/SDL/Xcode-iOS/SDL/build/ tmp/* diff --git a/kivy_ios/toolchain.py b/kivy_ios/toolchain.py index f1130153..4365e239 100755 --- a/kivy_ios/toolchain.py +++ b/kivy_ios/toolchain.py @@ -1188,7 +1188,7 @@ def _hostpython_pip(args): shprint(pip_cmd, *args) -def update_pbxproj(filename, pbx_frameworks=None): +def update_pbxproj(filename, pbx_frameworks=None, custom_recipes=None): # list all the compiled recipes ctx = Context() pbx_libraries = [] @@ -1197,7 +1197,8 @@ def update_pbxproj(filename, pbx_frameworks=None): frameworks = [] libraries = [] sources = [] - for recipe in Recipe.list_recipes(): + recipes = custom_recipes + Recipe.list_recipes() + for recipe in recipes: key = "{}.build_all".format(recipe) if key not in ctx.state: continue @@ -1458,6 +1459,8 @@ def update(self): description="Update an existing xcode project") parser.add_argument("filename", help="Path to your project or xcodeproj") 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="Name of custom recipe to include in this project (the recipe must already have been built with the 'build' command)") args = parser.parse_args(sys.argv[2:]) filename = self.find_xcodeproj(args.filename) @@ -1466,7 +1469,7 @@ def update(self): logger.error("{} not found".format(filename)) sys.exit(1) - update_pbxproj(filename, pbx_frameworks=args.add_framework) + update_pbxproj(filename, pbx_frameworks=args.add_framework, custom_recipes=add_custom_recipe) print("--") print("Project {} updated".format(filename))