def METHOD_NAME(self):
    args = [
        self.define_from_variant("BUILD_SHARED_LIBS", "shared"),
        self.define_from_variant("gRPC_BUILD_CODEGEN", "codegen"),
        self.define_from_variant("CMAKE_CXX_STANDARD", "cxxstd"),
        "-DgRPC_BUILD_CSHARP_EXT:Bool=OFF",
        "-DgRPC_INSTALL:Bool=ON",
        # Tell grpc to skip vendoring and look for deps via find_package:
        "-DgRPC_CARES_PROVIDER:String=package",
        "-DgRPC_ZLIB_PROVIDER:String=package",
        "-DgRPC_SSL_PROVIDER:String=package",
        "-DgRPC_PROTOBUF_PROVIDER:String=package",
        "-DgRPC_USE_PROTO_LITE:Bool=OFF",
        "-DgRPC_PROTOBUF_PACKAGE_TYPE:String=CONFIG",
        # Disable tests:
        "-DgRPC_BUILD_TESTS:BOOL=OFF",
        "-DgRPC_GFLAGS_PROVIDER:String=none",
        "-DgRPC_BENCHMARK_PROVIDER:String=none",
    ]
    if self.spec.satisfies("@1.27.0:"):
        args.append("-DgRPC_ABSL_PROVIDER:String=package")
    if self.spec.satisfies("@1.33.1:"):
        args.append("-DgRPC_RE2_PROVIDER:String=package")
    return args