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 Android APKs in a consistent manner. | 6 # to build Android APKs 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': 'my_package_apk', | 10 # 'target_name': 'my_package_apk', |
11 # 'type': 'none', | 11 # 'type': 'none', |
12 # 'variables': { | 12 # 'variables': { |
13 # 'apk_name': 'MyPackage', | 13 # 'apk_name': 'MyPackage', |
14 # 'java_in_dir': 'path/to/package/root', | 14 # 'java_in_dir': 'path/to/package/root', |
15 # 'resource_dir': 'path/to/package/root/res', | 15 # 'resource_dir': 'path/to/package/root/res', |
16 # }, | 16 # }, |
17 # 'includes': ['path/to/this/gypi/file'], | 17 # 'includes': ['path/to/this/gypi/file'], |
18 # } | 18 # } |
19 # | 19 # |
20 # Required variables: | 20 # Required variables: |
21 # apk_name - The final apk will be named <apk_name>.apk | 21 # apk_name - The final apk will be named <apk_name>.apk |
22 # java_in_dir - The top-level java directory. The src should be in | 22 # java_in_dir - The top-level java directory. The src should be in |
23 # <(java_in_dir)/src. | 23 # <(java_in_dir)/src. |
24 # Optional/automatic variables: | 24 # Optional/automatic variables: |
25 # additional_input_paths - These paths will be included in the 'inputs' list to | 25 # additional_input_paths - These paths will be included in the 'inputs' list to |
26 # ensure that this target is rebuilt when one of these paths changes. | 26 # ensure that this target is rebuilt when one of these paths changes. |
27 # additional_res_dirs - Additional directories containing Android resources. | 27 # additional_res_packages - Package names of R.java files generated in addition |
28 # additional_res_packages - Package names of the R.java files corresponding to | 28 # to the default package name defined in AndroidManifest.xml. |
29 # each directory in additional_res_dirs. | |
30 # additional_src_dirs - Additional directories with .java files to be compiled | 29 # additional_src_dirs - Additional directories with .java files to be compiled |
31 # and included in the output of this target. | 30 # and included in the output of this target. |
32 # additional_bundled_libs - Additional libraries what will be stripped and | 31 # additional_bundled_libs - Additional libraries what will be stripped and |
33 # bundled in the apk. | 32 # bundled in the apk. |
34 # asset_location - The directory where assets are located. | 33 # asset_location - The directory where assets are located. |
35 # generated_src_dirs - Same as additional_src_dirs except used for .java files | 34 # generated_src_dirs - Same as additional_src_dirs except used for .java files |
36 # that are generated at build time. This should be set automatically by a | 35 # that are generated at build time. This should be set automatically by a |
37 # target's dependencies. The .java files in these directories are not | 36 # target's dependencies. The .java files in these directories are not |
38 # included in the 'inputs' list (unlike additional_src_dirs). | 37 # included in the 'inputs' list (unlike additional_src_dirs). |
39 # input_jars_paths - The path to jars to be included in the classpath. This | 38 # input_jars_paths - The path to jars to be included in the classpath. This |
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
927 '-DEMMA_INSTRUMENT=<(emma_instrument)', | 926 '-DEMMA_INSTRUMENT=<(emma_instrument)', |
928 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', | 927 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', |
929 | 928 |
930 '-Dbasedir=.', | 929 '-Dbasedir=.', |
931 '-buildfile', | 930 '-buildfile', |
932 '<(DEPTH)/build/android/ant/apk-package.xml', | 931 '<(DEPTH)/build/android/ant/apk-package.xml', |
933 ] | 932 ] |
934 }, | 933 }, |
935 ], | 934 ], |
936 } | 935 } |
OLD | NEW |