1# Copyright (C) 2022 The Android Open Source Project 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("@perfetto_cfg//:perfetto_cfg.bzl", "PERFETTO_CONFIG") 16 17cc_library( 18 name = "llvm_demangle", 19 srcs = [ 20 "llvm/lib/Demangle/DLangDemangle.cpp", 21 "llvm/lib/Demangle/Demangle.cpp", 22 "llvm/lib/Demangle/ItaniumDemangle.cpp", 23 "llvm/lib/Demangle/MicrosoftDemangle.cpp", 24 "llvm/lib/Demangle/MicrosoftDemangleNodes.cpp", 25 "llvm/lib/Demangle/RustDemangle.cpp", 26 ], 27 hdrs = [ 28 "llvm/include/llvm/Demangle/Demangle.h", 29 "llvm/include/llvm/Demangle/DemangleConfig.h", 30 "llvm/include/llvm/Demangle/ItaniumDemangle.h", 31 "llvm/include/llvm/Demangle/MicrosoftDemangle.h", 32 "llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h", 33 "llvm/include/llvm/Demangle/StringView.h", 34 "llvm/include/llvm/Demangle/Utility.h", 35 ], 36 copts = ["-std=c++14"] + PERFETTO_CONFIG.deps_copts.llvm_demangle, 37 includes = ["llvm/include"], 38 visibility = ["//visibility:public"], 39) 40