diff --git a/internal/platform/implementation/apple/BUILD b/internal/platform/implementation/apple/BUILD index b52e1b0e..2c6616d7 100644 --- a/internal/platform/implementation/apple/BUILD +++ b/internal/platform/implementation/apple/BUILD @@ -73,7 +73,7 @@ objc_library( "@com_google_absl//absl/types:optional", "@nlohmann_json//:json", ] + select({ - "//tools/cc_target_os:platform_ios": [ + "@platforms//os:platform_ios": [ "//third_party/apple_frameworks:UIKit", ], "//conditions:default": [], diff --git a/internal/platform/implementation/apple/Mediums/Ble/Sockets/BUILD b/internal/platform/implementation/apple/Mediums/Ble/Sockets/BUILD index 7f134cf1..255b6a1b 100644 --- a/internal/platform/implementation/apple/Mediums/Ble/Sockets/BUILD +++ b/internal/platform/implementation/apple/Mediums/Ble/Sockets/BUILD @@ -57,7 +57,7 @@ objc_library( "//third_party/apple_frameworks:QuartzCore", "//third_party/objective_c/google_toolbox_for_mac:GTM_Logger", ] + select({ - "//tools/cc_target_os:platform_ios": [ + "@platforms//os:platform_ios": [ "//third_party/apple_frameworks:UIKit", ], "//conditions:default": [], diff --git a/presence/BUILD b/presence/BUILD index d416aee1..6d48be7f 100644 --- a/presence/BUILD +++ b/presence/BUILD @@ -104,7 +104,7 @@ cc_test( "@com_google_absl//absl/types:variant", "@com_google_googletest//:gtest_main", ] + select({ - "//tools/cc_target_os:windows": [ + "@platforms//os:windows": [ "//internal/platform/implementation/windows", ], "//conditions:default": [ @@ -128,7 +128,7 @@ cc_test( "@com_github_protobuf_matchers//protobuf-matchers", "@com_google_googletest//:gtest_main", ] + select({ - "//tools/cc_target_os:windows": [ + "@platforms//os:windows": [ "//internal/platform/implementation/windows", ], "//conditions:default": [ @@ -157,7 +157,7 @@ cc_test( "@com_google_absl//absl/strings", "@com_google_googletest//:gtest_main", ] + select({ - "//tools/cc_target_os:windows": [ + "@platforms//os:windows": [ "//internal/platform/implementation/windows", ], "//conditions:default": [ diff --git a/presence/implementation/BUILD b/presence/implementation/BUILD index 3985f6f1..dec31ae5 100644 --- a/presence/implementation/BUILD +++ b/presence/implementation/BUILD @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. load("@bazel_skylib//rules:common_settings.bzl", "bool_flag") -load("//third_party/bazel_skylib/lib:selects.bzl", "selects") +load("@bazel_skylib//lib:selects.bzl", "selects") licenses(["notice"]) @@ -36,8 +36,8 @@ selects.config_setting_group( name = "norust_or_windows_or_android", match_any = [ ":no_link_with_rust", - "//tools/cc_target_os:windows", - "//tools/cc_target_os:android", + "@platforms//os:windows", + "@platforms//os:android", ], ) @@ -159,7 +159,7 @@ cc_test( "@com_google_absl//absl/strings", "@com_google_googletest//:gtest_main", ] + select({ - "//tools/cc_target_os:windows": [ + "@platforms//os:windows": [ "//internal/platform/implementation/windows", ], "//conditions:default": [ @@ -183,7 +183,7 @@ cc_test( "@com_google_absl//absl/strings", "@com_google_googletest//:gtest_main", ] + select({ - "//tools/cc_target_os:windows": [ + "@platforms//os:windows": [ "//internal/platform/implementation/windows", ], "//conditions:default": [ @@ -206,7 +206,7 @@ cc_test( "@com_github_protobuf_matchers//protobuf-matchers", "@com_google_googletest//:gtest_main", ] + select({ - "//tools/cc_target_os:windows": [ + "@platforms//os:windows": [ "//internal/platform/implementation/windows", ], "//conditions:default": [ @@ -227,7 +227,7 @@ cc_test( "@com_google_absl//absl/strings", "@com_google_googletest//:gtest_main", ] + select({ - "//tools/cc_target_os:windows": [ + "@platforms//os:windows": [ "//internal/platform/implementation/windows", ], "//conditions:default": [ @@ -247,7 +247,7 @@ cc_test( "@com_google_absl//absl/types:variant", "@com_google_googletest//:gtest_main", ] + select({ - "//tools/cc_target_os:windows": [ + "@platforms//os:windows": [ "//internal/platform/implementation/windows", ], "//conditions:default": [ @@ -267,7 +267,7 @@ cc_test( "@com_google_absl//absl/strings", "@com_google_googletest//:gtest_main", ] + select({ - "//tools/cc_target_os:windows": [ + "@platforms//os:windows": [ "//internal/platform/implementation/windows", ], "//conditions:default": [ @@ -294,7 +294,7 @@ cc_test( "@com_google_absl//absl/time", "@com_google_googletest//:gtest_main", ] + select({ - "//tools/cc_target_os:windows": [ + "@platforms//os:windows": [ "//internal/platform/implementation/windows", ], "//conditions:default": [ @@ -317,7 +317,7 @@ cc_test( "@com_google_absl//absl/time", "@com_google_googletest//:gtest_main", ] + select({ - "//tools/cc_target_os:windows": [ + "@platforms//os:windows": [ "//internal/platform/implementation/windows", ], "//conditions:default": [ diff --git a/presence/implementation/mediums/BUILD b/presence/implementation/mediums/BUILD index c8ebe2df..e30cdad4 100644 --- a/presence/implementation/mediums/BUILD +++ b/presence/implementation/mediums/BUILD @@ -50,7 +50,7 @@ cc_test( "@com_github_protobuf_matchers//protobuf-matchers", "@com_google_googletest//:gtest_main", ] + select({ - "//tools/cc_target_os:windows": [ + "@platforms//os:windows": [ "//internal/platform/implementation/windows", ], "//conditions:default": [