OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'variables': { | 5 'variables': { |
6 'chromium_code': 1, | 6 'chromium_code': 1, |
7 }, | 7 }, |
8 'includes': [ | 8 'includes': [ |
9 'chrome_android_paks.gypi', # Included for the list of pak resources. | 9 'chrome_android_paks.gypi', # Included for the list of pak resources. |
10 ], | 10 ], |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 'android/testshell/java/src/org/chromium/chrome/testshell/TabManager.jav
a', | 69 'android/testshell/java/src/org/chromium/chrome/testshell/TabManager.jav
a', |
70 ], | 70 ], |
71 'variables': { | 71 'variables': { |
72 'jni_gen_dir': 'chromium_testshell', | 72 'jni_gen_dir': 'chromium_testshell', |
73 }, | 73 }, |
74 'includes': [ '../build/jni_generator.gypi' ], | 74 'includes': [ '../build/jni_generator.gypi' ], |
75 }, | 75 }, |
76 { | 76 { |
77 # chromium_testshell creates a .jar as a side effect. Any java targets | 77 # chromium_testshell creates a .jar as a side effect. Any java targets |
78 # that need that .jar in their classpath should depend on this target, | 78 # that need that .jar in their classpath should depend on this target, |
79 # chromium_testshell_java. | 79 # chromium_testshell_java. Dependents of chromium_testshell receive its |
| 80 # jar path in the variable 'apk_output_jar_path'. |
80 'target_name': 'chromium_testshell_java', | 81 'target_name': 'chromium_testshell_java', |
81 'type': 'none', | 82 'type': 'none', |
82 'dependencies': [ | 83 'dependencies': [ |
83 '../media/media.gyp:media_java', | |
84 'chrome.gyp:chrome_java', | |
85 'chromium_testshell', | 84 'chromium_testshell', |
86 ], | 85 ], |
87 'variables': { | |
88 'output_jar': '<(PRODUCT_DIR)/lib.java/chromium_apk_chromium_testshell.j
ar' | |
89 }, | |
90 'outputs': ['<(output_jar)'], | |
91 # This all_dependent_settings is used for java targets only. This will add | 86 # This all_dependent_settings is used for java targets only. This will add |
92 # the chromium_testshell jar to the classpath of dependent java targets. | 87 # the chromium_testshell jar to the classpath of dependent java targets. |
93 'all_dependent_settings': { | 88 'all_dependent_settings': { |
94 'variables': { | 89 'variables': { |
95 'input_jars_paths': ['<(output_jar)'], | 90 'input_jars_paths': ['>(apk_output_jar_path)'], |
96 }, | 91 }, |
97 }, | 92 }, |
98 # Add an action with the appropriate output. This allows the generated | 93 # Add an action with the appropriate output. This allows the generated |
99 # buildfiles to determine which target the output corresponds to. | 94 # buildfiles to determine which target the output corresponds to. |
100 'actions': [ | 95 'actions': [ |
101 { | 96 { |
102 'action_name': 'fake_generate_jar', | 97 'action_name': 'fake_generate_jar', |
103 'inputs': [], | 98 'inputs': [], |
104 'outputs': ['<(output_jar)'], | 99 'outputs': ['>(apk_output_jar_path)'], |
105 'action': [], | 100 'action': [], |
106 }, | 101 }, |
107 ], | 102 ], |
108 }, | 103 }, |
109 { | 104 { |
110 'target_name': 'chrome_android_core', | 105 'target_name': 'chrome_android_core', |
111 'type': 'static_library', | 106 'type': 'static_library', |
112 'dependencies': [ | 107 'dependencies': [ |
113 'chrome.gyp:browser', | 108 'chrome.gyp:browser', |
114 'chrome.gyp:plugin', | 109 'chrome.gyp:plugin', |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 ], | 141 ], |
147 'copies': [ | 142 'copies': [ |
148 { | 143 { |
149 'destination': '<(chrome_android_pak_output_folder)', | 144 'destination': '<(chrome_android_pak_output_folder)', |
150 'files': [ '<@(chrome_android_pak_input_resources)' ], | 145 'files': [ '<@(chrome_android_pak_input_resources)' ], |
151 } | 146 } |
152 ], | 147 ], |
153 }, | 148 }, |
154 ], | 149 ], |
155 } | 150 } |
OLD | NEW |