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

Side by Side Diff: google_apis/BUILD.gn

Issue 2224473002: Add support for loading API keys from Info.plist on iOS and macOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add unit test Created 4 years, 4 months 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 | « no previous file | google_apis/DEPS » ('j') | google_apis/google_api_keys_mac_unittest.mm » ('J')
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 import("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 declare_args() { 8 declare_args() {
9 # You can set the variable 'use_official_google_api_keys' to true 9 # You can set the variable 'use_official_google_api_keys' to true
10 # to use the Google-internal file containing official API keys 10 # to use the Google-internal file containing official API keys
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 "drive/request_sender.cc", 166 "drive/request_sender.cc",
167 "drive/request_sender.h", 167 "drive/request_sender.h",
168 "drive/request_util.cc", 168 "drive/request_util.cc",
169 "drive/request_util.h", 169 "drive/request_util.h",
170 "drive/task_util.cc", 170 "drive/task_util.cc",
171 "drive/task_util.h", 171 "drive/task_util.h",
172 "drive/time_util.cc", 172 "drive/time_util.cc",
173 "drive/time_util.h", 173 "drive/time_util.h",
174 ] 174 ]
175 } 175 }
176
177 if (is_mac || is_ios) {
178 set_sources_assignment_filter([])
179
180 sources += [
181 "google_api_keys_mac.h",
182 "google_api_keys_mac.mm",
183 ]
184
185 set_sources_assignment_filter(sources_assignment_filter)
186 }
176 } 187 }
177 } 188 }
178 189
179 google_apis_tmpl("google_apis") { 190 google_apis_tmpl("google_apis") {
180 deps = [ 191 deps = [
181 "//net", 192 "//net",
182 ] 193 ]
183 } 194 }
184 195
185 static_library("test_support") { 196 static_library("test_support") {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 "drive/base_requests_unittest.cc", 264 "drive/base_requests_unittest.cc",
254 "drive/drive_api_parser_unittest.cc", 265 "drive/drive_api_parser_unittest.cc",
255 "drive/drive_api_requests_unittest.cc", 266 "drive/drive_api_requests_unittest.cc",
256 "drive/drive_api_url_generator_unittest.cc", 267 "drive/drive_api_url_generator_unittest.cc",
257 "drive/files_list_request_runner_unittest.cc", 268 "drive/files_list_request_runner_unittest.cc",
258 "drive/request_sender_unittest.cc", 269 "drive/request_sender_unittest.cc",
259 "drive/request_util_unittest.cc", 270 "drive/request_util_unittest.cc",
260 "drive/time_util_unittest.cc", 271 "drive/time_util_unittest.cc",
261 ] 272 ]
262 } 273 }
274
275 if (is_mac || is_ios) {
276 set_sources_assignment_filter([])
277 sources += [ "google_api_keys_mac_unittest.mm" ]
278 set_sources_assignment_filter(sources_assignment_filter)
279
280 deps += [ "//third_party/ocmock" ]
281 }
263 } 282 }
OLDNEW
« no previous file with comments | « no previous file | google_apis/DEPS » ('j') | google_apis/google_api_keys_mac_unittest.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698