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

Side by Side Diff: components/cronet.gypi

Issue 933293003: [Cronet] Make Cronet buildable on regular Android bots. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Matt's comments. Created 5 years, 9 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 | components/cronet/cronet_static.gypi » ('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 { 5 {
6 'conditions': [ 6 'conditions': [
7 ['OS=="android"', { 7 ['OS=="android"', {
8 # TODO(mef): Figure out what needs to be done for gn script. 8 # TODO(mef): Figure out what needs to be done for gn script.
9 'targets': [ 9 'targets': [
10 { 10 {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 '-f', '<(version_path)', 92 '-f', '<(version_path)',
93 '-f', '<(lastchange_path)', 93 '-f', '<(lastchange_path)',
94 '<(template_input_path)', 94 '<(template_input_path)',
95 '<(output_path)', 95 '<(output_path)',
96 ], 96 ],
97 'message': 'Generating version information', 97 'message': 'Generating version information',
98 }, 98 },
99 ], 99 ],
100 }, 100 },
101 { 101 {
102 'target_name': 'cronet_static', 102 # cronet_static_small target has reduced binary size through disabling
103 'type': 'static_library', 103 # of file and ftp support and using ICU alternatives.
104 'target_name': 'cronet_static_small',
105 'defines': [
106 'USE_ICU_ALTERNATIVES_ON_ANDROID=1',
mmenke 2015/03/02 17:50:04 Seems more than a little unfortunate that we're no
mef 2015/03/03 17:37:48 Yeah, I'm thinking that maybe Cronet bots should s
107 'DISABLE_FILE_SUPPORT=1',
108 'DISABLE_FTP_SUPPORT=1',
109 ],
104 'dependencies': [ 110 'dependencies': [
105 '../base/base.gyp:base', 111 '../net/net.gyp:net_small',
106 '../base/base.gyp:base_i18n', 112 ],
107 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations', 113 'dependencies!': [
108 '../third_party/icu/icu.gyp:icui18n',
109 '../third_party/icu/icu.gyp:icuuc',
110 'cronet_jni_headers',
111 'cronet_url_request_context_config_list',
112 'cronet_url_request_java',
113 'cronet_version',
114 'metrics',
115 '../net/net.gyp:net', 114 '../net/net.gyp:net',
116 ], 115 ],
117 'sources': [ 116 'includes': [ 'cronet/cronet_static.gypi' ],
118 'cronet/android/chromium_url_request.cc', 117 },
119 'cronet/android/chromium_url_request.h', 118 {
120 'cronet/android/chromium_url_request_context.cc', 119 # cronet_static_small target has reduced binary size through disabling
121 'cronet/android/chromium_url_request_context.h', 120 # of file and ftp support and using ICU alternatives.
mmenke 2015/03/02 17:50:04 This comment is a little confusing, since cronet_s
mef 2015/03/03 17:37:48 Oops, copy-paste gone awry. Done.
122 'cronet/android/chromium_url_request_error_list.h', 121 'target_name': 'cronet_static',
123 'cronet/android/chromium_url_request_priority_list.h', 122 'defines': [
124 'cronet/android/cronet_histogram_manager.cc', 123 'DISABLE_FILE_SUPPORT=1',
125 'cronet/android/cronet_histogram_manager.h', 124 'DISABLE_FTP_SUPPORT=1',
mmenke 2015/03/02 17:50:04 Wait...aren't we including a version of net/ build
mef 2015/03/03 17:37:48 Done.
126 'cronet/android/cronet_library_loader.cc',
127 'cronet/android/cronet_library_loader.h',
128 'cronet/android/cronet_upload_data_stream_adapter.cc',
129 'cronet/android/cronet_upload_data_stream_adapter.h',
130 'cronet/android/cronet_upload_data_stream_delegate.cc',
131 'cronet/android/cronet_upload_data_stream_delegate.h',
132 'cronet/android/cronet_url_request.cc',
133 'cronet/android/cronet_url_request.h',
134 'cronet/android/cronet_url_request_adapter.cc',
135 'cronet/android/cronet_url_request_adapter.h',
136 'cronet/android/cronet_url_request_context_adapter.cc',
137 'cronet/android/cronet_url_request_context_adapter.h',
138 'cronet/android/url_request_adapter.cc',
139 'cronet/android/url_request_adapter.h',
140 'cronet/android/url_request_context_adapter.cc',
141 'cronet/android/url_request_context_adapter.h',
142 'cronet/android/wrapped_channel_upload_element_reader.cc',
143 'cronet/android/wrapped_channel_upload_element_reader.h',
144 'cronet/url_request_context_config.cc',
145 'cronet/url_request_context_config.h',
146 'cronet/url_request_context_config_list.h',
147 ], 125 ],
148 'cflags': [ 126 'includes': [ 'cronet/cronet_static.gypi' ],
mmenke 2015/03/02 17:50:04 I think we're missing a dependencies section.
mef 2015/03/03 17:37:48 It is in cronet_static.gypi
149 '-DLOGGING=1',
150 '-fdata-sections',
151 '-ffunction-sections',
152 '-fno-rtti',
153 '-fvisibility=hidden',
154 '-fvisibility-inlines-hidden',
155 '-Wno-sign-promo',
156 '-Wno-missing-field-initializers',
157 ],
158 'ldflags': [
159 '-llog',
160 '-landroid',
161 '-Wl,--gc-sections',
162 '-Wl,--exclude-libs,ALL'
163 ],
164 'conditions': [
165 [ 'use_icu_alternatives_on_android == 1', {
166 'dependencies!': [
167 '../base/base.gyp:base_i18n',
168 '../third_party/icu/icu.gyp:icui18n',
169 '../third_party/icu/icu.gyp:icuuc',
170 ]
171 },
172 ],
173 ],
174 }, 127 },
175 { 128 {
176 'target_name': 'libcronet', 129 'target_name': 'libcronet',
177 'type': 'shared_library', 130 'type': 'shared_library',
178 'sources': [ 131 'sources': [
179 'cronet/android/cronet_jni.cc', 132 'cronet/android/cronet_jni.cc',
180 ], 133 ],
181 'dependencies': [ 134 'dependencies': [
182 'cronet_static', 135 'cronet_static_small',
183 '../base/base.gyp:base', 136 '../base/base.gyp:base',
184 '../net/net.gyp:net', 137 '../net/net.gyp:net_small',
185 '../url/url.gyp:url_lib', 138 '../url/url.gyp:url_lib_use_icu_alternatives_on_android',
186 ], 139 ],
187 }, 140 },
188 { # cronet_stub.jar defines HttpUrlRequest interface and provides its 141 { # cronet_stub.jar defines HttpUrlRequest interface and provides its
189 # its implementation using HttpUrlConnection (not the Chromium stack). 142 # its implementation using HttpUrlConnection (not the Chromium stack).
190 'target_name': 'cronet_stub', 143 'target_name': 'cronet_stub',
191 'type': 'none', 144 'type': 'none',
192 'dependencies': [ 145 'dependencies': [
193 'cronet_url_request_context_config_list', 146 'cronet_url_request_context_config_list',
194 'cronet_version', 147 'cronet_version',
195 ], 148 ],
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 '../base/base.gyp:base_java_test_support', 347 '../base/base.gyp:base_java_test_support',
395 ], 348 ],
396 'variables': { 349 'variables': {
397 'apk_name': 'CronetTestInstrumentation', 350 'apk_name': 'CronetTestInstrumentation',
398 'java_in_dir': 'cronet/android/test/javatests', 351 'java_in_dir': 'cronet/android/test/javatests',
399 'resource_dir': 'cronet/android/test/res', 352 'resource_dir': 'cronet/android/test/res',
400 'is_test_apk': 1, 353 'is_test_apk': 1,
401 }, 354 },
402 'includes': [ '../build/java_apk.gypi' ], 355 'includes': [ '../build/java_apk.gypi' ],
403 }, 356 },
404 ],
405 }], # OS=="android"
406 ['OS=="android" and use_icu_alternatives_on_android==1', {
407 'targets': [
408 { 357 {
409 'target_name': 'cronet_package', 358 'target_name': 'cronet_package',
410 'type': 'none', 359 'type': 'none',
411 'dependencies': [ 360 'dependencies': [
412 'libcronet', 361 'libcronet',
413 'cronet', 362 'cronet',
414 'cronet_stub', 363 'cronet_stub',
415 ], 364 ],
416 'variables': { 365 'variables': {
417 'native_lib': 'libcronet.>(android_product_extension)', 366 'native_lib': 'libcronet.>(android_product_extension)',
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 }, 475 },
527 { 476 {
528 'destination': '<(package_dir)/symbols/<(android_app_abi)', 477 'destination': '<(package_dir)/symbols/<(android_app_abi)',
529 'files': [ 478 'files': [
530 '<(SHARED_LIB_DIR)/<(native_lib)', 479 '<(SHARED_LIB_DIR)/<(native_lib)',
531 ], 480 ],
532 }, 481 },
533 ], 482 ],
534 }, 483 },
535 ], 484 ],
536 }], # OS=="android" and use_icu_alternatives_on_android==1 485 }], # OS=="android"
537 ], 486 ],
538 } 487 }
OLDNEW
« no previous file with comments | « no previous file | components/cronet/cronet_static.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698