diff --git a/BUILD b/BUILD index 554dced8e8..7e484d42ad 100644 --- a/BUILD +++ b/BUILD @@ -388,12 +388,9 @@ pkg_files( pkg_filegroup( name = "otel_sdk_files", srcs = [ - "otel_sdk_d_bin_files", - "otel_sdk_d_lib_files", "otel_sdk_header_files", - "otel_sdk_r_bin_files", + "otel_sdk_d_lib_files", "otel_sdk_r_lib_files", - "otel_sdk_rd_bin_files", "otel_sdk_rd_lib_files", "otel_sdk_d_src_bundle", "otel_sdk_r_src_bundle", @@ -401,9 +398,23 @@ pkg_filegroup( ], ) +# On windows we have .dll files in bin/, and import .lib files in lib/ +# On linux/mac we have only .so/.dylib files in lib/ only. +pkg_filegroup( + name = "otel_sdk_files_windows", + srcs = [ + "otel_sdk_d_bin_files", + "otel_sdk_r_bin_files", + "otel_sdk_rd_bin_files", + ], +) + pkg_zip( name = "otel_sdk_zip", - srcs = ["otel_sdk_files"], + srcs = ["otel_sdk_files"] + select({ + "@platforms//os:windows": ["otel_sdk_files_windows"], + "//conditions:default": [], + }), out = "otel_sdk.zip", tags = ["manual"], )