diff --git a/BUILD.bazel b/BUILD.bazel index 530eea0423..a43f9a1021 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -14,12 +14,20 @@ # # SPDX-License-Identifier: Apache-2.0 +load("@bazel_skylib//rules:common_settings.bzl", "string_flag") load("@buildifier_prebuilt//:rules.bzl", "buildifier") exports_files(["LICENSE"]) exports_files(["VERSION"]) +# values: auto, on, off +string_flag( + name = "feature_acl", + build_setting_default = "auto", + visibility = ["//visibility:public"], +) + alias( name = "iceoryx_hoofs", actual = "//iceoryx_hoofs", @@ -44,12 +52,6 @@ alias( visibility = ["//visibility:public"], ) -alias( - name = "feature_acl", - actual = "//iceoryx_platform:feature_acl", - visibility = ["//visibility:public"], -) - # Execute `bazel run //:buildifier` to fix formating of all starlark files in the workspace buildifier( name = "buildifier", diff --git a/iceoryx_platform/BUILD.bazel b/iceoryx_platform/BUILD.bazel index 6a98311dd9..d7e66aff92 100644 --- a/iceoryx_platform/BUILD.bazel +++ b/iceoryx_platform/BUILD.bazel @@ -15,7 +15,6 @@ # SPDX-License-Identifier: Apache-2.0 load("@bazel_skylib//lib:selects.bzl", "selects") -load("@bazel_skylib//rules:common_settings.bzl", "string_flag") load("@rules_cc//cc:defs.bzl", "cc_library") load("//bazel:configure_file.bzl", "configure_file") load("//bazel:configure_version.bzl", "configure_version") @@ -67,23 +66,17 @@ configure_version( version_from = "//:VERSION", ) -string_flag( - name = "feature_acl", - build_setting_default = "auto", - visibility = ["//visibility:public"], -) - config_setting( name = "acl_auto", flag_values = { - ":feature_acl": "auto", + "//:feature_acl": "auto", }, ) config_setting( name = "acl_enabled", flag_values = { - ":feature_acl": "on", + "//:feature_acl": "on", }, )