diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-02-01 12:27:38 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-02-01 13:10:52 +0300 |
commit | e5d1c84cfeec23e28f431af569da37b3b341cdcd (patch) | |
tree | 4d48eeaabce135f4a10f746fbe3c772ea5730453 /boost/build/ci/appveyor.py | |
parent | boost/build: multiple --stagedir on Windows also (diff) | |
download | cmake-common-e5d1c84cfeec23e28f431af569da37b3b341cdcd.tar.gz cmake-common-e5d1c84cfeec23e28f431af569da37b3b341cdcd.zip |
boost/build/ci: build in predefined directory
Diffstat (limited to 'boost/build/ci/appveyor.py')
-rw-r--r-- | boost/build/ci/appveyor.py | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/boost/build/ci/appveyor.py b/boost/build/ci/appveyor.py index 7bc009a..4a55e20 100644 --- a/boost/build/ci/appveyor.py +++ b/boost/build/ci/appveyor.py @@ -12,12 +12,13 @@ the AppVeyor-defined environment variables. This script is rarely usefull, since AppVeyor images come with lots of pre-built Boost distributions, but still. -Boost is built in C:\. +Boost is built in C:\projects\boost. ''' import argparse import logging import os +import os.path import sys @@ -33,7 +34,11 @@ def _check_appveyor(): def _get_build_dir(): - return 'C:\\' + return 'C:\\projects' + + +def _get_boost_dir(): + return os.path.join(_get_build_dir(), 'boost') def _get_boost_version(): @@ -88,6 +93,10 @@ def build_appveyor(argv=None): ] build_main(appveyor_argv) + unpacked_boost_dir = version.dir_path(_get_build_dir()) + boost_dir = _get_boost_dir() + os.rename(unpacked_boost_dir, boost_dir) + appveyor_argv = [ 'build', '--configuration', _get_configuration(), @@ -98,9 +107,7 @@ def build_appveyor(argv=None): appveyor_argv += args.link if args.runtime_link is not None: appveyor_argv += ['--runtime-link', args.runtime_link] - appveyor_argv += [ - '--', version.dir_path(_get_build_dir()), - ] + appveyor_argv += ['--', boost_dir] build_main(appveyor_argv + args.b2_args) |