| # Copyright 2020 The Abseil Authors. | |
| # | |
| # 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. | |
| # | |
| load("//ci:cmake.bzl", "define_cmake_tests") | |
| package(default_visibility = ["//visibility:public"]) | |
| licenses(["notice"]) # Apache 2.0 | |
| # Expose license for external usage through bazel. | |
| exports_files([ | |
| "AUTHORS", | |
| "LICENSE", | |
| ]) | |
| define_cmake_tests( | |
| packages = [ | |
| "//absl", | |
| "//absl/algorithm", | |
| "//absl/base", | |
| "//absl/cleanup", | |
| "//absl/container", | |
| "//absl/crc", | |
| "//absl/debugging", | |
| "//absl/flags", | |
| "//absl/functional", | |
| "//absl/hash", | |
| "//absl/log", | |
| "//absl/log/internal", | |
| "//absl/memory", | |
| "//absl/meta", | |
| "//absl/numeric", | |
| "//absl/profiling", | |
| "//absl/random", | |
| "//absl/random/internal", | |
| "//absl/status", | |
| "//absl/strings", | |
| "//absl/synchronization", | |
| "//absl/time", | |
| "//absl/time/internal/cctz", | |
| "//absl/types", | |
| "//absl/utility", | |
| ], | |
| root_srcs = [ | |
| "CMakeLists.txt", | |
| "MODULE.bazel", | |
| "create_lts.py", | |
| ] + glob( | |
| ["CMake/**"], | |
| exclude = [ | |
| "**/BUILD", | |
| "**/BUILD.bazel", | |
| ], | |
| ), | |
| ) | |
| # For building with clang-cl. | |
| # https://bazel.build/configure/windows#clang | |
| platform( | |
| name = "x64_windows-clang-cl", | |
| constraint_values = [ | |
| "@platforms//cpu:x86_64", | |
| "@platforms//os:windows", | |
| "@bazel_tools//tools/cpp:clang-cl", | |
| ], | |
| ) |