| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 # Allow icu data, v8 snapshots, and pak files to be loaded directly from the
.apk. | 95 # Allow icu data, v8 snapshots, and pak files to be loaded directly from the
.apk. |
| 96 # Note: These are actually suffix matches, not necessarily extensions. | 96 # Note: These are actually suffix matches, not necessarily extensions. |
| 97 'extensions_to_not_compress%': '.dat,.bin,.pak', | 97 'extensions_to_not_compress%': '.dat,.bin,.pak', |
| 98 'resource_input_paths': [], | 98 'resource_input_paths': [], |
| 99 'intermediate_dir': '<(PRODUCT_DIR)/<(_target_name)', | 99 'intermediate_dir': '<(PRODUCT_DIR)/<(_target_name)', |
| 100 'asset_location%': '<(intermediate_dir)/assets', | 100 'asset_location%': '<(intermediate_dir)/assets', |
| 101 'codegen_stamp': '<(intermediate_dir)/codegen.stamp', | 101 'codegen_stamp': '<(intermediate_dir)/codegen.stamp', |
| 102 'package_input_paths': [], | 102 'package_input_paths': [], |
| 103 'ordered_libraries_file': '<(intermediate_dir)/native_libraries.json', | 103 'ordered_libraries_file': '<(intermediate_dir)/native_libraries.json', |
| 104 'additional_ordered_libraries_file': '<(intermediate_dir)/additional_native_
libraries.json', | 104 'additional_ordered_libraries_file': '<(intermediate_dir)/additional_native_
libraries.json', |
| 105 'native_libraries_template': '<(DEPTH)/base/android/java/templates/NativeLib
raries.template', | |
| 106 'native_libraries_java_dir': '<(intermediate_dir)/native_libraries_java/', | 105 'native_libraries_java_dir': '<(intermediate_dir)/native_libraries_java/', |
| 107 'native_libraries_java_file': '<(native_libraries_java_dir)/NativeLibraries.
java', | |
| 108 'native_libraries_java_stamp': '<(intermediate_dir)/native_libraries_java.st
amp', | 106 'native_libraries_java_stamp': '<(intermediate_dir)/native_libraries_java.st
amp', |
| 109 'native_libraries_template_data_dir': '<(intermediate_dir)/native_libraries/
', | 107 'native_libraries_template_data_dir': '<(intermediate_dir)/native_libraries/
', |
| 110 'native_libraries_template_data_file': '<(native_libraries_template_data_dir
)/native_libraries_array.h', | 108 'native_libraries_template_data_file': '<(native_libraries_template_data_dir
)/native_libraries_array.h', |
| 111 'native_libraries_template_version_file': '<(native_libraries_template_data_
dir)/native_libraries_version.h', | 109 'native_libraries_template_version_file': '<(native_libraries_template_data_
dir)/native_libraries_version.h', |
| 112 'compile_stamp': '<(intermediate_dir)/compile.stamp', | 110 'compile_stamp': '<(intermediate_dir)/compile.stamp', |
| 113 'lint_stamp': '<(intermediate_dir)/lint.stamp', | 111 'lint_stamp': '<(intermediate_dir)/lint.stamp', |
| 114 'lint_result': '<(intermediate_dir)/lint_result.xml', | 112 'lint_result': '<(intermediate_dir)/lint_result.xml', |
| 115 'lint_config': '<(intermediate_dir)/lint_config.xml', | 113 'lint_config': '<(intermediate_dir)/lint_config.xml', |
| 116 'never_lint%': 0, | 114 'never_lint%': 0, |
| 117 'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp', | 115 'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp', |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 'enable_chromium_linker_tests%': 0, | 156 'enable_chromium_linker_tests%': 0, |
| 159 'is_test_apk%': 0, | 157 'is_test_apk%': 0, |
| 160 'unsigned_apk_path': '<(intermediate_dir)/<(apk_name)-unsigned.apk', | 158 'unsigned_apk_path': '<(intermediate_dir)/<(apk_name)-unsigned.apk', |
| 161 'unsigned_abi_split_apk_path': '<(intermediate_dir)/<(apk_name)-abi-<(an
droid_app_abi)-unsigned.apk', | 159 'unsigned_abi_split_apk_path': '<(intermediate_dir)/<(apk_name)-abi-<(an
droid_app_abi)-unsigned.apk', |
| 162 'create_abi_split%': 0, | 160 'create_abi_split%': 0, |
| 163 }, | 161 }, |
| 164 'unsigned_apk_path': '<(unsigned_apk_path)', | 162 'unsigned_apk_path': '<(unsigned_apk_path)', |
| 165 'unsigned_abi_split_apk_path': '<(unsigned_abi_split_apk_path)', | 163 'unsigned_abi_split_apk_path': '<(unsigned_abi_split_apk_path)', |
| 166 'create_abi_split%': '<(create_abi_split)', | 164 'create_abi_split%': '<(create_abi_split)', |
| 167 'conditions': [ | 165 'conditions': [ |
| 166 ['is_test_apk == 1', { |
| 167 'native_libraries_template': '<(DEPTH)/base/android/java/templates/Nat
iveTestLibraries.template', |
| 168 'native_libraries_java_file_name': 'NativeTestLibraries.java', |
| 169 }, { |
| 170 'native_libraries_template': '<(DEPTH)/base/android/java/templates/Nat
iveLibraries.template', |
| 171 'native_libraries_java_file_name': 'NativeLibraries.java', |
| 172 }], |
| 168 ['gyp_managed_install == 1 and native_lib_target != ""', { | 173 ['gyp_managed_install == 1 and native_lib_target != ""', { |
| 169 'conditions': [ | 174 'conditions': [ |
| 170 ['create_abi_split == 0', { | 175 ['create_abi_split == 0', { |
| 171 'unsigned_standalone_apk_path': '<(intermediate_dir)/<(apk_name)-s
tandalone-unsigned.apk', | 176 'unsigned_standalone_apk_path': '<(intermediate_dir)/<(apk_name)-s
tandalone-unsigned.apk', |
| 172 }, { | 177 }, { |
| 173 'unsigned_standalone_apk_path': '<(intermediate_dir)/<(apk_name)-a
bi-<(android_app_abi)-standalone-unsigned.apk', | 178 'unsigned_standalone_apk_path': '<(intermediate_dir)/<(apk_name)-a
bi-<(android_app_abi)-standalone-unsigned.apk', |
| 174 }], | 179 }], |
| 175 ], | 180 ], |
| 176 }, { | 181 }, { |
| 177 'unsigned_standalone_apk_path': '<(unsigned_apk_path)', | 182 'unsigned_standalone_apk_path': '<(unsigned_apk_path)', |
| (...skipping 12 matching lines...) Expand all Loading... |
| 190 # gyp_managed_install rather than the main .apk | 195 # gyp_managed_install rather than the main .apk |
| 191 ['create_abi_split == 1', { | 196 ['create_abi_split == 1', { |
| 192 'managed_input_apk_path': '<(unsigned_abi_split_apk_path)', | 197 'managed_input_apk_path': '<(unsigned_abi_split_apk_path)', |
| 193 }, { | 198 }, { |
| 194 'managed_input_apk_path': '<(unsigned_apk_path)', | 199 'managed_input_apk_path': '<(unsigned_apk_path)', |
| 195 }], | 200 }], |
| 196 ], | 201 ], |
| 197 }, | 202 }, |
| 198 'native_lib_target%': '', | 203 'native_lib_target%': '', |
| 199 'native_lib_version_name%': '', | 204 'native_lib_version_name%': '', |
| 205 'native_libraries_template': '<(native_libraries_template)', |
| 206 'native_libraries_java_file': '<(native_libraries_java_dir)/<(native_librari
es_java_file_name)', |
| 200 'use_chromium_linker%' : 0, | 207 'use_chromium_linker%' : 0, |
| 201 'load_library_from_zip%' : 0, | 208 'load_library_from_zip%' : 0, |
| 202 'use_relocation_packer%' : 0, | 209 'use_relocation_packer%' : 0, |
| 203 'enable_chromium_linker_tests%': 0, | 210 'enable_chromium_linker_tests%': 0, |
| 204 'emma_instrument%': '<(emma_instrument)', | 211 'emma_instrument%': '<(emma_instrument)', |
| 205 'apk_package_native_libs_dir': '<(apk_package_native_libs_dir)', | 212 'apk_package_native_libs_dir': '<(apk_package_native_libs_dir)', |
| 206 'unsigned_standalone_apk_path': '<(unsigned_standalone_apk_path)', | 213 'unsigned_standalone_apk_path': '<(unsigned_standalone_apk_path)', |
| 207 'unsigned_apk_path': '<(unsigned_apk_path)', | 214 'unsigned_apk_path': '<(unsigned_apk_path)', |
| 208 'unsigned_abi_split_apk_path': '<(unsigned_abi_split_apk_path)', | 215 'unsigned_abi_split_apk_path': '<(unsigned_abi_split_apk_path)', |
| 209 'create_abi_split%': '<(create_abi_split)', | 216 'create_abi_split%': '<(create_abi_split)', |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 363 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
| 357 '<(DEPTH)/build/android/gyp/gcc_preprocess.py', | 364 '<(DEPTH)/build/android/gyp/gcc_preprocess.py', |
| 358 '<(ordered_libraries_file)', | 365 '<(ordered_libraries_file)', |
| 359 '<(native_libraries_template)', | 366 '<(native_libraries_template)', |
| 360 ], | 367 ], |
| 361 'outputs': [ | 368 'outputs': [ |
| 362 '<(native_libraries_java_stamp)', | 369 '<(native_libraries_java_stamp)', |
| 363 ], | 370 ], |
| 364 'action': [ | 371 'action': [ |
| 365 'python', '<(DEPTH)/build/android/gyp/gcc_preprocess.py', | 372 'python', '<(DEPTH)/build/android/gyp/gcc_preprocess.py', |
| 366 '--include-path=', | 373 '--include-path=<(DEPTH)', |
| 367 '--output=<(native_libraries_java_file)', | 374 '--output=<(native_libraries_java_file)', |
| 368 '--template=<(native_libraries_template)', | 375 '--template=<(native_libraries_template)', |
| 369 '--stamp=<(native_libraries_java_stamp)', | 376 '--stamp=<(native_libraries_java_stamp)', |
| 370 '--defines', 'NATIVE_LIBRARIES_LIST=@FileArg(<(ordered_libraries_fil
e):java_libraries_list)', | 377 '--defines', 'NATIVE_LIBRARIES_LIST=@FileArg(<(ordered_libraries_fil
e):java_libraries_list)', |
| 371 '--defines', 'NATIVE_LIBRARIES_VERSION_NUMBER="<(native_lib_version_
name)"', | 378 '--defines', 'NATIVE_LIBRARIES_VERSION_NUMBER="<(native_lib_version_
name)"', |
| 372 '<@(gcc_preprocess_defines)', | 379 '<@(gcc_preprocess_defines)', |
| 373 ], | 380 ], |
| 374 }, | 381 }, |
| 375 { | 382 { |
| 376 'action_name': 'strip_native_libraries', | 383 'action_name': 'strip_native_libraries', |
| (...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1054 'native_libs_dir': '<(apk_package_native_libs_dir)', | 1061 'native_libs_dir': '<(apk_package_native_libs_dir)', |
| 1055 }, { | 1062 }, { |
| 1056 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res', | 1063 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res', |
| 1057 }], | 1064 }], |
| 1058 ], | 1065 ], |
| 1059 }, | 1066 }, |
| 1060 'includes': ['android/apkbuilder_action.gypi'], | 1067 'includes': ['android/apkbuilder_action.gypi'], |
| 1061 }, | 1068 }, |
| 1062 ], | 1069 ], |
| 1063 } | 1070 } |
| OLD | NEW |