{android,win32}/build.py: move code to python/build/dirs.py
This commit is contained in:
parent
754b30a7a6
commit
21439108ed
@ -27,13 +27,7 @@ mpd_path = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]) or '.', '..
|
|||||||
sys.path[0] = os.path.join(mpd_path, 'python')
|
sys.path[0] = os.path.join(mpd_path, 'python')
|
||||||
|
|
||||||
# output directories
|
# output directories
|
||||||
lib_path = os.path.abspath('lib')
|
from build.dirs import lib_path, tarball_path, src_path
|
||||||
|
|
||||||
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, arch)
|
arch_path = os.path.join(lib_path, arch)
|
||||||
build_path = os.path.join(arch_path, 'build')
|
build_path = os.path.join(arch_path, 'build')
|
||||||
|
9
python/build/dirs.py
Normal file
9
python/build/dirs.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import os.path
|
||||||
|
|
||||||
|
lib_path = os.path.abspath('lib')
|
||||||
|
|
||||||
|
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')
|
@ -16,13 +16,7 @@ mpd_path = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]) or '.', '..
|
|||||||
sys.path[0] = os.path.join(mpd_path, 'python')
|
sys.path[0] = os.path.join(mpd_path, 'python')
|
||||||
|
|
||||||
# output directories
|
# output directories
|
||||||
lib_path = os.path.abspath('lib')
|
from build.dirs import lib_path, tarball_path, src_path
|
||||||
|
|
||||||
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')
|
||||||
|
Loading…
Reference in New Issue
Block a user