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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 'shared_resources%': 0, | 132 'shared_resources%': 0, |
133 'unsigned_apk_path': '<(intermediate_dir)/<(apk_name)-unsigned.apk', | 133 'unsigned_apk_path': '<(intermediate_dir)/<(apk_name)-unsigned.apk', |
134 'final_apk_path%': '<(PRODUCT_DIR)/apks/<(apk_name).apk', | 134 'final_apk_path%': '<(PRODUCT_DIR)/apks/<(apk_name).apk', |
135 'incomplete_apk_path': '<(intermediate_dir)/<(apk_name)-incomplete.apk', | 135 'incomplete_apk_path': '<(intermediate_dir)/<(apk_name)-incomplete.apk', |
136 'apk_install_record': '<(intermediate_dir)/apk_install.record.stamp', | 136 'apk_install_record': '<(intermediate_dir)/apk_install.record.stamp', |
137 'device_intermediate_dir': '/data/data/org.chromium.gyp_managed_install/<(_t
arget_name)/<(CONFIGURATION_NAME)', | 137 'device_intermediate_dir': '/data/data/org.chromium.gyp_managed_install/<(_t
arget_name)/<(CONFIGURATION_NAME)', |
138 'symlink_script_host_path': '<(intermediate_dir)/create_symlinks.sh', | 138 'symlink_script_host_path': '<(intermediate_dir)/create_symlinks.sh', |
139 'symlink_script_device_path': '<(device_intermediate_dir)/create_symlinks.sh
', | 139 'symlink_script_device_path': '<(device_intermediate_dir)/create_symlinks.sh
', |
140 'create_standalone_apk%': 1, | 140 'create_standalone_apk%': 1, |
141 'res_v14_skip%': 0, | 141 'res_v14_skip%': 0, |
142 'res_v14_verify_only%': 0, | |
143 'variables': { | 142 'variables': { |
144 'variables': { | 143 'variables': { |
145 'native_lib_target%': '', | 144 'native_lib_target%': '', |
146 'native_lib_version_name%': '', | 145 'native_lib_version_name%': '', |
147 'use_chromium_linker%' : 0, | 146 'use_chromium_linker%' : 0, |
148 'load_library_from_zip_file%' : 0, | 147 'load_library_from_zip_file%' : 0, |
149 'use_relocation_packer%' : 0, | 148 'use_relocation_packer%' : 0, |
150 'enable_chromium_linker_tests%': 0, | 149 'enable_chromium_linker_tests%': 0, |
151 'is_test_apk%': 0, | 150 'is_test_apk%': 0, |
152 }, | 151 }, |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 'inputs_list_file': '>|(apk_codegen.<(_target_name).gypcmd >@(additional
_input_paths) >@(resource_input_paths))', | 600 'inputs_list_file': '>|(apk_codegen.<(_target_name).gypcmd >@(additional
_input_paths) >@(resource_input_paths))', |
602 'process_resources_options': [], | 601 'process_resources_options': [], |
603 'conditions': [ | 602 'conditions': [ |
604 ['is_test_apk == 1', { | 603 ['is_test_apk == 1', { |
605 'dependencies_res_zip_paths=': [], | 604 'dependencies_res_zip_paths=': [], |
606 'additional_res_packages=': [], | 605 'additional_res_packages=': [], |
607 }], | 606 }], |
608 ['res_v14_skip == 1', { | 607 ['res_v14_skip == 1', { |
609 'process_resources_options+': ['--v14-skip'] | 608 'process_resources_options+': ['--v14-skip'] |
610 }], | 609 }], |
611 ['res_v14_verify_only == 1', { | |
612 'process_resources_options+': ['--v14-verify-only'] | |
613 }], | |
614 ['shared_resources == 1', { | 610 ['shared_resources == 1', { |
615 'process_resources_options+': ['--shared-resources'] | 611 'process_resources_options+': ['--shared-resources'] |
616 }], | 612 }], |
617 ['R_package != ""', { | 613 ['R_package != ""', { |
618 'process_resources_options+': ['--custom-package', '<(R_package)'] | 614 'process_resources_options+': ['--custom-package', '<(R_package)'] |
619 }], | 615 }], |
620 ['include_all_resources == 1', { | 616 ['include_all_resources == 1', { |
621 'process_resources_options+': ['--include-all-resources'] | 617 'process_resources_options+': ['--include-all-resources'] |
622 }] | 618 }] |
623 ], | 619 ], |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 'conditions': [ | 882 'conditions': [ |
887 ['native_lib_target != ""', { | 883 ['native_lib_target != ""', { |
888 'extra_inputs': ['<(native_lib_placeholder_stamp)'], | 884 'extra_inputs': ['<(native_lib_placeholder_stamp)'], |
889 }], | 885 }], |
890 ], | 886 ], |
891 }, | 887 }, |
892 'includes': ['android/apkbuilder_action.gypi'], | 888 'includes': ['android/apkbuilder_action.gypi'], |
893 }, | 889 }, |
894 ], | 890 ], |
895 } | 891 } |
OLD | NEW |