1# Copyright 2024 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") 16 17bzl_library( 18 name = "common", 19 srcs = glob(["*.bzl"]), 20 visibility = ["//visibility:public"], 21 deps = ["//cc/private/rules_impl:native_bzl"], 22) 23 24bzl_library( 25 name = "cc_helper_bzl", 26 srcs = ["cc_helper.bzl"], 27 visibility = ["//visibility:public"], 28 deps = [":visibility_bzl"], 29) 30 31bzl_library( 32 name = "cc_debug_helper_bzl", 33 srcs = ["cc_debug_helper.bzl"], 34 visibility = ["//visibility:public"], 35 deps = [ 36 ":cc_helper_bzl", 37 ":visibility_bzl", 38 "//cc:find_cc_toolchain_bzl", 39 ], 40) 41 42bzl_library( 43 name = "visibility_bzl", 44 srcs = ["visibility.bzl"], 45 visibility = ["//visibility:private"], 46) 47 48filegroup( 49 name = "srcs", 50 srcs = glob([ 51 "**/*.bzl", 52 "**/BUILD", 53 ]), 54 visibility = ["//visibility:public"], 55) 56