@@ -360,40 +360,41 @@ def _build_libxslt(self, env, prefix_arg, host_arg):
360360 subprocess .check_call (['make' , f'-j{ multiprocessing .cpu_count () + 1 } ' ], cwd = str (libxslt_dir ), env = env )
361361 subprocess .check_call (['make' , f'-j{ multiprocessing .cpu_count () + 1 } ' , 'install' ], cwd = str (libxslt_dir ), env = env )
362362
363+
363364def _build_xmlsec1 (self , env , prefix_arg , host_arg ):
364- self .info ('Building xmlsec1' )
365- xmlsec1_dir = next (self .build_libs_dir .glob ('xmlsec1-*' ))
366- subprocess .check_call (
367- [
368- './configure' ,
369- prefix_arg ,
370- '--disable-shared' ,
371- '--disable-gost' ,
372- '--enable-md5' ,
373- '--enable-ripemd160' ,
374- '--disable-crypto-dl' ,
375- '--enable-static=yes' ,
376- '--enable-shared=no' ,
377- '--enable-static-linking=yes' ,
378- '--with-default-crypto=openssl' ,
379- f'--with-openssl={ self .prefix_dir } ' ,
380- f'--with-libxml={ self .prefix_dir } ' ,
381- f'--with-libxslt={ self .prefix_dir } ' ,
382- * host_arg ,
383- ],
384- cwd = str (xmlsec1_dir ),
385- env = env ,
386- )
387- include_flags = [
388- f'-I{ self .prefix_dir / "include" } ' ,
389- f'-I{ self .prefix_dir / "include" / "libxml" } ' ,
390- ]
391- subprocess .check_call (
392- ['make' , f'-j{ multiprocessing .cpu_count () + 1 } ' , * include_flags ],
393- cwd = str (xmlsec1_dir ),
394- env = env ,
395- )
396- subprocess .check_call (['make' , f'-j{ multiprocessing .cpu_count () + 1 } ' , 'install' ], cwd = str (xmlsec1_dir ), env = env )
365+ self .info ('Building xmlsec1' )
366+ xmlsec1_dir = next (self .build_libs_dir .glob ('xmlsec1-*' ))
367+ subprocess .check_call (
368+ [
369+ './configure' ,
370+ prefix_arg ,
371+ '--disable-shared' ,
372+ '--disable-gost' ,
373+ '--enable-md5' ,
374+ '--enable-ripemd160' ,
375+ '--disable-crypto-dl' ,
376+ '--enable-static=yes' ,
377+ '--enable-shared=no' ,
378+ '--enable-static-linking=yes' ,
379+ '--with-default-crypto=openssl' ,
380+ f'--with-openssl={ self .prefix_dir } ' ,
381+ f'--with-libxml={ self .prefix_dir } ' ,
382+ f'--with-libxslt={ self .prefix_dir } ' ,
383+ * host_arg ,
384+ ],
385+ cwd = str (xmlsec1_dir ),
386+ env = env ,
387+ )
388+ include_flags = [
389+ f'-I{ self .prefix_dir / "include" } ' ,
390+ f'-I{ self .prefix_dir / "include" / "libxml" } ' ,
391+ ]
392+ subprocess .check_call (
393+ ['make' , f'-j{ multiprocessing .cpu_count () + 1 } ' , * include_flags ],
394+ cwd = str (xmlsec1_dir ),
395+ env = env ,
396+ )
397+ subprocess .check_call (['make' , f'-j{ multiprocessing .cpu_count () + 1 } ' , 'install' ], cwd = str (xmlsec1_dir ), env = env )
397398
398399
399400__all__ = ('CrossCompileInfo' , 'LibXmlsecDependencyBuilder' )
0 commit comments