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 2259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2270 'java_in_dir': '../net/android/javatests', | 2270 'java_in_dir': '../net/android/javatests', |
2271 }, | 2271 }, |
2272 'dependencies': [ | 2272 'dependencies': [ |
2273 '../base/base.gyp:base', | 2273 '../base/base.gyp:base', |
2274 '../base/base.gyp:base_java_test_support', | 2274 '../base/base.gyp:base_java_test_support', |
2275 'net_java', | 2275 'net_java', |
2276 ], | 2276 ], |
2277 'includes': [ '../build/java.gypi' ], | 2277 'includes': [ '../build/java.gypi' ], |
2278 }, | 2278 }, |
2279 { | 2279 { |
2280 # This should be extracted to a gypi file and parameterized if | |
2281 # we have more use cases of using the preprocessor to build java files . | |
2282 'target_name': 'net_errors_java', | 2280 'target_name': 'net_errors_java', |
2283 'type': 'none', | 2281 'type': 'none', |
2284 'direct_dependent_settings': { | 2282 'sources': [ |
2285 'variables': { | 2283 'base/net_error_list.h', |
2286 'generated_src_dirs': ['<(SHARED_INTERMEDIATE_DIR)/net/template/'] , | 2284 'android/java/NetError.template', |
2287 'additional_input_paths': ['<(SHARED_INTERMEDIATE_DIR)/net/templat e/NetError.java'], | 2285 ], |
Ryan Sleevi
2012/12/07 03:20:10
Do you no longer have to specify additional_input_
digit1
2012/12/07 08:46:07
I believe this is handled by the 'generated_src_di
| |
2288 }, | 2286 'variables': { |
2287 'package_name': 'org.chromium.net', | |
2289 }, | 2288 }, |
2290 'actions': [ | 2289 'includes': [ '../build/android/java_cpp_template.gypi' ], |
2291 { | 2290 } |
2292 'action_name': 'generate_net_errors_java', | |
2293 'inputs': [ | |
2294 'android/java/net_errors_java.template', | |
2295 ], | |
2296 'outputs': [ | |
2297 '<(SHARED_INTERMEDIATE_DIR)/net/template/NetError.java', | |
2298 ], | |
2299 'action': [ | |
2300 'gcc', | |
2301 '-x', 'c-header', | |
2302 '-E', '-P', | |
2303 '-I', '..', | |
2304 '-o', | |
2305 '<@(_outputs)', | |
2306 '<@(_inputs)', | |
2307 ], | |
2308 'message': 'Preprocessing <(_inputs)', | |
2309 'process_outputs_as_sources': 1, | |
2310 }, | |
2311 ], | |
2312 }, | |
2313 ], | 2291 ], |
2314 }], | 2292 }], |
2315 # Special target to wrap a gtest_target_type==shared_library | 2293 # Special target to wrap a gtest_target_type==shared_library |
2316 # net_unittests into an android apk for execution. | 2294 # net_unittests into an android apk for execution. |
2317 # See base.gyp for TODO(jrg)s about this strategy. | 2295 # See base.gyp for TODO(jrg)s about this strategy. |
2318 ['OS == "android" and gtest_target_type == "shared_library"', { | 2296 ['OS == "android" and gtest_target_type == "shared_library"', { |
2319 'targets': [ | 2297 'targets': [ |
2320 { | 2298 { |
2321 'target_name': 'net_unittests_apk', | 2299 'target_name': 'net_unittests_apk', |
2322 'type': 'none', | 2300 'type': 'none', |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2363 '--result', '<@(_outputs)', | 2341 '--result', '<@(_outputs)', |
2364 '--isolate', 'net_unittests.isolate', | 2342 '--isolate', 'net_unittests.isolate', |
2365 ], | 2343 ], |
2366 }, | 2344 }, |
2367 ], | 2345 ], |
2368 }, | 2346 }, |
2369 ], | 2347 ], |
2370 }], | 2348 }], |
2371 ], | 2349 ], |
2372 } | 2350 } |
OLD | NEW |