@@ -75,19 +75,21 @@ def get_recipe_env(self, arch):
7575 * sdl2_mixer_recipe .get_include_dirs (arch ),
7676 join (self .ctx .bootstrap .build_dir , 'jni' , 'SDL2_ttf' ),
7777 ])
78- if 'sdl3' in self .ctx .recipe_build_order :
79- env ['USE_SDL3' ] = '1'
80- env ['KIVY_SPLIT_EXAMPLES' ] = '1'
81- env ['KIVY_SDL3_PATH' ] = ':' .join ([
82- join (self .ctx .bootstrap .build_dir , 'jni' , 'SDL' , 'include' ),
83- join (self .ctx .bootstrap .build_dir , 'jni' , 'SDL3_image' , 'include' ),
84- join (self .ctx .bootstrap .build_dir , 'jni' , 'SDL3_mixer' , 'include' ),
85- join (self .ctx .bootstrap .build_dir , 'jni' , 'SDL3_ttf' , 'include' ),
86- join (self .ctx .bootstrap .build_dir , 'jni' , 'SDL' , 'include' , 'SDL3' ),
87- join (self .ctx .bootstrap .build_dir , 'jni' , 'SDL3_image' , 'include' , 'SDL3_image' ),
88- join (self .ctx .bootstrap .build_dir , 'jni' , 'SDL3_mixer' , 'include' , 'SDL3_mixer' ),
89- join (self .ctx .bootstrap .build_dir , 'jni' , 'SDL3_ttf' , 'include' , 'SDL3_ttf' ),
90- ])
78+ if "sdl3" in self .ctx .recipe_build_order :
79+ sdl3_mixer_recipe = self .get_recipe ("sdl3_mixer" , self .ctx )
80+ sdl3_image_recipe = self .get_recipe ("sdl3_image" , self .ctx )
81+ sdl3_ttf_recipe = self .get_recipe ("sdl3_ttf" , self .ctx )
82+ sdl3_recipe = self .get_recipe ("sdl3" , self .ctx )
83+ env ["USE_SDL3" ] = "1"
84+ env ["KIVY_SPLIT_EXAMPLES" ] = "1"
85+ env ["KIVY_SDL3_PATH" ] = ":" .join (
86+ [
87+ * sdl3_mixer_recipe .get_include_dirs (arch ),
88+ * sdl3_image_recipe .get_include_dirs (arch ),
89+ * sdl3_ttf_recipe .get_include_dirs (arch ),
90+ * sdl3_recipe .get_include_dirs (arch ),
91+ ]
92+ )
9193
9294 return env
9395
0 commit comments