Commit 9511185c authored by Mirko Bonadei's avatar Mirko Bonadei Committed by Commit Bot

Merge abseil_clients.gni into absl.gni.

No behavior change is expected, this CL only goal is to have one .gni
file in absl in order to maintain it more easily.

Bug: None
Change-Id: I2694a1689755395a855cca94c49152477e5017f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2128077Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Commit-Queue: Mirko Bonadei <mbonadei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#754970}
parent 43bbd38f
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Usage of Abseil in Chromium is guarded by an explicit opt-in list, before
# adding projects to this list please reach out to cxx@chromium.org and CC:
# - https://cs.chromium.org/chromium/src/third_party/abseil-cpp/OWNERS
#
# More information can be found at:
# https://docs.google.com/document/d/1DgS1-A3rzboTLjpf4m1sqkJgWjnY_Ru2dokk1X1vBDU
declare_args() {
# Additional targets that can depend on absl.
# ** DISCLAIMER **
#
# Using "additional_absl_clients" is highly discouraged because it will break
# the component build since Abseil doesn't have export annotations and WebRTC
# is already depending on it. Any CL that use "additional_absl_clients" will
# have a really high probability of being reverted.
additional_absl_clients = []
}
assert(!is_component_build || additional_absl_clients == [])
_chromium_absl_clients = [
"//libassistant/*",
"//third_party/webrtc/*",
"//third_party/abseil-cpp/*",
"//third_party/googletest:gtest",
]
absl_visibility = _chromium_absl_clients + additional_absl_clients
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# to correctly compile abseil in Chromium. # to correctly compile abseil in Chromium.
# #
# Targets that set visibility should set it to something more restrictive than # Targets that set visibility should set it to something more restrictive than
# absl_visibility (defined in //third_party/abseil-cpp/abseil_clients.gni). # `absl_visibility` (defined below).
# #
# Usage: # Usage:
# Most of the times its usage will be similar to the example below but all # Most of the times its usage will be similar to the example below but all
...@@ -21,7 +21,33 @@ ...@@ -21,7 +21,33 @@
# } # }
import("//build_overrides/build.gni") import("//build_overrides/build.gni")
import("//third_party/abseil-cpp/abseil_clients.gni")
# Usage of Abseil in Chromium is guarded by an explicit opt-in list, before
# adding projects to this list please reach out to cxx@chromium.org and CC:
# - https://cs.chromium.org/chromium/src/third_party/abseil-cpp/OWNERS
#
# More information can be found at:
# https://docs.google.com/document/d/1DgS1-A3rzboTLjpf4m1sqkJgWjnY_Ru2dokk1X1vBDU
declare_args() {
# Additional targets that can depend on absl.
# ** DISCLAIMER **
#
# Using "additional_absl_clients" is highly discouraged because it will break
# the component build since Abseil doesn't have export annotations and WebRTC
# is already depending on it. Any CL that use "additional_absl_clients" will
# have a really high probability of being reverted.
additional_absl_clients = []
}
assert(!is_component_build || additional_absl_clients == [])
_chromium_absl_clients = [
"//libassistant/*",
"//third_party/webrtc/*",
"//third_party/abseil-cpp/*",
"//third_party/googletest:gtest",
]
absl_visibility = _chromium_absl_clients + additional_absl_clients
template("absl_source_set") { template("absl_source_set") {
source_set(target_name) { source_set(target_name) {
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
# found in the LICENSE file. # found in the LICENSE file.
import("//build_overrides/build.gni") import("//build_overrides/build.gni")
import("//third_party/abseil-cpp/abseil_clients.gni")
import("//third_party/abseil-cpp/absl.gni") import("//third_party/abseil-cpp/absl.gni")
# Usage of Abseil in Chromium is guarded by an explicit opt-in list, before # Usage of Abseil in Chromium is guarded by an explicit opt-in list, before
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
# found in the LICENSE file. # found in the LICENSE file.
import("//build_overrides/build.gni") import("//build_overrides/build.gni")
import("//third_party/abseil-cpp/abseil_clients.gni")
import("//third_party/abseil-cpp/absl.gni") import("//third_party/abseil-cpp/absl.gni")
# Usage of Abseil in Chromium is guarded by an explicit opt-in list, before # Usage of Abseil in Chromium is guarded by an explicit opt-in list, before
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
# found in the LICENSE file. # found in the LICENSE file.
import("//build_overrides/build.gni") import("//build_overrides/build.gni")
import("//third_party/abseil-cpp/abseil_clients.gni")
import("//third_party/abseil-cpp/absl.gni") import("//third_party/abseil-cpp/absl.gni")
# Usage of Abseil in Chromium is guarded by an explicit opt-in list, before # Usage of Abseil in Chromium is guarded by an explicit opt-in list, before
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment