blob: 2cddbaad9f12efb5fcdd7abe9cdf6870735ad569 [file]
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
package(default_visibility = ["//visibility:public"])
cc_library(
name = "antlr4",
srcs = glob(["antlr4-runtime/**/*.cpp"]),
hdrs = ["antlr4-runtime/antlr4-runtime.h"],
copts = ["-fexceptions"],
defines = ["ANTLR4CPP_USING_ABSEIL"],
features = ["-use_header_modules"],
includes = ["antlr4-runtime/"],
textual_hdrs = glob(
["antlr4-runtime/**/*.h"],
exclude = ["antlr4-runtime/antlr4-runtime.h"],
),
deps = [
"@abseil-cpp//absl/base",
"@abseil-cpp//absl/base:core_headers",
"@abseil-cpp//absl/container:flat_hash_map",
"@abseil-cpp//absl/container:flat_hash_set",
"@abseil-cpp//absl/synchronization",
],
)