aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/cloud/kernels/BUILD
blob: 1311063ec023bdaa2588d6f1c826bf900f7dea09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Description:
# BigQueryReader implementation

package(
    default_visibility = ["//visibility:private"],
)

licenses(["notice"])  # Apache 2.0

load(
    "//tensorflow:tensorflow.bzl",
    "tf_cc_test",
    "tf_copts",
    "tf_kernel_library",
)

# For platform specific build config
load(
    "//tensorflow/core:platform/default/build_config.bzl",
    "tf_proto_library",
)

tf_kernel_library(
    name = "bigquery_reader_ops",
    srcs = ["bigquery_reader_ops.cc"],
    visibility = ["//visibility:public"],
    deps = [
        ":bigquery_table_accessor",
        ":bigquery_table_partition_proto_cc",
        "//tensorflow/contrib/cloud:bigquery_reader_ops_op_lib",
        "//tensorflow/core:framework",
        "//tensorflow/core:lib",
        "//tensorflow/core:reader_base",
    ],
)

cc_library(
    name = "bigquery_table_accessor",
    srcs = ["bigquery_table_accessor.cc"],
    hdrs = ["bigquery_table_accessor.h"],
    copts = tf_copts(),
    linkstatic = 1,
    deps = [
        ":bigquery_table_partition_proto_cc",
        "//tensorflow/core:lib",
        "//tensorflow/core:protos_all_cc",
        "//tensorflow/core/platform/cloud:curl_http_request",
        "//tensorflow/core/platform/cloud:google_auth_provider",
    ],
    alwayslink = 1,
)

tf_cc_test(
    name = "bigquery_table_accessor_test",
    size = "small",
    srcs = [
        "bigquery_table_accessor_test.cc",
        "bigquery_table_accessor_test_data.h",
    ],
    deps = [
        ":bigquery_table_accessor",
        "//tensorflow/core:lib",
        "//tensorflow/core:lib_internal",
        "//tensorflow/core:protos_all_cc",
        "//tensorflow/core:test",
        "//tensorflow/core:test_main",
        "//tensorflow/core/platform/cloud:http_request_fake",
    ],
)

tf_proto_library(
    name = "bigquery_table_partition_proto",
    srcs = ["bigquery_table_partition.proto"],
    cc_api_version = 2,
)

tf_kernel_library(
    name = "gcs_config_ops",
    srcs = ["gcs_config_ops.cc"],
    visibility = ["//tensorflow:internal"],
    deps = [
        "//tensorflow/contrib/cloud:gcs_config_ops_op_lib",
        "//tensorflow/core:framework",
        "//tensorflow/core:lib",
        "//tensorflow/core/platform/cloud:curl_http_request",
        "//tensorflow/core/platform/cloud:gcs_file_system",
        "//tensorflow/core/platform/cloud:oauth_client",
        "@jsoncpp_git//:jsoncpp",
    ],
)