File tree 3 files changed +29
-10
lines changed
tensorflow_io/core/filesystems
3 files changed +29
-10
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,15 @@ cc_library(
36
36
linkstatic = True ,
37
37
deps = [
38
38
"//tensorflow_io/core/filesystems/az" ,
39
- "//tensorflow_io/core/filesystems/dfs" ,
40
39
"//tensorflow_io/core/filesystems/hdfs" ,
41
40
"//tensorflow_io/core/filesystems/http" ,
42
41
"//tensorflow_io/core/filesystems/s3" ,
43
- ],
42
+ ] + select ({
43
+ "@bazel_tools//src/conditions:windows" : [],
44
+ "@bazel_tools//src/conditions:darwin" : [],
45
+ "//conditions:default" : [
46
+ "//tensorflow_io/core/filesystems/dfs" ,
47
+ ],
48
+ }),
44
49
alwayslink = 1 ,
45
50
)
Original file line number Diff line number Diff line change 9
9
10
10
cc_library (
11
11
name = "dfs" ,
12
- srcs = [
13
- "dfs_filesystem.cc" ,
14
- "dfs_utils.cc" ,
15
- "dfs_utils.h" ,
16
- ],
12
+ srcs = [] + select ({
13
+ "@bazel_tools//src/conditions:windows" : [],
14
+ "@bazel_tools//src/conditions:darwin" : [],
15
+ "//conditions:default" : [
16
+ "dfs_filesystem.cc" ,
17
+ "dfs_utils.cc" ,
18
+ "dfs_utils.h" ,
19
+ ],
20
+ }),
17
21
copts = tf_io_copts (),
18
22
linkstatic = True ,
19
23
deps = [
20
24
"//tensorflow_io/core/filesystems:filesystem_plugins_header" ,
21
25
"@com_google_absl//absl/strings" ,
22
26
"@com_google_absl//absl/synchronization" ,
23
- "@daos" ,
24
- ],
27
+ ] + select ({
28
+ "@bazel_tools//src/conditions:windows" : [],
29
+ "@bazel_tools//src/conditions:darwin" : [],
30
+ "//conditions:default" : [
31
+ "@daos" ,
32
+ ],
33
+ }),
25
34
alwayslink = 1 ,
26
35
)
Original file line number Diff line number Diff line change @@ -29,7 +29,10 @@ limitations under the License.
29
29
TFIO_PLUGIN_EXPORT void TF_InitPlugin (TF_FilesystemPluginInfo* info) {
30
30
info->plugin_memory_allocate = tensorflow::io::plugin_memory_allocate;
31
31
info->plugin_memory_free = tensorflow::io::plugin_memory_free;
32
- info->num_schemes = 8 ;
32
+ info->num_schemes = 7 ;
33
+ #if !defined(__APPLE__) && !defined(_MSC_VER)
34
+ info->num_schemes = info->num_schemes + 1 ;
35
+ #endif
33
36
info->ops = static_cast <TF_FilesystemPluginOps*>(
34
37
tensorflow::io::plugin_memory_allocate (info->num_schemes *
35
38
sizeof (info->ops [0 ])));
@@ -40,5 +43,7 @@ TFIO_PLUGIN_EXPORT void TF_InitPlugin(TF_FilesystemPluginInfo* info) {
40
43
tensorflow::io::hdfs::ProvideFilesystemSupportFor (&info->ops [4 ], " hdfs" );
41
44
tensorflow::io::hdfs::ProvideFilesystemSupportFor (&info->ops [5 ], " viewfs" );
42
45
tensorflow::io::hdfs::ProvideFilesystemSupportFor (&info->ops [6 ], " har" );
46
+ #if !defined(__APPLE__) && !defined(_MSC_VER)
43
47
tensorflow::io::dfs::ProvideFilesystemSupportFor (&info->ops [7 ], " daos" );
48
+ #endif
44
49
}
You can’t perform that action at this time.
0 commit comments