diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-30 00:53:32 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-30 00:53:32 +0300 |
commit | 13cf02dd67ea4e3d1a189a77e1a000c51564a4b9 (patch) | |
tree | 655b23b261a7ba07c05fffc9f658865f81f81629 /project/boost/build.py | |
parent | project: minor-ish refactoring (diff) | |
download | cmake-common-13cf02dd67ea4e3d1a189a77e1a000c51564a4b9.tar.gz cmake-common-13cf02dd67ea4e3d1a189a77e1a000c51564a4b9.zip |
project.build.build: more restrictive defaults
Diffstat (limited to 'project/boost/build.py')
-rw-r--r-- | project/boost/build.py | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/project/boost/build.py b/project/boost/build.py index 6d2b897..fdcf050 100644 --- a/project/boost/build.py +++ b/project/boost/build.py @@ -12,6 +12,15 @@ Usage example: $ python -m project.boost.build -- boost_1_71_0/ --with-filesystem --with-program_options ... + +Consult the output of `python -m project.boost.build --help` for more details. + +By default, only builds: + +* for the current platform, +* Debug & Release configurations, +* static libraries, +* statically linked to the runtime. ''' import argparse @@ -30,11 +39,11 @@ from project.os import on_linux_like import project.utils -DEFAULT_PLATFORMS = Platform.all() -DEFAULT_CONFIGURATIONS = Configuration.all() -DEFAULT_LINK = Linkage.all() +DEFAULT_PLATFORMS = (Platform.native(),) +DEFAULT_CONFIGURATIONS = (Configuration.DEBUG, Configuration.RELEASE,) +DEFAULT_LINK = (Linkage.STATIC,) DEFAULT_RUNTIME_LINK = Linkage.STATIC -DEFAULT_B2_ARGS = ['-d0'] +COMMON_B2_ARGS = ['-d0'] class BuildParameters: @@ -50,9 +59,9 @@ class BuildParameters: link = link or DEFAULT_LINK runtime_link = runtime_link or DEFAULT_RUNTIME_LINK if b2_args: - b2_args = DEFAULT_B2_ARGS + b2_args + b2_args = COMMON_B2_ARGS + b2_args else: - b2_args = DEFAULT_B2_ARGS + b2_args = COMMON_B2_ARGS self.boost_dir = boost_dir self.stage_dir = 'stage' |