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, build.SharedLibrary)
    elif (default_library == 'static'):
        return self.build_target(node, args, kwargs, build.StaticLibrary)
    elif (default_library == 'both'):
        return self.build_both_libraries(node, args, kwargs)
    else:
        raise InterpreterException(f'Unknown default_library value: {default_library}.')
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, build.SharedLibrary)
    elif (default_library == 'static'):
        return self.build_target(node, args, kwargs, build.StaticLibrary)
    elif (default_library == 'both'):
        return self.build_both_libraries(node, args, kwargs)
    else:
        raise InterpreterException(f'Unknown default_library value: {default_library}.')