| 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" and use_icu_alternatives_on_android==1', { | 7 ['OS=="android" and use_icu_alternatives_on_android==1', { |
| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 'sources': [ | 49 'sources': [ |
| 50 'cronet/android/java/src/org/chromium/net/UrlRequestContextConfig.te
mplate', | 50 'cronet/android/java/src/org/chromium/net/UrlRequestContextConfig.te
mplate', |
| 51 ], | 51 ], |
| 52 'variables': { | 52 'variables': { |
| 53 'package_name': 'org/chromium/cronet', | 53 'package_name': 'org/chromium/cronet', |
| 54 'template_deps': ['cronet/url_request_context_config_list.h'], | 54 'template_deps': ['cronet/url_request_context_config_list.h'], |
| 55 }, | 55 }, |
| 56 'includes': [ '../build/android/java_cpp_template.gypi' ], | 56 'includes': [ '../build/android/java_cpp_template.gypi' ], |
| 57 }, | 57 }, |
| 58 { | 58 { |
| 59 'target_name': 'cronet_version', |
| 60 'type': 'none', |
| 61 # Because cronet_version generates a header, we must set the |
| 62 # hard_dependency flag. |
| 63 'hard_dependency': 1, |
| 64 'actions': [ |
| 65 { |
| 66 'action_name': 'cronet_version', |
| 67 'variables': { |
| 68 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE', |
| 69 'version_py_path': '<(DEPTH)/build/util/version.py', |
| 70 'version_path': '<(DEPTH)/chrome/VERSION', |
| 71 'template_input_path': 'cronet/cronet_version.h.version', |
| 72 }, |
| 73 'inputs': [ |
| 74 '<(template_input_path)', |
| 75 '<(version_path)', |
| 76 '<(lastchange_path)', |
| 77 ], |
| 78 'outputs': [ |
| 79 '<(SHARED_INTERMEDIATE_DIR)/cronet/cronet_version.h', |
| 80 ], |
| 81 'action': [ |
| 82 'python', |
| 83 '<(version_py_path)', |
| 84 '-f', '<(version_path)', |
| 85 '-f', '<(lastchange_path)', |
| 86 '<(template_input_path)', |
| 87 '<@(_outputs)', |
| 88 ], |
| 89 'message': 'Generating version information', |
| 90 }, |
| 91 ], |
| 92 }, |
| 93 { |
| 59 'target_name': 'libcronet', | 94 'target_name': 'libcronet', |
| 60 'type': 'shared_library', | 95 'type': 'shared_library', |
| 61 'dependencies': [ | 96 'dependencies': [ |
| 62 '../base/base.gyp:base', | 97 '../base/base.gyp:base', |
| 63 '../base/base.gyp:base_i18n', | 98 '../base/base.gyp:base_i18n', |
| 64 '../third_party/icu/icu.gyp:icui18n', | 99 '../third_party/icu/icu.gyp:icui18n', |
| 65 '../third_party/icu/icu.gyp:icuuc', | 100 '../third_party/icu/icu.gyp:icuuc', |
| 66 '../url/url.gyp:url_lib', | 101 '../url/url.gyp:url_lib', |
| 67 'cronet_jni_headers', | 102 'cronet_jni_headers', |
| 68 'cronet_url_request_context_config_list', | 103 'cronet_url_request_context_config_list', |
| 69 'cronet_url_request_error_list', | 104 'cronet_url_request_error_list', |
| 70 'cronet_url_request_priority_list', | 105 'cronet_url_request_priority_list', |
| 106 'cronet_version', |
| 71 '../net/net.gyp:net', | 107 '../net/net.gyp:net', |
| 72 ], | 108 ], |
| 73 'sources': [ | 109 'sources': [ |
| 74 'cronet/url_request_context_config.cc', | 110 'cronet/url_request_context_config.cc', |
| 75 'cronet/url_request_context_config.h', | 111 'cronet/url_request_context_config.h', |
| 76 'cronet/url_request_context_config_list.h', | 112 'cronet/url_request_context_config_list.h', |
| 77 'cronet/android/cronet_jni.cc', | 113 'cronet/android/cronet_jni.cc', |
| 78 'cronet/android/org_chromium_net_UrlRequest.cc', | 114 'cronet/android/org_chromium_net_UrlRequest.cc', |
| 79 'cronet/android/org_chromium_net_UrlRequest.h', | 115 'cronet/android/org_chromium_net_UrlRequest.h', |
| 80 'cronet/android/org_chromium_net_UrlRequest_error_list.h', | 116 'cronet/android/org_chromium_net_UrlRequest_error_list.h', |
| 81 'cronet/android/org_chromium_net_UrlRequest_priority_list.h', | 117 'cronet/android/org_chromium_net_UrlRequest_priority_list.h', |
| 82 'cronet/android/org_chromium_net_UrlRequestContext.cc', | 118 'cronet/android/org_chromium_net_UrlRequestContext.cc', |
| 83 'cronet/android/org_chromium_net_UrlRequestContext.h', | 119 'cronet/android/org_chromium_net_UrlRequestContext.h', |
| 84 'cronet/android/org_chromium_net_UrlRequestContext_config_list.h', | 120 'cronet/android/org_chromium_net_UrlRequestContext_config_list.h', |
| 85 'cronet/android/url_request_context_peer.cc', | 121 'cronet/android/url_request_context_peer.cc', |
| 86 'cronet/android/url_request_context_peer.h', | 122 'cronet/android/url_request_context_peer.h', |
| 87 'cronet/android/url_request_peer.cc', | 123 'cronet/android/url_request_peer.cc', |
| 88 'cronet/android/url_request_peer.h', | 124 'cronet/android/url_request_peer.h', |
| 89 ], | 125 ], |
| 90 'cflags': [ | 126 'cflags': [ |
| 91 # TODO(mef): Figure out a good way to get version from chrome_versio
n_info_posix.h. | |
| 92 '-DCHROMIUM_VERSION=\\"TBD\\"', | |
| 93 '-DLOGGING=1', | 127 '-DLOGGING=1', |
| 94 '-fdata-sections', | 128 '-fdata-sections', |
| 95 '-ffunction-sections', | 129 '-ffunction-sections', |
| 96 '-fno-rtti', | 130 '-fno-rtti', |
| 97 '-fvisibility=hidden', | 131 '-fvisibility=hidden', |
| 98 '-fvisibility-inlines-hidden', | 132 '-fvisibility-inlines-hidden', |
| 99 '-Wno-sign-promo', | 133 '-Wno-sign-promo', |
| 100 '-Wno-missing-field-initializers', | 134 '-Wno-missing-field-initializers', |
| 101 ], | 135 ], |
| 102 'ldflags': [ | 136 'ldflags': [ |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 'java_in_dir': 'cronet/android/sample/javatests', | 300 'java_in_dir': 'cronet/android/sample/javatests', |
| 267 'resource_dir': 'cronet/android/sample/res', | 301 'resource_dir': 'cronet/android/sample/res', |
| 268 'is_test_apk': 1, | 302 'is_test_apk': 1, |
| 269 }, | 303 }, |
| 270 'includes': [ '../build/java_apk.gypi' ], | 304 'includes': [ '../build/java_apk.gypi' ], |
| 271 }, | 305 }, |
| 272 ], | 306 ], |
| 273 }], # OS=="android" | 307 }], # OS=="android" |
| 274 ], | 308 ], |
| 275 } | 309 } |
| OLD | NEW |