def build_library(self, node, args, kwargs):
    default_library = self.coredata.get_builtin_option('default_library', self.subproject)
    if (default_library == 'shared'):
        return self.build_target(node, args, kwargs, SharedLibraryHolder)
    elif (default_library == 'static'):
        return self.build_target(node, args, kwargs, StaticLibraryHolder)
    elif (default_library == 'both'):
        return self.build_both_libraries(node, args, kwargs)
    else:
        raise InterpreterException('Unknown default_library value: %s.', default_library)
def build_library(self, node, args, kwargs):
    default_library = self.coredata.get_builtin_option('default_library', self.subproject)
    if (default_library == 'shared'):
        return self.build_target(node, args, kwargs, SharedLibraryHolder)
    elif (default_library == 'static'):
        return self.build_target(node, args, kwargs, StaticLibraryHolder)
    elif (default_library == 'both'):
        return self.build_both_libraries(node, args, kwargs)
    else:
        raise InterpreterException('Unknown default_library value: %s.', default_library)