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 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 | 852 |
852 '--configuration-name', '<(CONFIGURATION_NAME)', | 853 '--configuration-name', '<(CONFIGURATION_NAME)', |
853 | 854 |
854 '--android-manifest', '<(android_manifest_path)', | 855 '--android-manifest', '<(android_manifest_path)', |
855 '--version-code', '<(app_manifest_version_code)', | 856 '--version-code', '<(app_manifest_version_code)', |
856 '--version-name', '<(app_manifest_version_name)', | 857 '--version-name', '<(app_manifest_version_name)', |
857 | 858 |
858 '--asset-dir', '<(asset_location)', | 859 '--asset-dir', '<(asset_location)', |
859 '--resource-zips', '>(package_resource_zip_input_paths)', | 860 '--resource-zips', '>(package_resource_zip_input_paths)', |
860 | 861 |
| 862 '--no-compress', '<(extensions_to_not_compress)', |
| 863 |
861 '--apk-path', '<(resource_packaged_apk_path)', | 864 '--apk-path', '<(resource_packaged_apk_path)', |
862 ], | 865 ], |
863 }, | 866 }, |
864 { | 867 { |
865 'action_name': 'ant_package_<(_target_name)', | 868 'action_name': 'ant_package_<(_target_name)', |
866 'message': 'Packaging <(_target_name)', | 869 'message': 'Packaging <(_target_name)', |
867 'variables': { | 870 'variables': { |
868 # Write the inputs list to a file, so that its mtime is updated when | 871 # Write the inputs list to a file, so that its mtime is updated when |
869 # the list of inputs changes. | 872 # the list of inputs changes. |
870 'inputs_list_file': '>|(apk_package.<(_target_name).gypcmd >@(package_in
put_paths))' | 873 'inputs_list_file': '>|(apk_package.<(_target_name).gypcmd >@(package_in
put_paths))' |
(...skipping 26 matching lines...) Expand all Loading... |
897 '-DEMMA_INSTRUMENT=<(emma_instrument)', | 900 '-DEMMA_INSTRUMENT=<(emma_instrument)', |
898 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', | 901 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', |
899 | 902 |
900 '-Dbasedir=.', | 903 '-Dbasedir=.', |
901 '-buildfile', | 904 '-buildfile', |
902 '<(DEPTH)/build/android/ant/apk-package.xml', | 905 '<(DEPTH)/build/android/ant/apk-package.xml', |
903 ] | 906 ] |
904 }, | 907 }, |
905 ], | 908 ], |
906 } | 909 } |
OLD | NEW |