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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 '<(java_in_dir)/AndroidManifest.xml', | 43 '<(java_in_dir)/AndroidManifest.xml', |
44 '<(DEPTH)/build/android/ant/common.xml', | 44 '<(DEPTH)/build/android/ant/common.xml', |
45 '<(DEPTH)/build/android/ant/sdk-targets.xml', | 45 '<(DEPTH)/build/android/ant/sdk-targets.xml', |
46 '<!@(find <(java_in_dir) -name "*.java")', | 46 '<!@(find <(java_in_dir) -name "*.java")', |
47 '<!@(find <(java_in_dir)/<(resource_dir) -name "*")', | 47 '<!@(find <(java_in_dir)/<(resource_dir) -name "*")', |
48 '>@(input_jars_paths)', | 48 '>@(input_jars_paths)', |
49 '>@(native_libs_paths)', | 49 '>@(native_libs_paths)', |
50 '>@(additional_input_paths)', | 50 '>@(additional_input_paths)', |
51 ], | 51 ], |
52 'outputs': [ | 52 'outputs': [ |
53 '<(PRODUCT_DIR)/<(package_name)/<(apk_name)-debug.apk', | 53 '<(PRODUCT_DIR)/apks/<(apk_name)-debug.apk', |
54 ], | 54 ], |
55 'action': [ | 55 'action': [ |
56 'ant', | 56 'ant', |
57 '-DPRODUCT_DIR=<(ant_build_out)', | 57 '-DPRODUCT_DIR=<(ant_build_out)', |
58 '-DAPP_ABI=<(android_app_abi)', | 58 '-DAPP_ABI=<(android_app_abi)', |
59 '-DANDROID_GDBSERVER=<(android_gdbserver)', | 59 '-DANDROID_GDBSERVER=<(android_gdbserver)', |
60 '-DANDROID_SDK=<(android_sdk)', | 60 '-DANDROID_SDK=<(android_sdk)', |
61 '-DANDROID_SDK_ROOT=<(android_sdk_root)', | 61 '-DANDROID_SDK_ROOT=<(android_sdk_root)', |
62 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', | 62 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', |
63 '-DANDROID_SDK_VERSION=<(android_sdk_version)', | 63 '-DANDROID_SDK_VERSION=<(android_sdk_version)', |
64 '-DANDROID_TOOLCHAIN=<(android_toolchain)', | 64 '-DANDROID_TOOLCHAIN=<(android_toolchain)', |
65 '-DPACKAGE_NAME=<(package_name)', | 65 '-DPACKAGE_NAME=<(package_name)', |
66 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', | 66 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', |
67 '-DINPUT_JARS_PATHS=>(input_jars_paths)', | 67 '-DINPUT_JARS_PATHS=>(input_jars_paths)', |
68 '-DADDITIONAL_SRC_DIRS=>(additional_src_dirs)', | 68 '-DADDITIONAL_SRC_DIRS=>(additional_src_dirs)', |
| 69 '-DCHROMIUM_SRC=<(ant_build_out)/../..', |
69 '-DRESOURCE_DIR=<(resource_dir)', | 70 '-DRESOURCE_DIR=<(resource_dir)', |
70 '-buildfile', | 71 '-buildfile', |
71 '<(java_in_dir)/<(package_name)_apk.xml' | 72 '<(java_in_dir)/<(package_name)_apk.xml' |
72 ] | 73 ] |
73 }, | 74 }, |
74 ], | 75 ], |
75 } | 76 } |
OLD | NEW |