Chromium Code Reviews| 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 { | 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 Loading... | |
| 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', | |
| 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 ], |
|
mmenke
2015/03/03 18:03:47
Instead of an exclusion, could we remove that dep
mef
2015/03/10 16:50:39
Done.
| |
| 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 target depends on ICU snd includes file and ftp suppor t. |
| 121 'cronet/android/chromium_url_request_context.h', | 120 'target_name': 'cronet_static', |
| 122 'cronet/android/chromium_url_request_error_list.h', | 121 'includes': [ 'cronet/cronet_static.gypi' ], |
| 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 }, | 122 }, |
| 175 { | 123 { |
| 176 'target_name': 'libcronet', | 124 'target_name': 'libcronet', |
| 177 'type': 'shared_library', | 125 'type': 'shared_library', |
| 178 'sources': [ | 126 'sources': [ |
| 179 'cronet/android/cronet_jni.cc', | 127 'cronet/android/cronet_jni.cc', |
| 180 ], | 128 ], |
| 181 'dependencies': [ | 129 'dependencies': [ |
| 182 'cronet_static', | 130 'cronet_static_small', |
| 183 '../base/base.gyp:base', | 131 '../base/base.gyp:base', |
| 184 '../net/net.gyp:net', | 132 '../net/net.gyp:net_small', |
| 185 '../url/url.gyp:url_lib', | 133 '../url/url.gyp:url_lib_use_icu_alternatives_on_android', |
| 186 ], | 134 ], |
| 187 }, | 135 }, |
| 188 { # cronet_stub.jar defines HttpUrlRequest interface and provides its | 136 { # cronet_stub.jar defines HttpUrlRequest interface and provides its |
| 189 # its implementation using HttpUrlConnection (not the Chromium stack). | 137 # its implementation using HttpUrlConnection (not the Chromium stack). |
| 190 'target_name': 'cronet_stub', | 138 'target_name': 'cronet_stub', |
| 191 'type': 'none', | 139 'type': 'none', |
| 192 'dependencies': [ | 140 'dependencies': [ |
| 193 'cronet_url_request_context_config_list', | 141 'cronet_url_request_context_config_list', |
| 194 'cronet_version', | 142 'cronet_version', |
| 195 ], | 143 ], |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 394 '../base/base.gyp:base_java_test_support', | 342 '../base/base.gyp:base_java_test_support', |
| 395 ], | 343 ], |
| 396 'variables': { | 344 'variables': { |
| 397 'apk_name': 'CronetTestInstrumentation', | 345 'apk_name': 'CronetTestInstrumentation', |
| 398 'java_in_dir': 'cronet/android/test/javatests', | 346 'java_in_dir': 'cronet/android/test/javatests', |
| 399 'resource_dir': 'cronet/android/test/res', | 347 'resource_dir': 'cronet/android/test/res', |
| 400 'is_test_apk': 1, | 348 'is_test_apk': 1, |
| 401 }, | 349 }, |
| 402 'includes': [ '../build/java_apk.gypi' ], | 350 'includes': [ '../build/java_apk.gypi' ], |
| 403 }, | 351 }, |
| 404 ], | |
| 405 }], # OS=="android" | |
| 406 ['OS=="android" and use_icu_alternatives_on_android==1', { | |
| 407 'targets': [ | |
| 408 { | 352 { |
| 409 'target_name': 'cronet_package', | 353 'target_name': 'cronet_package', |
| 410 'type': 'none', | 354 'type': 'none', |
| 411 'dependencies': [ | 355 'dependencies': [ |
| 412 'libcronet', | 356 'libcronet', |
| 413 'cronet', | 357 'cronet', |
| 414 'cronet_stub', | 358 'cronet_stub', |
| 415 ], | 359 ], |
| 416 'variables': { | 360 'variables': { |
| 417 'native_lib': 'libcronet.>(android_product_extension)', | 361 'native_lib': 'libcronet.>(android_product_extension)', |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 526 }, | 470 }, |
| 527 { | 471 { |
| 528 'destination': '<(package_dir)/symbols/<(android_app_abi)', | 472 'destination': '<(package_dir)/symbols/<(android_app_abi)', |
| 529 'files': [ | 473 'files': [ |
| 530 '<(SHARED_LIB_DIR)/<(native_lib)', | 474 '<(SHARED_LIB_DIR)/<(native_lib)', |
| 531 ], | 475 ], |
| 532 }, | 476 }, |
| 533 ], | 477 ], |
| 534 }, | 478 }, |
| 535 ], | 479 ], |
| 536 }], # OS=="android" and use_icu_alternatives_on_android==1 | 480 }], # OS=="android" |
| 537 ], | 481 ], |
| 538 } | 482 } |
| OLD | NEW |