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 15load("@bazel_skylib//:bzl_library.bzl", "bzl_library") 16load("@bazel_skylib//rules:common_settings.bzl", "bool_flag") 17 18# A collection of examples showing the usage of rules_cc 19licenses(["notice"]) 20 21bool_flag( 22 name = "incompatible_link_once", 23 build_setting_default = False, 24 visibility = ["//visibility:public"], 25) 26 27bool_flag( 28 name = "enable_permissions_check", 29 build_setting_default = False, 30 visibility = ["//visibility:public"], 31) 32 33bool_flag( 34 name = "experimental_debug", 35 build_setting_default = False, 36 visibility = ["//visibility:public"], 37) 38 39bzl_library( 40 name = "experimental_cc_shared_library_bzl", 41 srcs = ["experimental_cc_shared_library.bzl"], 42 visibility = ["//visibility:private"], 43) 44