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 2256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2267 'java_in_dir': '../net/android/javatests', | 2267 'java_in_dir': '../net/android/javatests', |
2268 }, | 2268 }, |
2269 'dependencies': [ | 2269 'dependencies': [ |
2270 '../base/base.gyp:base', | 2270 '../base/base.gyp:base', |
2271 '../base/base.gyp:base_java_test_support', | 2271 '../base/base.gyp:base_java_test_support', |
2272 'net_java', | 2272 'net_java', |
2273 ], | 2273 ], |
2274 'includes': [ '../build/java.gypi' ], | 2274 'includes': [ '../build/java.gypi' ], |
2275 }, | 2275 }, |
2276 { | 2276 { |
2277 # This should be extracted to a gypi file and parameterized if | |
2278 # we have more use cases of using the preprocessor to build java files
. | |
2279 'target_name': 'net_errors_java', | 2277 'target_name': 'net_errors_java', |
2280 'type': 'none', | 2278 'type': 'none', |
2281 'direct_dependent_settings': { | 2279 'sources': [ |
2282 'variables': { | 2280 'base/net_error_list.h', |
2283 'generated_src_dirs': ['<(SHARED_INTERMEDIATE_DIR)/net/template/']
, | 2281 'android/java/NetError.template', |
2284 'additional_input_paths': ['<(SHARED_INTERMEDIATE_DIR)/net/templat
e/NetError.java'], | 2282 ], |
2285 }, | 2283 'variables': { |
| 2284 'package_name': 'org.chromium.net', |
2286 }, | 2285 }, |
2287 'actions': [ | 2286 'includes': [ '../build/android/java_cpp_template.gypi' ], |
2288 { | 2287 } |
2289 'action_name': 'generate_net_errors_java', | |
2290 'inputs': [ | |
2291 'android/java/net_errors_java.template', | |
2292 ], | |
2293 'outputs': [ | |
2294 '<(SHARED_INTERMEDIATE_DIR)/net/template/NetError.java', | |
2295 ], | |
2296 'action': [ | |
2297 'gcc', | |
2298 '-x', 'c-header', | |
2299 '-E', '-P', | |
2300 '-I', '..', | |
2301 '-o', | |
2302 '<@(_outputs)', | |
2303 '<@(_inputs)', | |
2304 ], | |
2305 'message': 'Preprocessing <(_inputs)', | |
2306 'process_outputs_as_sources': 1, | |
2307 }, | |
2308 ], | |
2309 }, | |
2310 ], | 2288 ], |
2311 }], | 2289 }], |
2312 # Special target to wrap a gtest_target_type==shared_library | 2290 # Special target to wrap a gtest_target_type==shared_library |
2313 # net_unittests into an android apk for execution. | 2291 # net_unittests into an android apk for execution. |
2314 # See base.gyp for TODO(jrg)s about this strategy. | 2292 # See base.gyp for TODO(jrg)s about this strategy. |
2315 ['OS == "android" and gtest_target_type == "shared_library"', { | 2293 ['OS == "android" and gtest_target_type == "shared_library"', { |
2316 'targets': [ | 2294 'targets': [ |
2317 { | 2295 { |
2318 'target_name': 'net_unittests_apk', | 2296 'target_name': 'net_unittests_apk', |
2319 'type': 'none', | 2297 'type': 'none', |
(...skipping 40 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 |