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" 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 118 'target_name': 'cronet_package', | 118 'target_name': 'cronet_package', |
| 119 'type': 'none', | 119 'type': 'none', |
| 120 'dependencies': [ | 120 'dependencies': [ |
| 121 'libcronet', | 121 'libcronet', |
| 122 'cronet', | 122 'cronet', |
| 123 ], | 123 ], |
| 124 'variables': { | 124 'variables': { |
| 125 'native_lib': 'libcronet.>(android_product_extension)', | 125 'native_lib': 'libcronet.>(android_product_extension)', |
| 126 'java_lib': 'cronet.jar', | 126 'java_lib': 'cronet.jar', |
| 127 'package_dir': '<(PRODUCT_DIR)/cronet', | 127 'package_dir': '<(PRODUCT_DIR)/cronet', |
| 128 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/cronet', | |
| 129 'jar_extract_dir': '<(intermediate_dir)/cronet_jar_extract', | |
| 130 'jar_excluded_classes': [ | |
| 131 '*/Application*.class', | |
| 132 '*/BaseChrom*.class', | |
| 133 '*/CommandLine*.class', | |
| 134 ], | |
| 135 'jar_extract_stamp': '<(intermediate_dir)/jar_extract.stamp', | |
| 136 'cronet_jar_stamp': '<(intermediate_dir)/cronet_jar.stamp', | |
| 128 }, | 137 }, |
| 129 'actions': [ | 138 'actions': [ |
| 130 { | 139 { |
| 131 'action_name': 'strip libcronet', | 140 'action_name': 'strip libcronet', |
| 132 'inputs': ['<(SHARED_LIB_DIR)/<(native_lib)'], | 141 'inputs': ['<(SHARED_LIB_DIR)/<(native_lib)'], |
| 133 'outputs': ['<(package_dir)/libs/<(android_app_abi)/<(native_lib)' ], | 142 'outputs': ['<(package_dir)/libs/<(android_app_abi)/<(native_lib)' ], |
| 134 'action': [ | 143 'action': [ |
| 135 '<(android_strip)', | 144 '<(android_strip)', |
| 136 '--strip-unneeded', | 145 '--strip-unneeded', |
| 137 '<@(_inputs)', | 146 '<@(_inputs)', |
| 138 '-o', | 147 '-o', |
| 139 '<@(_outputs)', | 148 '<@(_outputs)', |
| 140 ], | 149 ], |
| 141 }, | 150 }, |
| 142 { | 151 { |
| 152 'action_name': 'extracting from jars', | |
| 153 'inputs': [ | |
| 154 '<(PRODUCT_DIR)/lib.java/<(java_lib)', | |
| 155 '<(PRODUCT_DIR)/lib.java/base_java.jar', | |
| 156 '<(PRODUCT_DIR)/lib.java/net_java.jar', | |
| 157 '<(PRODUCT_DIR)/lib.java/url_java.jar', | |
| 158 ], | |
| 159 'outputs': ['<(jar_extract_stamp)', '<(jar_extract_dir)'], | |
| 160 'action': [ | |
| 161 'python', | |
| 162 'cronet/tools/extract_from_jars.py', | |
| 163 '--classes-dir=<(jar_extract_dir)', | |
| 164 '--jars=<@(_inputs)', | |
|
Ryan Sleevi
2014/05/22 22:16:53
This doesn't seem right.
<@(_inputs) is going to
mef
2014/05/22 22:28:09
It gets expanded into this:
[135/138] cd ../../co
Ryan Sleevi
2014/05/22 22:59:34
Ah, it's a bit of a side-effect of how the args ar
mef
2014/05/23 15:49:08
I see, thanks for the explanation!
| |
| 165 '--stamp=<(jar_extract_stamp)', | |
| 166 ], | |
| 167 }, | |
| 168 { | |
| 169 'action_name': 'jar_<(_target_name)', | |
| 170 'message': 'Creating <(_target_name) jar', | |
| 171 'inputs': [ | |
| 172 '<(DEPTH)/build/android/gyp/util/build_utils.py', | |
| 173 '<(DEPTH)/build/android/gyp/util/md5_check.py', | |
| 174 '<(DEPTH)/build/android/gyp/jar.py', | |
| 175 '<(jar_extract_stamp)', | |
| 176 ], | |
| 177 'outputs': [ | |
| 178 '<(package_dir)/<(java_lib)', | |
| 179 '<(cronet_jar_stamp)', | |
| 180 ], | |
| 181 'action': [ | |
| 182 'python', '<(DEPTH)/build/android/gyp/jar.py', | |
| 183 '--classes-dir=<(jar_extract_dir)', | |
| 184 '--jar-path=<(package_dir)/<(java_lib)', | |
| 185 '--excluded-classes=<(jar_excluded_classes)', | |
|
Ryan Sleevi
2014/05/22 22:16:53
Why <( vs <@( here?
mef
2014/05/22 22:28:09
Um, I'm not sure. I took it from here: https://cod
Ryan Sleevi
2014/05/22 22:59:34
<() vs <@() is list-expansion versus string expans
mef
2014/05/23 15:49:08
Done.
| |
| 186 '--stamp=<(cronet_jar_stamp)', | |
| 187 ] | |
| 188 }, | |
| 189 { | |
| 143 'action_name': 'generate licenses', | 190 'action_name': 'generate licenses', |
| 144 'inputs': ['cronet/tools/cronet_licenses.py'] , | 191 'inputs': ['cronet/tools/cronet_licenses.py'] , |
| 145 'outputs': ['<(package_dir)/LICENSE'], | 192 'outputs': ['<(package_dir)/LICENSE'], |
| 146 'action': [ | 193 'action': [ |
| 147 'python', | 194 'python', |
| 148 '<@(_inputs)', | 195 '<@(_inputs)', |
| 149 'license', | 196 'license', |
| 150 '<@(_outputs)', | 197 '<@(_outputs)', |
| 151 ], | 198 ], |
| 152 }, | 199 }, |
| 153 ], | 200 ], |
| 154 'copies': [ | 201 'copies': [ |
| 155 { | 202 { |
| 156 'destination': '<(package_dir)', | 203 'destination': '<(package_dir)', |
| 157 'files': [ | 204 'files': [ |
| 158 '../AUTHORS', | 205 '../AUTHORS', |
| 159 '../chrome/VERSION', | 206 '../chrome/VERSION', |
| 160 '<(PRODUCT_DIR)/lib.java/<(java_lib)', | |
| 161 '<(PRODUCT_DIR)/lib.java/base_java.jar', | |
| 162 '<(PRODUCT_DIR)/lib.java/net_java.jar', | |
| 163 '<(PRODUCT_DIR)/lib.java/url_java.jar', | |
| 164 ], | 207 ], |
| 165 }, | 208 }, |
| 166 ], | 209 ], |
| 167 }, | 210 }, |
| 168 { | 211 { |
| 169 'target_name': 'cronet_sample_apk', | 212 'target_name': 'cronet_sample_apk', |
| 170 'type': 'none', | 213 'type': 'none', |
| 171 'dependencies': [ | 214 'dependencies': [ |
| 172 'cronet', | 215 'cronet', |
| 173 ], | 216 ], |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 209 'java_in_dir': 'cronet/android/sample/javatests', | 252 'java_in_dir': 'cronet/android/sample/javatests', |
| 210 'resource_dir': 'cronet/android/sample/res', | 253 'resource_dir': 'cronet/android/sample/res', |
| 211 'is_test_apk': 1, | 254 'is_test_apk': 1, |
| 212 }, | 255 }, |
| 213 'includes': [ '../build/java_apk.gypi' ], | 256 'includes': [ '../build/java_apk.gypi' ], |
| 214 }, | 257 }, |
| 215 ], | 258 ], |
| 216 }], # OS=="android" | 259 }], # OS=="android" |
| 217 ], | 260 ], |
| 218 } | 261 } |
| OLD | NEW |