1# This file is licensed under the Apache License v2.0 with LLVM Exceptions. 2# See https://llvm.org/LICENSE.txt for license information. 3# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 4 5load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library") 6 7package( 8 default_visibility = ["//visibility:public"], 9 features = ["layering_check"], 10) 11 12licenses(["notice"]) 13 14cc_library( 15 name = "lib", 16 srcs = glob(["*.cpp"]), 17 hdrs = glob(["*.h"]), 18 includes = ["."], 19 deps = [ 20 "//clang:ast", 21 "//clang:basic", 22 "//clang:frontend", 23 "//clang:index", 24 "//clang:lex", 25 "//clang:tooling", 26 "//llvm:BitstreamReader", 27 "//llvm:BitstreamWriter", 28 "//llvm:Support", 29 ], 30) 31 32cc_binary( 33 name = "clang-doc", 34 srcs = ["tool/ClangDocMain.cpp"], 35 stamp = 0, 36 deps = [ 37 ":lib", 38 "//clang:ast", 39 "//clang:ast_matchers", 40 "//clang:driver", 41 "//clang:frontend", 42 "//clang:tooling", 43 "//llvm:Support", 44 ], 45) 46