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 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 '<(obfuscate_stamp)', | 881 '<(obfuscate_stamp)', |
882 '<(resource_packaged_apk_path)', | 882 '<(resource_packaged_apk_path)', |
883 '>@(package_input_paths)', | 883 '>@(package_input_paths)', |
884 '>(inputs_list_file)', | 884 '>(inputs_list_file)', |
885 ], | 885 ], |
886 'outputs': [ | 886 'outputs': [ |
887 '<(unsigned_apk_path)', | 887 '<(unsigned_apk_path)', |
888 ], | 888 ], |
889 'action': [ | 889 'action': [ |
890 'python', '<(DEPTH)/build/android/gyp/ant.py', | 890 'python', '<(DEPTH)/build/android/gyp/ant.py', |
| 891 '--', |
891 '-quiet', | 892 '-quiet', |
| 893 '-DDEX_FILE_PATH=<(intermediate_dir)/classes.dex', |
892 '-DANDROID_SDK_ROOT=<(android_sdk_root)', | 894 '-DANDROID_SDK_ROOT=<(android_sdk_root)', |
893 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', | 895 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', |
894 '-DRESOURCE_PACKAGED_APK_NAME=<(resource_packaged_apk_name)', | 896 '-DRESOURCE_PACKAGED_APK_NAME=<(resource_packaged_apk_name)', |
895 '-DAPK_NAME=<(apk_name)', | 897 '-DAPK_NAME=<(apk_name)', |
896 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', | 898 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', |
897 '-DNATIVE_LIBS_DIR=<(apk_package_native_libs_dir)', | 899 '-DNATIVE_LIBS_DIR=<(apk_package_native_libs_dir)', |
898 '-DOUT_DIR=<(intermediate_dir)', | 900 '-DOUT_DIR=<(intermediate_dir)', |
899 '-DUNSIGNED_APK_PATH=<(unsigned_apk_path)', | 901 '-DUNSIGNED_APK_PATH=<(unsigned_apk_path)', |
900 '-DEMMA_INSTRUMENT=<(emma_instrument)', | 902 '-DEMMA_INSTRUMENT=<(emma_instrument)', |
901 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', | 903 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', |
902 | 904 |
903 '-Dbasedir=.', | 905 '-Dbasedir=.', |
904 '-buildfile', | 906 '-buildfile', |
905 '<(DEPTH)/build/android/ant/apk-package.xml', | 907 '<(DEPTH)/build/android/ant/apk-package.xml', |
906 ] | 908 ] |
907 }, | 909 }, |
908 ], | 910 ], |
909 } | 911 } |
OLD | NEW |