Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: build/java_aidl.gypi

Issue 10987083: Add more generic support for java targets bundling multiple directories (Closed) Base URL: http://git.chromium.org/chromium/src.git@apk_jar
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/java.gypi ('k') | build/java_apk.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « build/java.gypi ('k') | build/java_apk.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698