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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 'proguard_enabled%': 'false', | 72 'proguard_enabled%': 'false', |
73 'proguard_flags_paths': ['<(generated_proguard_file)'], | 73 'proguard_flags_paths': ['<(generated_proguard_file)'], |
74 'jar_name': 'chromium_apk_<(_target_name).jar', | 74 'jar_name': 'chromium_apk_<(_target_name).jar', |
75 'resource_dir%':'<(DEPTH)/build/android/ant/empty/res', | 75 'resource_dir%':'<(DEPTH)/build/android/ant/empty/res', |
76 'R_package%':'', | 76 'R_package%':'', |
77 'additional_R_text_files': [], | 77 'additional_R_text_files': [], |
78 'dependencies_res_zip_paths': [], | 78 'dependencies_res_zip_paths': [], |
79 'additional_res_packages': [], | 79 'additional_res_packages': [], |
80 'additional_bundled_libs%': [], | 80 'additional_bundled_libs%': [], |
81 'is_test_apk%': 0, | 81 'is_test_apk%': 0, |
| 82 'extensions_to_not_compress%': '', |
82 'resource_input_paths': [], | 83 'resource_input_paths': [], |
83 'intermediate_dir': '<(PRODUCT_DIR)/<(_target_name)', | 84 'intermediate_dir': '<(PRODUCT_DIR)/<(_target_name)', |
84 'asset_location%': '<(intermediate_dir)/assets', | 85 'asset_location%': '<(intermediate_dir)/assets', |
85 'codegen_stamp': '<(intermediate_dir)/codegen.stamp', | 86 'codegen_stamp': '<(intermediate_dir)/codegen.stamp', |
86 'package_input_paths': [], | 87 'package_input_paths': [], |
87 'ordered_libraries_file': '<(intermediate_dir)/native_libraries.json', | 88 'ordered_libraries_file': '<(intermediate_dir)/native_libraries.json', |
88 'additional_ordered_libraries_file': '<(intermediate_dir)/additional_native_
libraries.json', | 89 'additional_ordered_libraries_file': '<(intermediate_dir)/additional_native_
libraries.json', |
89 'native_libraries_template': '<(DEPTH)/base/android/java/templates/NativeLib
raries.template', | 90 'native_libraries_template': '<(DEPTH)/base/android/java/templates/NativeLib
raries.template', |
90 'native_libraries_java_dir': '<(intermediate_dir)/native_libraries_java/', | 91 'native_libraries_java_dir': '<(intermediate_dir)/native_libraries_java/', |
91 'native_libraries_java_file': '<(native_libraries_java_dir)/NativeLibraries.
java', | 92 'native_libraries_java_file': '<(native_libraries_java_dir)/NativeLibraries.
java', |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 | 834 |
834 '--configuration-name', '<(CONFIGURATION_NAME)', | 835 '--configuration-name', '<(CONFIGURATION_NAME)', |
835 | 836 |
836 '--android-manifest', '<(android_manifest_path)', | 837 '--android-manifest', '<(android_manifest_path)', |
837 '--version-code', '<(app_manifest_version_code)', | 838 '--version-code', '<(app_manifest_version_code)', |
838 '--version-name', '<(app_manifest_version_name)', | 839 '--version-name', '<(app_manifest_version_name)', |
839 | 840 |
840 '--asset-dir', '<(asset_location)', | 841 '--asset-dir', '<(asset_location)', |
841 '--resource-zips', '>(package_resource_zip_input_paths)', | 842 '--resource-zips', '>(package_resource_zip_input_paths)', |
842 | 843 |
| 844 '--no-compress', '<(extensions_to_not_compress)', |
| 845 |
843 '--apk-path', '<(resource_packaged_apk_path)', | 846 '--apk-path', '<(resource_packaged_apk_path)', |
844 ], | 847 ], |
845 }, | 848 }, |
846 { | 849 { |
847 'action_name': 'ant_package_<(_target_name)', | 850 'action_name': 'ant_package_<(_target_name)', |
848 'message': 'Packaging <(_target_name)', | 851 'message': 'Packaging <(_target_name)', |
849 'variables': { | 852 'variables': { |
850 # Write the inputs list to a file, so that its mtime is updated when | 853 # Write the inputs list to a file, so that its mtime is updated when |
851 # the list of inputs changes. | 854 # the list of inputs changes. |
852 'inputs_list_file': '>|(apk_package.<(_target_name).gypcmd >@(package_in
put_paths))' | 855 'inputs_list_file': '>|(apk_package.<(_target_name).gypcmd >@(package_in
put_paths))' |
(...skipping 26 matching lines...) Expand all Loading... |
879 '-DEMMA_INSTRUMENT=<(emma_instrument)', | 882 '-DEMMA_INSTRUMENT=<(emma_instrument)', |
880 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', | 883 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', |
881 | 884 |
882 '-Dbasedir=.', | 885 '-Dbasedir=.', |
883 '-buildfile', | 886 '-buildfile', |
884 '<(DEPTH)/build/android/ant/apk-package.xml', | 887 '<(DEPTH)/build/android/ant/apk-package.xml', |
885 ] | 888 ] |
886 }, | 889 }, |
887 ], | 890 ], |
888 } | 891 } |
OLD | NEW |