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 build Java aidl files in a consistent manner. | 6 # to build Java aidl files in a consistent manner. |
7 # | 7 # |
8 # To use this, create a gyp target with the following form: | 8 # To use this, create a gyp target with the following form: |
9 # { | 9 # { |
10 # 'target_name': 'aidl_aidl-file-name', | 10 # 'target_name': 'aidl_aidl-file-name', |
(...skipping 14 matching lines...) Expand all Loading... |
25 # The generated java files will be: | 25 # The generated java files will be: |
26 # <(PRODUCT_DIR)/lib.java/<input-file1>.java | 26 # <(PRODUCT_DIR)/lib.java/<input-file1>.java |
27 # <(PRODUCT_DIR)/lib.java/<input-file2>.java | 27 # <(PRODUCT_DIR)/lib.java/<input-file2>.java |
28 # ... | 28 # ... |
29 # | 29 # |
30 # TODO(cjhopman): dependents need to rebuild when this target's inputs have chan
ged. | 30 # TODO(cjhopman): dependents need to rebuild when this target's inputs have chan
ged. |
31 | 31 |
32 { | 32 { |
33 'direct_dependent_settings': { | 33 'direct_dependent_settings': { |
34 'variables': { | 34 'variables': { |
35 'additional_src_dirs': ['<(SHARED_INTERMEDIATE_DIR)/<(package_name)/aidl/'
], | 35 'generated_src_dirs': ['<(SHARED_INTERMEDIATE_DIR)/<(package_name)/aidl/']
, |
36 }, | 36 }, |
37 }, | 37 }, |
38 'rules': [ | 38 'rules': [ |
39 { | 39 { |
40 'rule_name': 'compile_aidl', | 40 'rule_name': 'compile_aidl', |
41 'extension': 'aidl', | 41 'extension': 'aidl', |
42 'inputs': [ | 42 'inputs': [ |
43 '<(android_sdk)/framework.aidl', | 43 '<(android_sdk)/framework.aidl', |
44 '<(aidl_interface_file)', | 44 '<(aidl_interface_file)', |
45 ], | 45 ], |
46 'outputs': [ | 46 'outputs': [ |
47 '<(SHARED_INTERMEDIATE_DIR)/<(package_name)/aidl/<(RULE_INPUT_ROOT).java
', | 47 '<(SHARED_INTERMEDIATE_DIR)/<(package_name)/aidl/<(RULE_INPUT_ROOT).java
', |
48 ], | 48 ], |
49 'action': [ | 49 'action': [ |
50 '<(android_sdk_tools)/aidl', | 50 '<(android_sdk_tools)/aidl', |
51 '-p<(android_sdk)/framework.aidl', | 51 '-p<(android_sdk)/framework.aidl', |
52 '-p<(aidl_interface_file)', | 52 '-p<(aidl_interface_file)', |
53 '<(RULE_INPUT_PATH)', | 53 '<(RULE_INPUT_PATH)', |
54 '<(SHARED_INTERMEDIATE_DIR)/<(package_name)/aidl/<(RULE_INPUT_ROOT).java
', | 54 '<(SHARED_INTERMEDIATE_DIR)/<(package_name)/aidl/<(RULE_INPUT_ROOT).java
', |
55 ], | 55 ], |
56 }, | 56 }, |
57 ], | 57 ], |
58 } | 58 } |
OLD | NEW |