@FeatureNew('both_libraries', '0.46.0')
def build_both_libraries(self, node, args, kwargs):
    shared_holder = self.build_target(node, args, kwargs, SharedLibraryHolder)
    pic = True
    if ('pic' in kwargs):
        pic = kwargs['pic']
    elif ('b_staticpic' in self.environment.coredata.base_options):
        pic = self.environment.coredata.base_options['b_staticpic'].value
    if pic:
        static_args = [args[0]]
        static_kwargs = kwargs.copy()
        static_kwargs['sources'] = []
        static_kwargs['objects'] = shared_holder.held_object.extract_all_objects()
    else:
        static_args = args
        static_kwargs = kwargs
    static_holder = self.build_target(node, static_args, static_kwargs, StaticLibraryHolder)
    return BothLibrariesHolder(shared_holder, static_holder, self)
@FeatureNew('both_libraries', '0.46.0')
def build_both_libraries(self, node, args, kwargs):
    shared_holder = self.build_target(node, args, kwargs, SharedLibraryHolder)
    pic = True
    if ('pic' in kwargs):
        pic = kwargs['pic']
    elif ('b_staticpic' in self.environment.coredata.base_options):
        pic = self.environment.coredata.base_options['b_staticpic'].value
    if pic:
        static_args = [args[0]]
        static_kwargs = kwargs.copy()
        static_kwargs['sources'] = []
        static_kwargs['objects'] = shared_holder.held_object.extract_all_objects()
    else:
        static_args = args
        static_kwargs = kwargs
    static_holder = self.build_target(node, static_args, static_kwargs, StaticLibraryHolder)
    return BothLibrariesHolder(shared_holder, static_holder, self)