| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 # listed in 'sources'. | 47 # listed in 'sources'. |
| 48 'rules': [ | 48 'rules': [ |
| 49 { | 49 { |
| 50 'rule_name': 'generate_java_constants', | 50 'rule_name': 'generate_java_constants', |
| 51 'extension': 'template', | 51 'extension': 'template', |
| 52 # Set template_deps as additional dependencies. | 52 # Set template_deps as additional dependencies. |
| 53 'variables': { | 53 'variables': { |
| 54 'output_path': '<(output_dir)/<(RULE_INPUT_ROOT).java', | 54 'output_path': '<(output_dir)/<(RULE_INPUT_ROOT).java', |
| 55 }, | 55 }, |
| 56 'inputs': [ | 56 'inputs': [ |
| 57 '<(DEPTH)/build/android/pylib/build_utils.py', | 57 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
| 58 '<(DEPTH)/build/android/gcc_preprocess.py', | 58 '<(DEPTH)/build/android/gyp/gcc_preprocess.py', |
| 59 '<@(template_deps)' | 59 '<@(template_deps)' |
| 60 ], | 60 ], |
| 61 'outputs': [ | 61 'outputs': [ |
| 62 '<(output_path)', | 62 '<(output_path)', |
| 63 ], | 63 ], |
| 64 'action': [ | 64 'action': [ |
| 65 'python', '<(DEPTH)/build/android/gcc_preprocess.py', | 65 'python', '<(DEPTH)/build/android/gyp/gcc_preprocess.py', |
| 66 '--include-path=<(include_path)', | 66 '--include-path=<(include_path)', |
| 67 '--output=<(output_path)', | 67 '--output=<(output_path)', |
| 68 '--template=<(RULE_INPUT_PATH)', | 68 '--template=<(RULE_INPUT_PATH)', |
| 69 ], | 69 ], |
| 70 'message': 'Generating Java from cpp template <(RULE_INPUT_PATH)', | 70 'message': 'Generating Java from cpp template <(RULE_INPUT_PATH)', |
| 71 } | 71 } |
| 72 ], | 72 ], |
| 73 } | 73 } |
| OLD | NEW |