| 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 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 { | 37 { |
| 38 'direct_dependent_settings': { | 38 'direct_dependent_settings': { |
| 39 'variables': { | 39 'variables': { |
| 40 'generated_src_dirs': ['<(SHARED_INTERMEDIATE_DIR)/<(package_name)/aidl/']
, | 40 'generated_src_dirs': ['<(SHARED_INTERMEDIATE_DIR)/<(package_name)/aidl/']
, |
| 41 }, | 41 }, |
| 42 }, | 42 }, |
| 43 'variables': { | 43 'variables': { |
| 44 'aidl_import_include%': '', | 44 'aidl_import_include%': '', |
| 45 'additional_aidl_arguments': [], | 45 'additional_aidl_arguments': [], |
| 46 'additional_aidl_input_paths': [], |
| 46 }, | 47 }, |
| 47 'conditions': [ | 48 'conditions': [ |
| 48 ['"<(aidl_import_include)"!=""', { | 49 ['"<(aidl_import_include)"!=""', { |
| 49 'variables': { | 50 'variables': { |
| 50 'additional_aidl_arguments': [ '-I<(aidl_import_include)' ] | 51 'additional_aidl_arguments': [ '-I<(aidl_import_include)' ], |
| 52 'additional_aidl_input_paths': [ '<!@(find <(aidl_import_include) -name
"*.java")', ] |
| 51 } | 53 } |
| 52 }], | 54 }], |
| 53 ], | 55 ], |
| 54 'rules': [ | 56 'rules': [ |
| 55 { | 57 { |
| 56 'rule_name': 'compile_aidl', | 58 'rule_name': 'compile_aidl', |
| 57 'extension': 'aidl', | 59 'extension': 'aidl', |
| 58 'inputs': [ | 60 'inputs': [ |
| 59 '<(android_sdk)/framework.aidl', | 61 '<(android_sdk)/framework.aidl', |
| 60 '<(aidl_interface_file)', | 62 '<(aidl_interface_file)', |
| 63 '<@(additional_aidl_input_paths)', |
| 61 ], | 64 ], |
| 62 'outputs': [ | 65 'outputs': [ |
| 63 '<(SHARED_INTERMEDIATE_DIR)/<(package_name)/aidl/<(RULE_INPUT_ROOT).java
', | 66 '<(SHARED_INTERMEDIATE_DIR)/<(package_name)/aidl/<(RULE_INPUT_ROOT).java
', |
| 64 ], | 67 ], |
| 65 'action': [ | 68 'action': [ |
| 66 '<(android_sdk_tools)/aidl', | 69 '<(android_sdk_tools)/aidl', |
| 67 '-p<(android_sdk)/framework.aidl', | 70 '-p<(android_sdk)/framework.aidl', |
| 68 '-p<(aidl_interface_file)', | 71 '-p<(aidl_interface_file)', |
| 69 '<@(additional_aidl_arguments)', | 72 '<@(additional_aidl_arguments)', |
| 70 '<(RULE_INPUT_PATH)', | 73 '<(RULE_INPUT_PATH)', |
| 71 '<(SHARED_INTERMEDIATE_DIR)/<(package_name)/aidl/<(RULE_INPUT_ROOT).java
', | 74 '<(SHARED_INTERMEDIATE_DIR)/<(package_name)/aidl/<(RULE_INPUT_ROOT).java
', |
| 72 ], | 75 ], |
| 73 }, | 76 }, |
| 74 ], | 77 ], |
| 75 } | 78 } |
| OLD | NEW |