{android,win32}/build.py: allow overriding shared path via environment

This commit is contained in:
Max Kellermann 2015-06-03 07:48:38 +02:00
parent d1d44a4fde
commit 07c5d3277f
2 changed files with 14 additions and 4 deletions

View File

@ -37,8 +37,13 @@ mpd_path = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]) or '.', '..
# output directories # output directories
lib_path = os.path.abspath('lib') 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) arch_path = os.path.join(lib_path, host_arch)
build_path = os.path.join(arch_path, 'build') build_path = os.path.join(arch_path, 'build')
root_path = os.path.join(arch_path, 'root') root_path = os.path.join(arch_path, 'root')

View File

@ -19,8 +19,13 @@ mpd_path = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]) or '.', '..
# output directories # output directories
lib_path = os.path.abspath('lib') 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) arch_path = os.path.join(lib_path, host_arch)
build_path = os.path.join(arch_path, 'build') build_path = os.path.join(arch_path, 'build')
root_path = os.path.join(arch_path, 'root') root_path = os.path.join(arch_path, 'root')