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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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', | 59 'target_name': 'cronet_version', |
60 'type': 'none', | 60 'type': 'none', |
61 # Because cronet_version generates a header, we must set the | 61 'variables': { |
62 # hard_dependency flag. | 62 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE', |
63 'hard_dependency': 1, | 63 'version_py_path': '<(DEPTH)/build/util/version.py', |
| 64 'version_path': '<(DEPTH)/chrome/VERSION', |
| 65 'template_input_path': 'cronet/android/java/src/org/chromium/net/Ver
sion.template', |
| 66 'output_path': '<(SHARED_INTERMEDIATE_DIR)/templates/<(_target_name)
/org/chromium/cronet/Version.java', |
| 67 }, |
| 68 'direct_dependent_settings': { |
| 69 'variables': { |
| 70 # Ensure that the output directory is used in the class path |
| 71 # when building targets that depend on this one. |
| 72 'generated_src_dirs': [ |
| 73 '<(SHARED_INTERMEDIATE_DIR)/templates/<(_target_name)', |
| 74 ], |
| 75 # Ensure dependents are rebuilt when the generated Java file chang
es. |
| 76 'additional_input_paths': [ |
| 77 '<(output_path)', |
| 78 ], |
| 79 }, |
| 80 }, |
64 'actions': [ | 81 'actions': [ |
65 { | 82 { |
66 'action_name': 'cronet_version', | 83 '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/android/java/src/org/chromium/net
/Version.template', | |
72 }, | |
73 'inputs': [ | 84 'inputs': [ |
74 '<(template_input_path)', | 85 '<(template_input_path)', |
75 '<(version_path)', | 86 '<(version_path)', |
76 '<(lastchange_path)', | 87 '<(lastchange_path)', |
77 ], | 88 ], |
78 'outputs': [ | 89 'outputs': [ |
79 '<(SHARED_INTERMEDIATE_DIR)/templates/<(_target_name)/org/chromi
um/cronet/Version.java', | 90 '<(output_path)', |
80 ], | 91 ], |
81 'action': [ | 92 'action': [ |
82 'python', | 93 'python', |
83 '<(version_py_path)', | 94 '<(version_py_path)', |
84 '-f', '<(version_path)', | 95 '-f', '<(version_path)', |
85 '-f', '<(lastchange_path)', | 96 '-f', '<(lastchange_path)', |
86 '<(template_input_path)', | 97 '<(template_input_path)', |
87 '<@(_outputs)', | 98 '<(output_path)', |
88 ], | 99 ], |
89 'message': 'Generating version information', | 100 'message': 'Generating version information', |
90 }, | 101 }, |
91 ], | 102 ], |
92 }, | 103 }, |
93 { | 104 { |
94 'target_name': 'cronet_static', | 105 'target_name': 'cronet_static', |
95 'type': 'static_library', | 106 'type': 'static_library', |
96 'dependencies': [ | 107 'dependencies': [ |
97 '../base/base.gyp:base', | 108 '../base/base.gyp:base', |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 'java_in_dir': 'cronet/android/test/javatests', | 485 'java_in_dir': 'cronet/android/test/javatests', |
475 'resource_dir': 'cronet/android/test/res', | 486 'resource_dir': 'cronet/android/test/res', |
476 'is_test_apk': 1, | 487 'is_test_apk': 1, |
477 }, | 488 }, |
478 'includes': [ '../build/java_apk.gypi' ], | 489 'includes': [ '../build/java_apk.gypi' ], |
479 }, | 490 }, |
480 ], | 491 ], |
481 }], # OS=="android" | 492 }], # OS=="android" |
482 ], | 493 ], |
483 } | 494 } |
OLD | NEW |