Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: google_apis/BUILD.gn

Issue 774353003: gn format // (the rest) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase net Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « device/usb/BUILD.gn ('k') | gpu/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 6
7 declare_args() { 7 declare_args() {
8 # You can set the variable 'use_official_google_api_keys' to true 8 # You can set the variable 'use_official_google_api_keys' to true
9 # to use the Google-internal file containing official API keys 9 # to use the Google-internal file containing official API keys
10 # for Google Chrome even in a developer build. Setting this 10 # for Google Chrome even in a developer build. Setting this
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 # See google_api_key. 46 # See google_api_key.
47 google_default_client_id = "" 47 google_default_client_id = ""
48 48
49 # See google_api_key. 49 # See google_api_key.
50 google_default_client_secret = "" 50 google_default_client_secret = ""
51 } 51 }
52 52
53 if (use_official_google_api_keys == "") { 53 if (use_official_google_api_keys == "") {
54 # Default behavior, check if the key file exists. 54 # Default behavior, check if the key file exists.
55 check_internal_result = exec_script( 55 check_internal_result =
56 "build/check_internal.py", 56 exec_script("build/check_internal.py",
57 [ rebase_path("internal/google_chrome_api_keys.h", root_build_dir) ], 57 [ rebase_path("internal/google_chrome_api_keys.h",
58 "value") 58 root_build_dir) ],
59 use_official_google_api_keys = (check_internal_result == 1) 59 "value")
60 use_official_google_api_keys = check_internal_result == 1
60 } 61 }
61 62
62 config("key_defines") { 63 config("key_defines") {
63 defines = [] 64 defines = []
64 if (use_official_google_api_keys) { 65 if (use_official_google_api_keys) {
65 defines += [ "USE_OFFICIAL_GOOGLE_API_KEYS=1" ] 66 defines += [ "USE_OFFICIAL_GOOGLE_API_KEYS=1" ]
66 } 67 }
67 if (google_api_key != "") { 68 if (google_api_key != "") {
68 defines += [ "GOOGLE_API_KEY=$google_api_key" ] 69 defines += [ "GOOGLE_API_KEY=$google_api_key" ]
69 } 70 }
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 "drive/drive_api_url_generator_unittest.cc", 237 "drive/drive_api_url_generator_unittest.cc",
237 "drive/gdata_wapi_parser_unittest.cc", 238 "drive/gdata_wapi_parser_unittest.cc",
238 "drive/gdata_wapi_requests_unittest.cc", 239 "drive/gdata_wapi_requests_unittest.cc",
239 "drive/gdata_wapi_url_generator_unittest.cc", 240 "drive/gdata_wapi_url_generator_unittest.cc",
240 "drive/request_sender_unittest.cc", 241 "drive/request_sender_unittest.cc",
241 "drive/request_util_unittest.cc", 242 "drive/request_util_unittest.cc",
242 "drive/time_util_unittest.cc", 243 "drive/time_util_unittest.cc",
243 ] 244 ]
244 } 245 }
245 } 246 }
OLDNEW
« no previous file with comments | « device/usb/BUILD.gn ('k') | gpu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698