| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 a helper to java_apk.gypi. It should be used to create an | 5 # This file is a helper to java_apk.gypi. It should be used to create an |
| 6 # action that runs ApkBuilder via ANT. | 6 # action that runs ApkBuilder via ANT. |
| 7 # | 7 # |
| 8 # Required variables: | 8 # Required variables: |
| 9 # apk_name - File name (minus path & extension) of the output apk. | 9 # apk_name - File name (minus path & extension) of the output apk. |
| 10 # apk_path - Path to output apk. | 10 # apk_path - Path to output apk. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 'outputs': [ | 49 'outputs': [ |
| 50 '<(apk_path)', | 50 '<(apk_path)', |
| 51 ], | 51 ], |
| 52 'conditions': [ | 52 'conditions': [ |
| 53 ['has_code == 1', { | 53 ['has_code == 1', { |
| 54 'inputs': ['<(dex_path)'], | 54 'inputs': ['<(dex_path)'], |
| 55 'action': [ | 55 'action': [ |
| 56 '-DDEX_FILE_PATH=<(dex_path)', | 56 '-DDEX_FILE_PATH=<(dex_path)', |
| 57 ] | 57 ] |
| 58 }], | 58 }], |
| 59 ['enable_multidex == 1', { |
| 60 'action': [ |
| 61 '-DMULTIDEX_ENABLED=1', |
| 62 ] |
| 63 }] |
| 59 ], | 64 ], |
| 60 'action': [ | 65 'action': [ |
| 61 'python', '<(DEPTH)/build/android/gyp/ant.py', | 66 'python', '<(DEPTH)/build/android/gyp/ant.py', |
| 62 '--', | 67 '--', |
| 63 '-quiet', | 68 '-quiet', |
| 64 '-DHAS_CODE=<(has_code_str)', | 69 '-DHAS_CODE=<(has_code_str)', |
| 65 '-DANDROID_SDK_ROOT=<(android_sdk_root)', | 70 '-DANDROID_SDK_ROOT=<(android_sdk_root)', |
| 66 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', | 71 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', |
| 67 '-DRESOURCE_PACKAGED_APK_NAME=<(resource_packaged_apk_name)', | 72 '-DRESOURCE_PACKAGED_APK_NAME=<(resource_packaged_apk_name)', |
| 68 '-DNATIVE_LIBS_DIR=<(native_libs_dir)', | 73 '-DNATIVE_LIBS_DIR=<(native_libs_dir)', |
| 69 '-DAPK_NAME=<(apk_name)', | 74 '-DAPK_NAME=<(apk_name)', |
| 70 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', | 75 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', |
| 71 '-DOUT_DIR=<(intermediate_dir)', | 76 '-DOUT_DIR=<(intermediate_dir)', |
| 72 '-DUNSIGNED_APK_PATH=<(apk_path)', | 77 '-DUNSIGNED_APK_PATH=<(apk_path)', |
| 73 '-DEMMA_INSTRUMENT=<(emma_instrument)', | 78 '-DEMMA_INSTRUMENT=<(emma_instrument)', |
| 74 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', | 79 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', |
| 75 '-Dbasedir=.', | 80 '-Dbasedir=.', |
| 76 '-buildfile', | 81 '-buildfile', |
| 77 '<(DEPTH)/build/android/ant/apk-package.xml', | 82 '<(DEPTH)/build/android/ant/apk-package.xml', |
| 78 ] | 83 ] |
| 79 } | 84 } |
| OLD | NEW |