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

Side by Side Diff: google_apis/BUILD.gn

Issue 1483843002: Port cronet build rules to GN part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « components/pref_registry/BUILD.gn ('k') | net/net.gyp » ('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 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 } 71 }
72 if (google_default_client_id != "") { 72 if (google_default_client_id != "") {
73 defines += [ "GOOGLE_DEFAULT_CLIENT_ID=\"$google_default_client_id\"" ] 73 defines += [ "GOOGLE_DEFAULT_CLIENT_ID=\"$google_default_client_id\"" ]
74 } 74 }
75 if (google_default_client_secret != "") { 75 if (google_default_client_secret != "") {
76 defines += 76 defines +=
77 [ "GOOGLE_DEFAULT_CLIENT_SECRET=\"$google_default_client_secret\"" ] 77 [ "GOOGLE_DEFAULT_CLIENT_SECRET=\"$google_default_client_secret\"" ]
78 } 78 }
79 } 79 }
80 80
81 source_set("google_apis") { 81 # Variables:
82 sources = [ 82 # deps: Extra dependencies
83 "gaia/account_tracker.cc", 83 template("google_apis_tmpl") {
84 "gaia/account_tracker.h", 84 source_set(target_name) {
85 "gaia/gaia_auth_consumer.cc", 85 sources = [
86 "gaia/gaia_auth_consumer.h", 86 "gaia/account_tracker.cc",
87 "gaia/gaia_auth_fetcher.cc", 87 "gaia/account_tracker.h",
88 "gaia/gaia_auth_fetcher.h", 88 "gaia/gaia_auth_consumer.cc",
89 "gaia/gaia_auth_util.cc", 89 "gaia/gaia_auth_consumer.h",
90 "gaia/gaia_auth_util.h", 90 "gaia/gaia_auth_fetcher.cc",
91 "gaia/gaia_constants.cc", 91 "gaia/gaia_auth_fetcher.h",
92 "gaia/gaia_constants.h", 92 "gaia/gaia_auth_util.cc",
93 "gaia/gaia_oauth_client.cc", 93 "gaia/gaia_auth_util.h",
94 "gaia/gaia_oauth_client.h", 94 "gaia/gaia_constants.cc",
95 "gaia/gaia_switches.cc", 95 "gaia/gaia_constants.h",
96 "gaia/gaia_switches.h", 96 "gaia/gaia_oauth_client.cc",
97 "gaia/gaia_urls.cc", 97 "gaia/gaia_oauth_client.h",
98 "gaia/gaia_urls.h", 98 "gaia/gaia_switches.cc",
99 "gaia/google_service_auth_error.cc", 99 "gaia/gaia_switches.h",
100 "gaia/google_service_auth_error.h", 100 "gaia/gaia_urls.cc",
101 "gaia/identity_provider.cc", 101 "gaia/gaia_urls.h",
102 "gaia/identity_provider.h", 102 "gaia/google_service_auth_error.cc",
103 "gaia/oauth2_access_token_consumer.h", 103 "gaia/google_service_auth_error.h",
104 "gaia/oauth2_access_token_fetcher.cc", 104 "gaia/identity_provider.cc",
105 "gaia/oauth2_access_token_fetcher.h", 105 "gaia/identity_provider.h",
106 "gaia/oauth2_access_token_fetcher_immediate_error.cc", 106 "gaia/oauth2_access_token_consumer.h",
107 "gaia/oauth2_access_token_fetcher_immediate_error.h", 107 "gaia/oauth2_access_token_fetcher.cc",
108 "gaia/oauth2_access_token_fetcher_impl.cc", 108 "gaia/oauth2_access_token_fetcher.h",
109 "gaia/oauth2_access_token_fetcher_impl.h", 109 "gaia/oauth2_access_token_fetcher_immediate_error.cc",
110 "gaia/oauth2_api_call_flow.cc", 110 "gaia/oauth2_access_token_fetcher_immediate_error.h",
111 "gaia/oauth2_api_call_flow.h", 111 "gaia/oauth2_access_token_fetcher_impl.cc",
112 "gaia/oauth2_mint_token_flow.cc", 112 "gaia/oauth2_access_token_fetcher_impl.h",
113 "gaia/oauth2_mint_token_flow.h", 113 "gaia/oauth2_api_call_flow.cc",
114 "gaia/oauth2_token_service.cc", 114 "gaia/oauth2_api_call_flow.h",
115 "gaia/oauth2_token_service.h", 115 "gaia/oauth2_mint_token_flow.cc",
116 "gaia/oauth2_token_service_delegate.cc", 116 "gaia/oauth2_mint_token_flow.h",
117 "gaia/oauth2_token_service_delegate.h", 117 "gaia/oauth2_token_service.cc",
118 "gaia/oauth2_token_service_request.cc", 118 "gaia/oauth2_token_service.h",
119 "gaia/oauth2_token_service_request.h", 119 "gaia/oauth2_token_service_delegate.cc",
120 "gaia/oauth_request_signer.cc", 120 "gaia/oauth2_token_service_delegate.h",
121 "gaia/oauth_request_signer.h", 121 "gaia/oauth2_token_service_request.cc",
122 "gaia/ubertoken_fetcher.cc", 122 "gaia/oauth2_token_service_request.h",
123 "gaia/ubertoken_fetcher.h", 123 "gaia/oauth_request_signer.cc",
124 "google_api_keys.cc", 124 "gaia/oauth_request_signer.h",
125 "google_api_keys.h", 125 "gaia/ubertoken_fetcher.cc",
126 "gaia/ubertoken_fetcher.h",
127 "google_api_keys.cc",
128 "google_api_keys.h",
129 ]
130
131 configs += [
132 ":key_defines",
133 "//build/config/compiler:no_size_t_to_int_warning",
134 ]
135
136 deps = [
137 "//base",
138 "//base/third_party/dynamic_annotations",
139 "//crypto",
140 "//third_party/libxml",
141 ]
142
143 if (defined(invoker.deps)) {
144 deps += invoker.deps
145 }
146
147 if (enable_extensions) {
148 sources += [
149 "drive/auth_service.cc",
150 "drive/auth_service.h",
151 "drive/auth_service_interface.h",
152 "drive/auth_service_observer.h",
153 "drive/base_requests.cc",
154 "drive/base_requests.h",
155 "drive/drive_api_error_codes.cc",
156 "drive/drive_api_error_codes.h",
157 "drive/drive_api_parser.cc",
158 "drive/drive_api_parser.h",
159 "drive/drive_api_requests.cc",
160 "drive/drive_api_requests.h",
161 "drive/drive_api_url_generator.cc",
162 "drive/drive_api_url_generator.h",
163 "drive/drive_common_callbacks.h",
164 "drive/files_list_request_runner.cc",
165 "drive/files_list_request_runner.h",
166 "drive/request_sender.cc",
167 "drive/request_sender.h",
168 "drive/request_util.cc",
169 "drive/request_util.h",
170 "drive/task_util.cc",
171 "drive/task_util.h",
172 "drive/time_util.cc",
173 "drive/time_util.h",
174 ]
175 }
176 }
177 }
178
179 google_apis_tmpl("google_apis") {
180 deps = [
181 "//net",
126 ] 182 ]
183 }
127 184
128 configs += [ 185 if (is_android) {
129 ":key_defines", 186 google_apis_tmpl("google_apis_small") {
130 "//build/config/compiler:no_size_t_to_int_warning", 187 deps = [
131 ] 188 "//net:net_small",
132
133 deps = [
134 "//base",
135 "//base/third_party/dynamic_annotations",
136 "//crypto",
137 "//net",
138 "//third_party/libxml",
139 ]
140
141 if (enable_extensions) {
142 sources += [
143 "drive/auth_service.cc",
144 "drive/auth_service.h",
145 "drive/auth_service_interface.h",
146 "drive/auth_service_observer.h",
147 "drive/base_requests.cc",
148 "drive/base_requests.h",
149 "drive/drive_api_error_codes.cc",
150 "drive/drive_api_error_codes.h",
151 "drive/drive_api_parser.cc",
152 "drive/drive_api_parser.h",
153 "drive/drive_api_requests.cc",
154 "drive/drive_api_requests.h",
155 "drive/drive_api_url_generator.cc",
156 "drive/drive_api_url_generator.h",
157 "drive/drive_common_callbacks.h",
158 "drive/files_list_request_runner.cc",
159 "drive/files_list_request_runner.h",
160 "drive/request_sender.cc",
161 "drive/request_sender.h",
162 "drive/request_util.cc",
163 "drive/request_util.h",
164 "drive/task_util.cc",
165 "drive/task_util.h",
166 "drive/time_util.cc",
167 "drive/time_util.h",
168 ] 189 ]
169 } 190 }
170 } 191 }
171 192
172 source_set("test_support") { 193 source_set("test_support") {
173 testonly = true 194 testonly = true
174 sources = [ 195 sources = [
175 "gaia/fake_gaia.cc", 196 "gaia/fake_gaia.cc",
176 "gaia/fake_gaia.h", 197 "gaia/fake_gaia.h",
177 "gaia/fake_identity_provider.cc", 198 "gaia/fake_identity_provider.cc",
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 "drive/base_requests_unittest.cc", 269 "drive/base_requests_unittest.cc",
249 "drive/drive_api_parser_unittest.cc", 270 "drive/drive_api_parser_unittest.cc",
250 "drive/drive_api_requests_unittest.cc", 271 "drive/drive_api_requests_unittest.cc",
251 "drive/drive_api_url_generator_unittest.cc", 272 "drive/drive_api_url_generator_unittest.cc",
252 "drive/request_sender_unittest.cc", 273 "drive/request_sender_unittest.cc",
253 "drive/request_util_unittest.cc", 274 "drive/request_util_unittest.cc",
254 "drive/time_util_unittest.cc", 275 "drive/time_util_unittest.cc",
255 ] 276 ]
256 } 277 }
257 } 278 }
OLDNEW
« no previous file with comments | « components/pref_registry/BUILD.gn ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698