aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/platform.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--project/platform.py19
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()