Chromium Code Reviews| Index: build/android/java_cpp_template.gypi |
| diff --git a/build/android/java_cpp_template.gypi b/build/android/java_cpp_template.gypi |
| index a222e15d7d46ec3ef5f9f95fc90b5e5db59fd803..1117ab771e51acab75bb3bfab1a486ce16f2689e 100644 |
| --- a/build/android/java_cpp_template.gypi |
| +++ b/build/android/java_cpp_template.gypi |
| @@ -1,4 +1,4 @@ |
| -# Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +# Copyright (c) 2013 The Chromium Authors. All rights reserved. |
|
mkosiba (inactive)
2013/01/18 21:44:38
the new policy is to not update these I think.
michaelbai
2013/01/18 21:50:29
Done.
|
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| @@ -14,21 +14,21 @@ |
| # 'target_name': 'android_net_java_constants', |
| # 'type': 'none', |
| # 'sources': [ |
| -# 'net/base/certificate_mime_type_list.h', |
| # 'net/android/NetError.template', |
| # ], |
| # 'variables': { |
| # 'package_name': 'org.chromium.net', |
| +# 'template_deps': ['net/base/certificate_mime_type_list.h'], |
| # }, |
| # 'includes': [ '../build/android/java_constants.gypi' ], |
| # }, |
| # |
| -# The 'sources' entry should list all input files. The template file |
| +# The 'sources' entry should only list template file. The template file |
| # itself should use the 'ClassName.template' format, and will generate |
| -# 'gen/templates/<package-name>/ClassName.java. Other source files |
| -# are those typically included by the template. Any change to them |
| -# will force a rebuild of the template, and hence of any source that |
| -# depends on it. |
| +# 'gen/templates/<package-name>/ClassName.java. The files which template |
| +# dependents on and typically included by the template should be listed |
| +# in template_deps variables. Any change to them will force a rebuild of |
| +# the template, and hence of any source that depends on it. |
| # |
| { |
| @@ -51,9 +51,8 @@ |
| { |
| 'rule_name': 'generate_java_constants', |
| 'extension': 'template', |
| - 'inputs': [ |
| - '<(RULE_INPUT_PATH)', |
| - ], |
| + # Set template_deps as additional dependencies. |
| + 'inputs': ['<@(template_deps)'], |
| 'outputs': [ |
| '<(output_dir)/<(RULE_INPUT_ROOT).java' |
| ], |