From 24baafdc87db8aa5f19f6a3268c06e805260bf58 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 3 Nov 2019 08:52:53 +0530 Subject: [PATCH] Convenient way to build a dependency for all platforms --- setup/installers.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup/installers.py b/setup/installers.py index 5806405c9f..00f7bfc24a 100644 --- a/setup/installers.py +++ b/setup/installers.py @@ -180,11 +180,16 @@ 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 - build_dep(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) class ExportPackages(Command):