From d4673a2ff058529488dddf2e0520ee68ec88a0c7 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 25 Jan 2021 16:05:51 +0300 Subject: project.ci: use pre-built Boost when available --- project/ci/appveyor/generator.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'project/ci/appveyor') diff --git a/project/ci/appveyor/generator.py b/project/ci/appveyor/generator.py index 19c11df..454bd4a 100644 --- a/project/ci/appveyor/generator.py +++ b/project/ci/appveyor/generator.py @@ -28,6 +28,19 @@ class Image(Enum): def get(): return Image.parse(env('APPVEYOR_BUILD_WORKER_IMAGE')) + def get_prebuilt_boost_dir(self): + # As of 2021-01-25, these are the latest pre-built Boost distributions: + # https://www.appveyor.com/docs/windows-images-software/#boost + if self is Image.VS_2013: + return 'C:\\Libraries\\boost_1_58_0' + if self is Image.VS_2015: + return 'C:\\Libraries\\boost_1_69_0' + if self is Image.VS_2017: + return 'C:\\Libraries\\boost_1_69_0' + if self is Image.VS_2019: + return 'C:\\Libraries\\boost_1_73_0' + raise NotImplementedError(f'unsupported AppVeyor image: {self}') + class Generator(Enum): VS_2013 = 'Visual Studio 12 2013' -- cgit v1.2.3