| 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 2231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2242 'java_in_dir': '../net/android/javatests', | 2242 'java_in_dir': '../net/android/javatests', |
| 2243 }, | 2243 }, |
| 2244 'dependencies': [ | 2244 'dependencies': [ |
| 2245 '../base/base.gyp:base', | 2245 '../base/base.gyp:base', |
| 2246 '../base/base.gyp:base_java_test_support', | 2246 '../base/base.gyp:base_java_test_support', |
| 2247 'net_java', | 2247 'net_java', |
| 2248 ], | 2248 ], |
| 2249 'includes': [ '../build/java.gypi' ], | 2249 'includes': [ '../build/java.gypi' ], |
| 2250 }, | 2250 }, |
| 2251 { | 2251 { |
| 2252 # This should be extracted to a gypi file and parameterized if | |
| 2253 # we have more use cases of using the preprocessor to build java files
. | |
| 2254 'target_name': 'net_errors_java', | 2252 'target_name': 'net_errors_java', |
| 2255 'type': 'none', | 2253 'type': 'none', |
| 2256 'direct_dependent_settings': { | 2254 'sources': [ |
| 2257 'variables': { | 2255 'base/net_error_list.h', |
| 2258 'generated_src_dirs': ['<(SHARED_INTERMEDIATE_DIR)/net/template/']
, | 2256 'android/java/NetError.template', |
| 2259 'additional_input_paths': ['<(SHARED_INTERMEDIATE_DIR)/net/templat
e/NetError.java'], | 2257 ], |
| 2260 }, | 2258 'variables': { |
| 2259 'package_name': 'org.chromium.net', |
| 2261 }, | 2260 }, |
| 2262 'actions': [ | 2261 'includes': [ '../build/java_cpp_template.gypi' ], |
| 2263 { | 2262 } |
| 2264 'action_name': 'generate_net_errors_java', | |
| 2265 'inputs': [ | |
| 2266 'android/java/net_errors_java.template', | |
| 2267 ], | |
| 2268 'outputs': [ | |
| 2269 '<(SHARED_INTERMEDIATE_DIR)/net/template/NetError.java', | |
| 2270 ], | |
| 2271 'action': [ | |
| 2272 'gcc', | |
| 2273 '-x', 'c-header', | |
| 2274 '-E', '-P', | |
| 2275 '-I', '..', | |
| 2276 '-o', | |
| 2277 '<@(_outputs)', | |
| 2278 '<@(_inputs)', | |
| 2279 ], | |
| 2280 'message': 'Preprocessing <(_inputs)', | |
| 2281 'process_outputs_as_sources': 1, | |
| 2282 }, | |
| 2283 ], | |
| 2284 }, | |
| 2285 ], | 2263 ], |
| 2286 }], | 2264 }], |
| 2287 # Special target to wrap a gtest_target_type==shared_library | 2265 # Special target to wrap a gtest_target_type==shared_library |
| 2288 # net_unittests into an android apk for execution. | 2266 # net_unittests into an android apk for execution. |
| 2289 # See base.gyp for TODO(jrg)s about this strategy. | 2267 # See base.gyp for TODO(jrg)s about this strategy. |
| 2290 ['OS == "android" and gtest_target_type == "shared_library"', { | 2268 ['OS == "android" and gtest_target_type == "shared_library"', { |
| 2291 'targets': [ | 2269 'targets': [ |
| 2292 { | 2270 { |
| 2293 'target_name': 'net_unittests_apk', | 2271 'target_name': 'net_unittests_apk', |
| 2294 'type': 'none', | 2272 'type': 'none', |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2360 '--result', '<@(_outputs)', | 2338 '--result', '<@(_outputs)', |
| 2361 '--isolate', 'net_unittests.isolate', | 2339 '--isolate', 'net_unittests.isolate', |
| 2362 ], | 2340 ], |
| 2363 }, | 2341 }, |
| 2364 ], | 2342 ], |
| 2365 }, | 2343 }, |
| 2366 ], | 2344 ], |
| 2367 }], | 2345 }], |
| 2368 ], | 2346 ], |
| 2369 } | 2347 } |
| OLD | NEW |