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 # This file is meant to be included into a target to provide a rule | 5 # This file is meant to be included into a target to provide a rule |
6 # to generate Java source files from templates that are processed | 6 # to generate Java source files from templates that are processed |
7 # through the host C pre-processor. | 7 # through the host C pre-processor. |
8 # | 8 # |
9 # To use this, create a gyp target with the following form: | 9 # To use this, create a gyp target with the following form: |
10 # { | 10 # { |
(...skipping 23 matching lines...) Expand all Loading... | |
34 'include_path%': '<(DEPTH)', | 34 'include_path%': '<(DEPTH)', |
35 'output_dir': '<(SHARED_INTERMEDIATE_DIR)/templates/<(package_name)', | 35 'output_dir': '<(SHARED_INTERMEDIATE_DIR)/templates/<(package_name)', |
36 }, | 36 }, |
37 # Ensure that the output directory is used in the class path | 37 # Ensure that the output directory is used in the class path |
38 # when building targets that depend on this one. | 38 # when building targets that depend on this one. |
39 'direct_dependent_settings': { | 39 'direct_dependent_settings': { |
40 'variables': { | 40 'variables': { |
41 'generated_src_dirs': [ | 41 'generated_src_dirs': [ |
42 '<(output_dir)/', | 42 '<(output_dir)/', |
43 ], | 43 ], |
44 'additional_input_paths': [ | |
Yaron
2013/05/17 22:36:16
Can you add a comment about this (something like:
gone
2013/05/20 18:48:10
Done.
| |
45 '<@(_sources)', | |
46 '<@(template_deps)', | |
47 ], | |
44 }, | 48 }, |
45 }, | 49 }, |
46 # Define a single rule that will be apply to each .template file | 50 # Define a single rule that will be apply to each .template file |
47 # listed in 'sources'. | 51 # listed in 'sources'. |
48 'rules': [ | 52 'rules': [ |
49 { | 53 { |
50 'rule_name': 'generate_java_constants', | 54 'rule_name': 'generate_java_constants', |
51 'extension': 'template', | 55 'extension': 'template', |
52 # Set template_deps as additional dependencies. | 56 # Set template_deps as additional dependencies. |
53 'variables': { | 57 'variables': { |
(...skipping 10 matching lines...) Expand all Loading... | |
64 'action': [ | 68 'action': [ |
65 'python', '<(DEPTH)/build/android/gyp/gcc_preprocess.py', | 69 'python', '<(DEPTH)/build/android/gyp/gcc_preprocess.py', |
66 '--include-path=<(include_path)', | 70 '--include-path=<(include_path)', |
67 '--output=<(output_path)', | 71 '--output=<(output_path)', |
68 '--template=<(RULE_INPUT_PATH)', | 72 '--template=<(RULE_INPUT_PATH)', |
69 ], | 73 ], |
70 'message': 'Generating Java from cpp template <(RULE_INPUT_PATH)', | 74 'message': 'Generating Java from cpp template <(RULE_INPUT_PATH)', |
71 } | 75 } |
72 ], | 76 ], |
73 } | 77 } |
OLD | NEW |