def METHOD_NAME(srcs, hdrs, deps = []):
    """Determines the list of inputs required for a compile action."""
    cc_infos = [dep[CcInfo] for dep in deps if CcInfo in dep]
    dep_headers = depset(transitive = [
        cc_info.compilation_context.headers
        for cc_info in cc_infos
    ])
    return depset(srcs + hdrs, transitive = [dep_headers])