| OLD | NEW |
| 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/crypto.gni") | |
| 6 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 7 | 6 |
| 8 declare_args() { | 7 declare_args() { |
| 9 # 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 |
| 10 # to use the Google-internal file containing official API keys | 9 # to use the Google-internal file containing official API keys |
| 11 # for Google Chrome even in a developer build. Setting this | 10 # for Google Chrome even in a developer build. Setting this |
| 12 # variable explicitly to true will cause your build to fail if the | 11 # variable explicitly to true will cause your build to fail if the |
| 13 # internal file is missing. | 12 # internal file is missing. |
| 14 # | 13 # |
| 15 # The variable is documented here, but not handled in this file; | 14 # The variable is documented here, but not handled in this file; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 if (google_default_client_id != "") { | 70 if (google_default_client_id != "") { |
| 72 defines += [ "GOOGLE_DEFAULT_CLIENT_ID=$google_default_client_id" ] | 71 defines += [ "GOOGLE_DEFAULT_CLIENT_ID=$google_default_client_id" ] |
| 73 } | 72 } |
| 74 if (google_default_client_secret != "") { | 73 if (google_default_client_secret != "") { |
| 75 defines += [ "GOOGLE_DEFAULT_CLIENT_SECRET=$google_default_client_secret" ] | 74 defines += [ "GOOGLE_DEFAULT_CLIENT_SECRET=$google_default_client_secret" ] |
| 76 } | 75 } |
| 77 } | 76 } |
| 78 | 77 |
| 79 source_set("google_apis") { | 78 source_set("google_apis") { |
| 80 sources = [ | 79 sources = [ |
| 81 "cup/client_update_protocol.cc", | |
| 82 "cup/client_update_protocol.h", | |
| 83 "gaia/gaia_auth_consumer.cc", | 80 "gaia/gaia_auth_consumer.cc", |
| 84 "gaia/gaia_auth_consumer.h", | 81 "gaia/gaia_auth_consumer.h", |
| 85 "gaia/gaia_auth_fetcher.cc", | 82 "gaia/gaia_auth_fetcher.cc", |
| 86 "gaia/gaia_auth_fetcher.h", | 83 "gaia/gaia_auth_fetcher.h", |
| 87 "gaia/gaia_auth_util.cc", | 84 "gaia/gaia_auth_util.cc", |
| 88 "gaia/gaia_auth_util.h", | 85 "gaia/gaia_auth_util.h", |
| 89 "gaia/gaia_constants.cc", | 86 "gaia/gaia_constants.cc", |
| 90 "gaia/gaia_constants.h", | 87 "gaia/gaia_constants.h", |
| 91 "gaia/gaia_oauth_client.cc", | 88 "gaia/gaia_oauth_client.cc", |
| 92 "gaia/gaia_oauth_client.h", | 89 "gaia/gaia_oauth_client.h", |
| (...skipping 28 matching lines...) Expand all Loading... |
| 121 | 118 |
| 122 if (is_win) { | 119 if (is_win) { |
| 123 cflags = [ "/wd4267" ] # size_t -> int | 120 cflags = [ "/wd4267" ] # size_t -> int |
| 124 } | 121 } |
| 125 | 122 |
| 126 configs += [ ":key_defines" ] | 123 configs += [ ":key_defines" ] |
| 127 | 124 |
| 128 deps = [ | 125 deps = [ |
| 129 "//base", | 126 "//base", |
| 130 "//crypto", | 127 "//crypto", |
| 131 "//crypto:platform", | |
| 132 "//net", | 128 "//net", |
| 133 "//third_party/libxml", | 129 "//third_party/libxml", |
| 134 ] | 130 ] |
| 135 | 131 |
| 136 if (use_openssl) { | |
| 137 sources += [ "cup/client_update_protocol_openssl.cc" ] | |
| 138 } else { | |
| 139 sources += [ "cup/client_update_protocol_nss.cc" ] | |
| 140 } | |
| 141 | |
| 142 if (enable_extensions) { | 132 if (enable_extensions) { |
| 143 sources += [ | 133 sources += [ |
| 144 "drive/auth_service.cc", | 134 "drive/auth_service.cc", |
| 145 "drive/auth_service.h", | 135 "drive/auth_service.h", |
| 146 "drive/auth_service_interface.h", | 136 "drive/auth_service_interface.h", |
| 147 "drive/auth_service_observer.h", | 137 "drive/auth_service_observer.h", |
| 148 "drive/base_requests.cc", | 138 "drive/base_requests.cc", |
| 149 "drive/base_requests.h", | 139 "drive/base_requests.h", |
| 150 "drive/drive_api_parser.cc", | 140 "drive/drive_api_parser.cc", |
| 151 "drive/drive_api_parser.h", | 141 "drive/drive_api_parser.h", |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 "drive/dummy_auth_service.h", | 191 "drive/dummy_auth_service.h", |
| 202 "drive/test_util.cc", | 192 "drive/test_util.cc", |
| 203 "drive/test_util.h", | 193 "drive/test_util.h", |
| 204 ] | 194 ] |
| 205 } | 195 } |
| 206 } | 196 } |
| 207 | 197 |
| 208 test("google_apis_unittest") { | 198 test("google_apis_unittest") { |
| 209 sources = [ | 199 sources = [ |
| 210 "google_api_keys_unittest.cc", | 200 "google_api_keys_unittest.cc", |
| 211 "cup/client_update_protocol_unittest.cc", | |
| 212 "gaia/gaia_auth_fetcher_unittest.cc", | 201 "gaia/gaia_auth_fetcher_unittest.cc", |
| 213 "gaia/gaia_auth_util_unittest.cc", | 202 "gaia/gaia_auth_util_unittest.cc", |
| 214 "gaia/gaia_oauth_client_unittest.cc", | 203 "gaia/gaia_oauth_client_unittest.cc", |
| 215 "gaia/google_service_auth_error_unittest.cc", | 204 "gaia/google_service_auth_error_unittest.cc", |
| 216 "gaia/merge_session_helper_unittest.cc", | 205 "gaia/merge_session_helper_unittest.cc", |
| 217 "gaia/oauth_request_signer_unittest.cc", | 206 "gaia/oauth_request_signer_unittest.cc", |
| 218 "gaia/oauth2_access_token_fetcher_impl_unittest.cc", | 207 "gaia/oauth2_access_token_fetcher_impl_unittest.cc", |
| 219 "gaia/oauth2_api_call_flow_unittest.cc", | 208 "gaia/oauth2_api_call_flow_unittest.cc", |
| 220 "gaia/oauth2_mint_token_flow_unittest.cc", | 209 "gaia/oauth2_mint_token_flow_unittest.cc", |
| 221 "gaia/oauth2_token_service_unittest.cc", | 210 "gaia/oauth2_token_service_unittest.cc", |
| (...skipping 20 matching lines...) Expand all Loading... |
| 242 "drive/drive_api_url_generator_unittest.cc", | 231 "drive/drive_api_url_generator_unittest.cc", |
| 243 "drive/gdata_wapi_parser_unittest.cc", | 232 "drive/gdata_wapi_parser_unittest.cc", |
| 244 "drive/gdata_wapi_requests_unittest.cc", | 233 "drive/gdata_wapi_requests_unittest.cc", |
| 245 "drive/gdata_wapi_url_generator_unittest.cc", | 234 "drive/gdata_wapi_url_generator_unittest.cc", |
| 246 "drive/request_sender_unittest.cc", | 235 "drive/request_sender_unittest.cc", |
| 247 "drive/request_util_unittest.cc", | 236 "drive/request_util_unittest.cc", |
| 248 "drive/time_util_unittest.cc", | 237 "drive/time_util_unittest.cc", |
| 249 ] | 238 ] |
| 250 } | 239 } |
| 251 } | 240 } |
| OLD | NEW |