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

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: Extract cronet_static.gypi Created 5 years, 10 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') | net/net.gyp » ('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 { 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 'target_name': 'cronet_static_small',
xunjieli 2015/02/25 15:06:56 How about adding a comment here? along the line th
mef 2015/02/26 21:22:51 Done.
103 'type': 'static_library', 103 'type': 'static_library',
104 'defines': [
105 'USE_ICU_ALTERNATIVES_ON_ANDROID=1',
106 'DISABLE_FILE_SUPPORT=1',
107 'DISABLE_FTP_SUPPORT=1',
108 ],
104 'dependencies': [ 109 'dependencies': [
105 '../base/base.gyp:base', 110 '../net/net.gyp:net_small',
106 '../base/base.gyp:base_i18n', 111 ],
107 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations', 112 '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', 113 '../net/net.gyp:net',
116 ], 114 ],
117 'sources': [ 115 'includes': [ 'cronet/cronet_static.gypi' ],
118 'cronet/android/chromium_url_request.cc', 116 },
119 'cronet/android/chromium_url_request.h', 117 {
120 'cronet/android/chromium_url_request_context.cc', 118 'target_name': 'cronet_static',
xunjieli 2015/02/25 15:06:56 Should "cronet_static" have DISABLE_FTP_SUPPORT=1
121 'cronet/android/chromium_url_request_context.h', 119 'includes': [ 'cronet/cronet_static.gypi' ],
122 'cronet/android/chromium_url_request_error_list.h',
123 'cronet/android/chromium_url_request_priority_list.h',
124 'cronet/android/cronet_histogram_manager.cc',
125 'cronet/android/cronet_histogram_manager.h',
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 ],
148 'cflags': [
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 }, 120 },
175 { 121 {
176 'target_name': 'libcronet', 122 'target_name': 'libcronet',
177 'type': 'shared_library', 123 'type': 'shared_library',
178 'sources': [ 124 'sources': [
179 'cronet/android/cronet_jni.cc', 125 'cronet/android/cronet_jni.cc',
180 ], 126 ],
181 'dependencies': [ 127 'dependencies': [
182 'cronet_static', 128 'cronet_static_small',
183 '../base/base.gyp:base', 129 '../base/base.gyp:base',
184 '../net/net.gyp:net', 130 '../net/net.gyp:net_small',
185 '../url/url.gyp:url_lib', 131 '../url/url.gyp:url_lib_use_icu_alternatives_on_android',
186 ], 132 ],
187 }, 133 },
188 { # cronet_stub.jar defines HttpUrlRequest interface and provides its 134 { # cronet_stub.jar defines HttpUrlRequest interface and provides its
189 # its implementation using HttpUrlConnection (not the Chromium stack). 135 # its implementation using HttpUrlConnection (not the Chromium stack).
190 'target_name': 'cronet_stub', 136 'target_name': 'cronet_stub',
191 'type': 'none', 137 'type': 'none',
192 'dependencies': [ 138 'dependencies': [
193 'cronet_url_request_context_config_list', 139 'cronet_url_request_context_config_list',
194 'cronet_version', 140 'cronet_version',
195 ], 141 ],
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 '../base/base.gyp:base_java_test_support', 340 '../base/base.gyp:base_java_test_support',
395 ], 341 ],
396 'variables': { 342 'variables': {
397 'apk_name': 'CronetTestInstrumentation', 343 'apk_name': 'CronetTestInstrumentation',
398 'java_in_dir': 'cronet/android/test/javatests', 344 'java_in_dir': 'cronet/android/test/javatests',
399 'resource_dir': 'cronet/android/test/res', 345 'resource_dir': 'cronet/android/test/res',
400 'is_test_apk': 1, 346 'is_test_apk': 1,
401 }, 347 },
402 'includes': [ '../build/java_apk.gypi' ], 348 'includes': [ '../build/java_apk.gypi' ],
403 }, 349 },
404 ],
405 }], # OS=="android"
406 ['OS=="android" and use_icu_alternatives_on_android==1', {
407 'targets': [
408 { 350 {
409 'target_name': 'cronet_package', 351 'target_name': 'cronet_package',
410 'type': 'none', 352 'type': 'none',
411 'dependencies': [ 353 'dependencies': [
412 'libcronet', 354 'libcronet',
413 'cronet', 355 'cronet',
414 'cronet_stub', 356 'cronet_stub',
415 ], 357 ],
416 'variables': { 358 'variables': {
417 'native_lib': 'libcronet.>(android_product_extension)', 359 'native_lib': 'libcronet.>(android_product_extension)',
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 }, 468 },
527 { 469 {
528 'destination': '<(package_dir)/symbols/<(android_app_abi)', 470 'destination': '<(package_dir)/symbols/<(android_app_abi)',
529 'files': [ 471 'files': [
530 '<(SHARED_LIB_DIR)/<(native_lib)', 472 '<(SHARED_LIB_DIR)/<(native_lib)',
531 ], 473 ],
532 }, 474 },
533 ], 475 ],
534 }, 476 },
535 ], 477 ],
536 }], # OS=="android" and use_icu_alternatives_on_android==1 478 }], # OS=="android"
537 ], 479 ],
538 } 480 }
OLDNEW
« no previous file with comments | « no previous file | components/cronet/cronet_static.gypi » ('j') | net/net.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698