From 07c5d3277fb6fed193fe250e191cd60054c376e7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 3 Jun 2015 07:48:38 +0200 Subject: {android,win32}/build.py: allow overriding shared path via environment --- win32/build.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'win32') diff --git a/win32/build.py b/win32/build.py index 0b31c50de..e74a43d60 100755 --- a/win32/build.py +++ b/win32/build.py @@ -19,8 +19,13 @@ mpd_path = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]) or '.', '.. # output directories lib_path = os.path.abspath('lib') -tarball_path = os.path.join(lib_path, 'download') -src_path = os.path.join(lib_path, 'src') + +shared_path = lib_path +if 'MPD_SHARED_LIB' in os.environ: + shared_path = os.environ['MPD_SHARED_LIB'] +tarball_path = os.path.join(shared_path, 'download') +src_path = os.path.join(shared_path, 'src') + arch_path = os.path.join(lib_path, host_arch) build_path = os.path.join(arch_path, 'build') root_path = os.path.join(arch_path, 'root') -- cgit v1.2.3