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