diff options
| author | Egor Tensin <egor@tensin.name> | 2026-02-02 22:24:37 +0100 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-02-02 22:24:37 +0100 |
| commit | b632496eb6769c5626e95e3df8a4ff45259474db (patch) | |
| tree | 5d9c1410b504d43e14e0b295da583745ad814888 /project/platform.py | |
| parent | project.build: remove duplicate comment (diff) | |
| download | cmake-common-b632496eb6769c5626e95e3df8a4ff45259474db.tar.gz cmake-common-b632496eb6769c5626e95e3df8a4ff45259474db.zip | |
project.boost: finalize transition from `stage` to `install`
Diffstat (limited to '')
| -rw-r--r-- | project/platform.py | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/project/platform.py b/project/platform.py index d82694b..9bd0e58 100644 --- a/project/platform.py +++ b/project/platform.py @@ -76,30 +76,18 @@ class Platform(Enum): raise NotImplementedError(f'unsupported platform: {self}') def installdir(self, configuration): + '''Path to the installation directory inside the Boost build directory.''' if self is Platform.AUTO: if on_windows(): # On Windows, use the host architecture. return Platform.windows_native().installdir(configuration) - # On Linux, the libraries are stored in stage/auto/CONFIGURATION/lib. + # On Linux, the libraries are stored in root/auto/CONFIGURATION/lib. return os.path.join('root', str(self), str(configuration)) - def stagedir(self, configuration): - '''Path to the built libraries inside the Boost build directory.''' - if self is Platform.AUTO: - if on_windows(): - # On Windows, use the host architecture. - return Platform.windows_native().stagedir(configuration) - # On Linux, the libraries are stored in stage/auto/CONFIGURATION/lib. - return os.path.join('stage', str(self), str(configuration)) - def boost_installdir(self, configuration): '''Same as above, but for CMake.''' return self.installdir(configuration) - def boost_librarydir(self, configuration): - '''Same as above, but for CMake; adds /lib/ at the end.''' - return os.path.join(self.stagedir(configuration), 'lib') - def b2_address_model(self): if self is Platform.AUTO and not on_windows(): # On Linux, don't specify the architecture explicitly (it is @@ -110,9 +98,6 @@ class Platform(Enum): def b2_installdir(self, configuration): return [f'--prefix={self.installdir(configuration)}'] - def b2_stagedir(self, configuration): - return [f'--stagedir={self.stagedir(configuration)}'] - def b2_args(self, configuration): args = [] args += self.b2_address_model() |
