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