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

Unified 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: Fix nits 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | google_apis/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/BUILD.gn
diff --git a/google_apis/BUILD.gn b/google_apis/BUILD.gn
index 4ce63ba66d30c87e1ade46431f92c188458d3aa3..7be06fd5547f0c6ecff66340c06669d8ca343ccd 100644
--- a/google_apis/BUILD.gn
+++ b/google_apis/BUILD.gn
@@ -173,6 +173,17 @@ template("google_apis_tmpl") {
"drive/time_util.h",
]
}
+
+ if (is_mac || is_ios) {
+ set_sources_assignment_filter([])
+ sources += [
+ "google_api_keys_mac.h",
+ "google_api_keys_mac.mm",
+ ]
+ set_sources_assignment_filter(sources_assignment_filter)
+
+ libs = [ "Foundation.framework" ]
+ }
}
}
@@ -230,6 +241,7 @@ test("google_apis_unittests") {
"gaia/oauth_request_signer_unittest.cc",
"gaia/ubertoken_fetcher_unittest.cc",
"google_api_keys_unittest.cc",
+ "google_api_keys_unittest.h",
]
data = [
@@ -260,4 +272,12 @@ test("google_apis_unittests") {
"drive/time_util_unittest.cc",
]
}
+
+ if (is_mac || is_ios) {
+ set_sources_assignment_filter([])
+ sources += [ "google_api_keys_mac_unittest.mm" ]
+ set_sources_assignment_filter(sources_assignment_filter)
+
+ deps += [ "//third_party/ocmock" ]
+ }
}
« no previous file with comments | « no previous file | google_apis/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698