aboutsummaryrefslogtreecommitdiffstats
path: root/android
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-06-03 07:48:38 +0200
committerMax Kellermann <max@duempel.org>2015-06-03 07:48:38 +0200
commit07c5d3277fb6fed193fe250e191cd60054c376e7 (patch)
tree07748e4bd662a1919c28f10e232666611f53c688 /android
parentd1d44a4fdebe1258d4ec81a9eff3224f40458107 (diff)
downloadmpd-07c5d3277fb6fed193fe250e191cd60054c376e7.tar.gz
mpd-07c5d3277fb6fed193fe250e191cd60054c376e7.tar.xz
mpd-07c5d3277fb6fed193fe250e191cd60054c376e7.zip
{android,win32}/build.py: allow overriding shared path via environment
Diffstat (limited to 'android')
-rwxr-xr-xandroid/build.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/android/build.py b/android/build.py
index e484bd9a6..657c7b28b 100755
--- a/android/build.py
+++ b/android/build.py
@@ -37,8 +37,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')