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', |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 # generated_src_dirs - Same as additional_src_dirs except used for .java files | 46 # generated_src_dirs - Same as additional_src_dirs except used for .java files |
47 # that are generated at build time. This should be set automatically by a | 47 # that are generated at build time. This should be set automatically by a |
48 # target's dependencies. The .java files in these directories are not | 48 # target's dependencies. The .java files in these directories are not |
49 # included in the 'inputs' list (unlike additional_src_dirs). | 49 # included in the 'inputs' list (unlike additional_src_dirs). |
50 # input_jars_paths - The path to jars to be included in the classpath. This | 50 # input_jars_paths - The path to jars to be included in the classpath. This |
51 # should be filled automatically by depending on the appropriate targets. | 51 # should be filled automatically by depending on the appropriate targets. |
52 # is_test_apk - Set to 1 if building a test apk. This prevents resources from | 52 # is_test_apk - Set to 1 if building a test apk. This prevents resources from |
53 # dependencies from being re-included. | 53 # dependencies from being re-included. |
54 # native_libs_paths - The path to any native library to be included in this | 54 # native_libs_paths - The path to any native library to be included in this |
55 # target. This should be a path in <(SHARED_LIB_DIR). A stripped copy of | 55 # target. This should be a path in <(SHARED_LIB_DIR). A stripped copy of |
56 # the library will be included in the apk and symbolic links to the | 56 # the library will be included in the apk. |
57 # unstripped copy will be added to <(android_product_out) to enable native | |
58 # debugging. | |
59 # resource_dir - The directory for resources. | 57 # resource_dir - The directory for resources. |
60 # R_package - A custom Java package to generate the resource file R.java in. | 58 # R_package - A custom Java package to generate the resource file R.java in. |
61 # By default, the package given in AndroidManifest.xml will be used. | 59 # By default, the package given in AndroidManifest.xml will be used. |
62 | 60 |
63 { | 61 { |
64 'variables': { | 62 'variables': { |
65 'asset_location%': '', | 63 'asset_location%': '', |
66 'additional_input_paths': [], | 64 'additional_input_paths': [], |
67 'input_jars_paths': [], | 65 'input_jars_paths': [], |
68 'additional_src_dirs': [], | 66 'additional_src_dirs': [], |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 'variables': { | 186 'variables': { |
189 # We generate R.java in package R_package (in addition to the package | 187 # We generate R.java in package R_package (in addition to the package |
190 # listed in the AndroidManifest.xml, which is unavoidable). | 188 # listed in the AndroidManifest.xml, which is unavoidable). |
191 'additional_res_dirs': ['<(DEPTH)/build/android/ant/empty/res'], | 189 'additional_res_dirs': ['<(DEPTH)/build/android/ant/empty/res'], |
192 'additional_res_packages': ['<(R_package)'], | 190 'additional_res_packages': ['<(R_package)'], |
193 'additional_R_text_files': ['<(PRODUCT_DIR)/<(package_name)/R.txt'], | 191 'additional_R_text_files': ['<(PRODUCT_DIR)/<(package_name)/R.txt'], |
194 }, | 192 }, |
195 }], | 193 }], |
196 ], | 194 ], |
197 } | 195 } |
OLD | NEW |