Skip to content

Commit

Permalink
Create xcframework for Nearby Connections
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 721539250
  • Loading branch information
ggli-google authored and copybara-github committed Jan 30, 2025
1 parent 79b99ae commit 9e27537
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
24 changes: 24 additions & 0 deletions connections/c/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

load("//third_party/cpptoolchains/windows_llvm/build_defs:windows.bzl", "windows")
load("//tools/build_defs/apple:apple.bzl", "apple_static_xcframework")

package(default_visibility = [
"//connections:__subpackages__",
Expand Down Expand Up @@ -53,6 +54,29 @@ cc_library(
],
)

apple_static_xcframework(
name = "NearbyConnections",
avoid_deps = [],
bundle_name = "NearbyConnections",
ios = {
"simulator": [
"arm64",
"x86_64",
],
"device": [
"arm64",
],
},
minimum_os_versions = {
"ios": "15.0",
},
deps = [
":nc",
"//internal/platform/implementation/apple",
"//internal/platform/implementation/apple/Mediums",
],
)

windows.cc_windows_dll(
name = "nc_windows",
srcs = [],
Expand Down
5 changes: 4 additions & 1 deletion internal/platform/implementation/apple/Mediums/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
# limitations under the License.
licenses(["notice"])

package(default_visibility = ["//internal/platform/implementation/apple:__subpackages__"])
package(default_visibility = [
"//connections:__subpackages__",
"//internal/platform/implementation/apple:__subpackages__",
])

objc_library(
name = "Mediums",
Expand Down

0 comments on commit 9e27537

Please sign in to comment.