1# Copyright 2019 The Bazel Authors. All rights reserved. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15# A collection of examples showing the usage of rules_cc 16 17load("@bazel_skylib//:bzl_library.bzl", "bzl_library") 18load("@bazel_skylib//rules:common_settings.bzl", "bool_flag") 19 20licenses(["notice"]) 21 22bool_flag( 23 name = "incompatible_link_once", 24 build_setting_default = False, 25 visibility = ["//visibility:public"], 26) 27 28bool_flag( 29 name = "enable_permissions_check", 30 build_setting_default = False, 31 visibility = ["//visibility:public"], 32) 33 34bool_flag( 35 name = "experimental_debug", 36 build_setting_default = False, 37 visibility = ["//visibility:public"], 38) 39 40bzl_library( 41 name = "experimental_cc_shared_library_bzl", 42 srcs = ["experimental_cc_shared_library.bzl"], 43 visibility = ["//visibility:private"], 44) 45