Skip to content

Commit

Permalink
half the size of the linux's otel_sdk.zip by only having lib/ .so fil…
Browse files Browse the repository at this point in the history
…es (same for mac)
  • Loading branch information
malkia committed Sep 4, 2024
1 parent e572527 commit 1154aef
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -388,22 +388,33 @@ 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",
"otel_sdk_rd_src_bundle",
],
)

# 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"],
)
Expand Down

0 comments on commit 1154aef

Please sign in to comment.