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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 'obfuscated_jar_path': '<(intermediate_dir)/obfuscated.jar', | 101 'obfuscated_jar_path': '<(intermediate_dir)/obfuscated.jar', |
102 'dex_path': '<(intermediate_dir)/classes.dex', | 102 'dex_path': '<(intermediate_dir)/classes.dex', |
103 'emma_device_jar': '<(android_sdk_root)/tools/lib/emma_device.jar', | 103 'emma_device_jar': '<(android_sdk_root)/tools/lib/emma_device.jar', |
104 'android_manifest_path%': '<(java_in_dir)/AndroidManifest.xml', | 104 'android_manifest_path%': '<(java_in_dir)/AndroidManifest.xml', |
105 'push_stamp': '<(intermediate_dir)/push.stamp', | 105 'push_stamp': '<(intermediate_dir)/push.stamp', |
106 'link_stamp': '<(intermediate_dir)/link.stamp', | 106 'link_stamp': '<(intermediate_dir)/link.stamp', |
107 'package_resources_stamp': '<(intermediate_dir)/package_resources.stamp', | 107 'package_resources_stamp': '<(intermediate_dir)/package_resources.stamp', |
108 'unsigned_apk_path': '<(intermediate_dir)/<(apk_name)-unsigned.apk', | 108 'unsigned_apk_path': '<(intermediate_dir)/<(apk_name)-unsigned.apk', |
109 'final_apk_path%': '<(PRODUCT_DIR)/apks/<(apk_name).apk', | 109 'final_apk_path%': '<(PRODUCT_DIR)/apks/<(apk_name).apk', |
110 'incomplete_apk_path': '<(intermediate_dir)/<(apk_name)-incomplete.apk', | 110 'incomplete_apk_path': '<(intermediate_dir)/<(apk_name)-incomplete.apk', |
111 'source_dir': '<(java_in_dir)/src', | |
112 'apk_install_record': '<(intermediate_dir)/apk_install.record.stamp', | 111 'apk_install_record': '<(intermediate_dir)/apk_install.record.stamp', |
113 'device_intermediate_dir': '/data/local/tmp/chromium/<(_target_name)/<(CONFI
GURATION_NAME)', | 112 'device_intermediate_dir': '/data/local/tmp/chromium/<(_target_name)/<(CONFI
GURATION_NAME)', |
114 'symlink_script_host_path': '<(intermediate_dir)/create_symlinks.sh', | 113 'symlink_script_host_path': '<(intermediate_dir)/create_symlinks.sh', |
115 'symlink_script_device_path': '<(device_intermediate_dir)/create_symlinks.sh
', | 114 'symlink_script_device_path': '<(device_intermediate_dir)/create_symlinks.sh
', |
116 'create_standalone_apk%': 1, | 115 'create_standalone_apk%': 1, |
117 'variables': { | 116 'variables': { |
118 'variables': { | 117 'variables': { |
119 'native_lib_target%': '', | 118 'native_lib_target%': '', |
120 'native_lib_version_name%': '', | 119 'native_lib_version_name%': '', |
121 'use_chromium_linker%' : 0, | 120 'use_chromium_linker%' : 0, |
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
750 ], | 749 ], |
751 'action': [ | 750 'action': [ |
752 'python', '<(DEPTH)/build/android/gyp/ant.py', | 751 'python', '<(DEPTH)/build/android/gyp/ant.py', |
753 '-quiet', | 752 '-quiet', |
754 '-DANDROID_SDK_ROOT=<(android_sdk_root)', | 753 '-DANDROID_SDK_ROOT=<(android_sdk_root)', |
755 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', | 754 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', |
756 '-DAPK_NAME=<(apk_name)', | 755 '-DAPK_NAME=<(apk_name)', |
757 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', | 756 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', |
758 '-DNATIVE_LIBS_DIR=<(apk_package_native_libs_dir)', | 757 '-DNATIVE_LIBS_DIR=<(apk_package_native_libs_dir)', |
759 '-DOUT_DIR=<(intermediate_dir)', | 758 '-DOUT_DIR=<(intermediate_dir)', |
760 '-DSOURCE_DIR=<(source_dir)', | |
761 '-DUNSIGNED_APK_PATH=<(unsigned_apk_path)', | 759 '-DUNSIGNED_APK_PATH=<(unsigned_apk_path)', |
762 '-DEMMA_INSTRUMENT=<(emma_instrument)', | 760 '-DEMMA_INSTRUMENT=<(emma_instrument)', |
763 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', | 761 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', |
764 | 762 |
765 '-Dbasedir=.', | 763 '-Dbasedir=.', |
766 '-buildfile', | 764 '-buildfile', |
767 '<(DEPTH)/build/android/ant/apk-package.xml', | 765 '<(DEPTH)/build/android/ant/apk-package.xml', |
768 ] | 766 ] |
769 }, | 767 }, |
770 ], | 768 ], |
771 } | 769 } |
OLD | NEW |