diff --git a/tensorflow_io/core/BUILD b/tensorflow_io/core/BUILD index a7d381034..3563b0432 100644 --- a/tensorflow_io/core/BUILD +++ b/tensorflow_io/core/BUILD @@ -744,6 +744,18 @@ cc_binary( }), ) +cc_binary( + name = "python/ops/libtensorflow_io_plugins.so", + copts = tf_io_copts(), + linkshared = 1, + deps = select({ + "//tensorflow_io/core:static_build_on": [], + "//conditions:default": [ + "//tensorflow_io/core/plugins:plugins", + ], + }), +) + cc_binary( name = "python/ops/libtensorflow_io_golang.so", copts = tf_io_copts(), diff --git a/tensorflow_io/core/plugins/http/BUILD b/tensorflow_io/core/plugins/http/BUILD index 7570b1c3a..b9bbc9066 100644 --- a/tensorflow_io/core/plugins/http/BUILD +++ b/tensorflow_io/core/plugins/http/BUILD @@ -7,15 +7,6 @@ load( "tf_io_copts", ) -cc_binary( - name = "_gcs_config_ops.so", - copts = tf_io_copts(), - linkshared = 1, - deps = [ - ":gcs_config_ops", - ], -) - cc_library( name = "http", srcs = [