0

Extract google_apis gn args to a gni file

This will allow other gn file to use these variables

Change-Id: I4005f1f4a124a19cfe7d2c45b6b3ca68475879c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6298157
Commit-Queue: Olivier Robin <olivierrobin@chromium.org>
Reviewed-by: Boris Sazonov <bsazonov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1425112}
This commit is contained in:
Olivier Robin
2025-02-26 06:28:17 -08:00
committed by Chromium LUCI CQ
parent 37bbf1efc2
commit 50d136b227
2 changed files with 23 additions and 17 deletions

@ -6,27 +6,11 @@ import("//build/buildflag_header.gni")
import("//build/config/chrome_build.gni")
import("//build/config/features.gni")
import("//extensions/buildflags/buildflags.gni")
import("//google_apis/config.gni")
import("//testing/test.gni")
import("//third_party/protobuf/proto_library.gni")
declare_args() {
# Set the variable 'use_official_google_api_keys' to true
# to use the Google-internal file containing official API keys
# even in a developer build. Setting this variable explicitly to
# true will cause the build to fail if the internal file is missing.
#
# Set the variable to false to not use the internal file, even for
# Chrome-branded builds or when it exists in your checkout.
#
# Leave it set to "" to have the variable implicitly set to true for
# Chrome-branded builds or if
# //src/google_apis/internal/google_chrome_api_keys.h is present and false
# otherwise.
# This does not apply to iOS builds, which use different mechanisms and always
# evaluate to use_official_google_api_keys=false.
# See https://crbug.com/1183709.
use_official_google_api_keys = ""
# Set these to bake the specified API keys and OAuth client
# IDs/secrets into your build.
#

22
google_apis/config.gni Normal file

@ -0,0 +1,22 @@
# Copyright 2025 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
declare_args() {
# Set the variable 'use_official_google_api_keys' to true
# to use the Google-internal file containing official API keys
# even in a developer build. Setting this variable explicitly to
# true will cause the build to fail if the internal file is missing.
#
# Set the variable to false to not use the internal file, even for
# Chrome-branded builds or when it exists in your checkout.
#
# Leave it set to "" to have the variable implicitly set to true for
# Chrome-branded builds or if
# //src/google_apis/internal/google_chrome_api_keys.h is present and false
# otherwise.
# This does not apply to iOS builds, which use different mechanisms and always
# evaluate to use_official_google_api_keys=false.
# See https://crbug.com/1183709.
use_official_google_api_keys = ""
}