aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/interpreter.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2021-06-17 00:16:58 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2021-06-18 23:48:33 +0200
commit84a3e459a8618956eb3364900d2bd522a70b7fe7 (patch)
treed1800de6d5e026c5368f9395ed5ff24e49fa3758 /mesonbuild/interpreter/interpreter.py
parentc2c7f7c9d7b05dddb1cee028b1b685c7f2bd424c (diff)
downloadmeson-84a3e459a8618956eb3364900d2bd522a70b7fe7.zip
meson-84a3e459a8618956eb3364900d2bd522a70b7fe7.tar.gz
meson-84a3e459a8618956eb3364900d2bd522a70b7fe7.tar.bz2
holders: Introduce BothLibraries
Diffstat (limited to 'mesonbuild/interpreter/interpreter.py')
-rw-r--r--mesonbuild/interpreter/interpreter.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index 13be8e4..494807a 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -2517,7 +2517,7 @@ Try setting b_lundef to false instead.'''.format(self.coredata.options[OptionKey
@FeatureNew('both_libraries', '0.46.0')
def build_both_libraries(self, node, args, kwargs):
- shared_holder = self.build_target(node, args, kwargs, SharedLibraryHolder)
+ shared_lib = self.build_target(node, args, kwargs, build.SharedLibrary)
# Check if user forces non-PIC static library.
pic = True
@@ -2543,21 +2543,21 @@ Try setting b_lundef to false instead.'''.format(self.coredata.options[OptionKey
static_args = [args[0]]
static_kwargs = kwargs.copy()
static_kwargs['sources'] = []
- static_kwargs['objects'] = shared_holder.held_object.extract_all_objects()
+ static_kwargs['objects'] = shared_lib.extract_all_objects()
else:
static_args = args
static_kwargs = kwargs
- static_holder = self.build_target(node, static_args, static_kwargs, StaticLibraryHolder)
+ static_lib = self.build_target(node, static_args, static_kwargs, build.StaticLibrary)
- return BothLibrariesHolder(shared_holder, static_holder, self)
+ return build.BothLibraries(shared_lib, static_lib)
def build_library(self, node, args, kwargs):
default_library = self.coredata.get_option(OptionKey('default_library', subproject=self.subproject))
if default_library == 'shared':
- return self.build_target(node, args, kwargs, SharedLibraryHolder)
+ return self.build_target(node, args, kwargs, build.SharedLibrary)
elif default_library == 'static':
- return self.build_target(node, args, kwargs, StaticLibraryHolder)
+ return self.build_target(node, args, kwargs, build.StaticLibrary)
elif default_library == 'both':
return self.build_both_libraries(node, args, kwargs)
else: