Convenient way to build a dependency for all platforms

This commit is contained in:
Kovid Goyal 2019-11-03 08:52:53 +05:30
parent cb8b181daa
commit 24baafdc87
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -180,10 +180,15 @@ class BuildDep(Command):
description = (
'Build a calibre dependency. For e.g. build_dep windows expat.'
' Without arguments builds all deps for specified platform. Use windows 32 for 32bit.'
' Use build_dep all somedep to build a dep for all platforms.'
)
def run(self, opts):
args = opts.cli_args
if args and args[0] == 'all':
for x in ('linux', 'linux 32', 'macos', 'windows', 'windows 32'):
build_dep(x.split() + list(args)[1:])
else:
build_dep(args)