File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -642,6 +642,21 @@ class BootstrapNDKRecipe(Recipe):
642
642
643
643
dir_name = None # The name of the recipe build folder in the jni dir
644
644
645
+ def clean_build (self , arch = None ):
646
+ # we must set python recipe first or `get_recipe_env` will fail
647
+ self .ctx .python_recipe = Recipe .get_recipe (
648
+ 'python3'
649
+ if 'python3' in self .ctx .recipe_build_order
650
+ else 'python2' ,
651
+ self .ctx ,
652
+ )
653
+ for arch in self .ctx .archs if not arch else [arch ]:
654
+ env = self .get_recipe_env (arch )
655
+ # to clean sdl2 recipe, we also needs below to set nel variable
656
+ env ['APP_ALLOW_MISSING_DEPS' ] = 'true'
657
+ with current_directory (self .get_build_dir (arch .arch )):
658
+ shprint (sh .ndk_build , 'clean' , _env = env )
659
+
645
660
def get_build_container_dir (self , arch ):
646
661
return self .get_jni_dir ()
647
662
You can’t perform that action at this time.
0 commit comments