def METHOD_NAME(name, srcs, deps = [], nonportable_deps = []):
    # TODO(drpng): gpu.
    native.cc_library(
        name = name,
        srcs = srcs,
        deps = [
            "@tensorflow_includes//:includes",
            "@tensorflow_solib//:framework_lib",
        ] + deps + nonportable_deps,
        alwayslink = 1,
        copts = tf_copts(),
    )