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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 | 8 |
9 'linux_link_kerberos%': 0, | 9 'linux_link_kerberos%': 0, |
10 'conditions': [ | 10 'conditions': [ |
(...skipping 2093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2104 }, | 2104 }, |
2105 { | 2105 { |
2106 'target_name': 'net_java', | 2106 'target_name': 'net_java', |
2107 'type': 'none', | 2107 'type': 'none', |
2108 'variables': { | 2108 'variables': { |
2109 'package_name': 'net', | 2109 'package_name': 'net', |
2110 'java_in_dir': '../net/android/java', | 2110 'java_in_dir': '../net/android/java', |
2111 }, | 2111 }, |
2112 'dependencies': [ | 2112 'dependencies': [ |
2113 '../base/base.gyp:base', | 2113 '../base/base.gyp:base', |
| 2114 'net_errors_java', |
2114 ], | 2115 ], |
2115 'export_dependent_settings': [ | 2116 'export_dependent_settings': [ |
2116 '../base/base.gyp:base', | 2117 '../base/base.gyp:base', |
2117 ], | 2118 ], |
2118 'includes': [ '../build/java.gypi' ], | 2119 'includes': [ '../build/java.gypi' ], |
2119 }, | 2120 }, |
2120 { | 2121 { |
2121 'target_name': 'net_javatests', | 2122 'target_name': 'net_javatests', |
2122 'type': 'none', | 2123 'type': 'none', |
2123 'variables': { | 2124 'variables': { |
2124 'package_name': 'net_javatests', | 2125 'package_name': 'net_javatests', |
2125 'java_in_dir': '../net/android/javatests', | 2126 'java_in_dir': '../net/android/javatests', |
2126 }, | 2127 }, |
2127 'dependencies': [ | 2128 'dependencies': [ |
2128 '../base/base.gyp:base', | 2129 '../base/base.gyp:base', |
2129 '../base/base.gyp:base_java_test_support', | 2130 '../base/base.gyp:base_java_test_support', |
2130 'net_java', | 2131 'net_java', |
2131 ], | 2132 ], |
2132 'export_dependent_settings': [ | 2133 'export_dependent_settings': [ |
2133 '../base/base.gyp:base', | 2134 '../base/base.gyp:base', |
2134 '../base/base.gyp:base_java_test_support', | 2135 '../base/base.gyp:base_java_test_support', |
2135 'net_java', | 2136 'net_java', |
2136 ], | 2137 ], |
2137 'includes': [ '../build/java.gypi' ], | 2138 'includes': [ '../build/java.gypi' ], |
2138 }, | 2139 }, |
| 2140 { |
| 2141 # This should be extracted to a gypi file and parameterized if |
| 2142 # we have more use cases of using the preprocessor to build java files
. |
| 2143 'target_name': 'net_errors_java', |
| 2144 'type': 'none', |
| 2145 'direct_dependent_settings': { |
| 2146 'variables': { |
| 2147 'additional_src_dirs': ['<(SHARED_INTERMEDIATE_DIR)/net/template/'
], |
| 2148 }, |
| 2149 }, |
| 2150 'actions': [ |
| 2151 { |
| 2152 'action_name': 'generate_net_errors_java', |
| 2153 'inputs': [ |
| 2154 'android/java/net_errors_java.template', |
| 2155 ], |
| 2156 'outputs': [ |
| 2157 '<(SHARED_INTERMEDIATE_DIR)/net/template/NetError.java', |
| 2158 ], |
| 2159 'action': [ |
| 2160 'gcc', |
| 2161 '-x', 'c-header', |
| 2162 '-E', '-P', |
| 2163 '-I', '..', |
| 2164 '-o', |
| 2165 '<@(_outputs)', |
| 2166 '<@(_inputs)', |
| 2167 ], |
| 2168 'message': 'Preprocessing <(_inputs)', |
| 2169 'process_outputs_as_sources': 1, |
| 2170 }, |
| 2171 ], |
| 2172 }, |
2139 ], | 2173 ], |
2140 }], | 2174 }], |
2141 # Special target to wrap a gtest_target_type==shared_library | 2175 # Special target to wrap a gtest_target_type==shared_library |
2142 # net_unittests into an android apk for execution. | 2176 # net_unittests into an android apk for execution. |
2143 # See base.gyp for TODO(jrg)s about this strategy. | 2177 # See base.gyp for TODO(jrg)s about this strategy. |
2144 ['OS == "android" and gtest_target_type == "shared_library"', { | 2178 ['OS == "android" and gtest_target_type == "shared_library"', { |
2145 'targets': [ | 2179 'targets': [ |
2146 { | 2180 { |
2147 'target_name': 'net_unittests_apk', | 2181 'target_name': 'net_unittests_apk', |
2148 'type': 'none', | 2182 'type': 'none', |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2214 '--result', '<@(_outputs)', | 2248 '--result', '<@(_outputs)', |
2215 '--isolate', 'net_unittests.isolate', | 2249 '--isolate', 'net_unittests.isolate', |
2216 ], | 2250 ], |
2217 }, | 2251 }, |
2218 ], | 2252 ], |
2219 }, | 2253 }, |
2220 ], | 2254 ], |
2221 }], | 2255 }], |
2222 ], | 2256 ], |
2223 } | 2257 } |
OLD | NEW |