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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
45 # that are generated at build time. This should be set automatically by a | 45 # that are generated at build time. This should be set automatically by a |
46 # target's dependencies. The .java files in these directories are not | 46 # target's dependencies. The .java files in these directories are not |
47 # included in the 'inputs' list (unlike additional_src_dirs). | 47 # included in the 'inputs' list (unlike additional_src_dirs). |
48 # input_jars_paths - The path to jars to be included in the classpath. This | 48 # input_jars_paths - The path to jars to be included in the classpath. This |
49 # should be filled automatically by depending on the appropriate targets. | 49 # should be filled automatically by depending on the appropriate targets. |
50 # native_libs_paths - The path to any native library to be included in this | 50 # native_libs_paths - The path to any native library to be included in this |
51 # target. | 51 # target. |
52 | 52 |
53 { | 53 { |
54 'variables': { | 54 'variables': { |
55 'asset_location': '', | 55 'asset_location%': '', |
Yaron
2012/10/09 20:43:12
I guess we're racing to make this change :)
| |
56 'additional_input_paths': [], | 56 'additional_input_paths': [], |
57 'input_jars_paths': [], | 57 'input_jars_paths': [], |
58 'native_libs_paths': [], | 58 'native_libs_paths': [], |
59 'additional_src_dirs': [], | 59 'additional_src_dirs': [], |
60 'generated_src_dirs': [], | 60 'generated_src_dirs': [], |
61 'app_manifest_version_name%': '<(android_app_version_name)', | |
62 'app_manifest_version_code%': '<(android_app_version_code)', | |
63 'proguard_enabled%': 'false', | |
64 'proguard_flags%': '' | |
61 }, | 65 }, |
62 'actions': [ | 66 'actions': [ |
63 { | 67 { |
64 'action_name': 'ant_<(package_name)_apk', | 68 'action_name': 'ant_<(package_name)_apk', |
65 'message': 'Building <(package_name) apk.', | 69 'message': 'Building <(package_name) apk.', |
66 'inputs': [ | 70 'inputs': [ |
67 '<(java_in_dir)/AndroidManifest.xml', | 71 '<(java_in_dir)/AndroidManifest.xml', |
68 '<(DEPTH)/build/android/ant/chromium-apk.xml', | 72 '<(DEPTH)/build/android/ant/chromium-apk.xml', |
69 '<(DEPTH)/build/android/ant/common.xml', | 73 '<(DEPTH)/build/android/ant/common.xml', |
70 '<(DEPTH)/build/android/ant/sdk-targets.xml', | 74 '<(DEPTH)/build/android/ant/sdk-targets.xml', |
(...skipping 21 matching lines...) Expand all Loading... | |
92 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', | 96 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', |
93 '-DPRODUCT_DIR=<(ant_build_out)', | 97 '-DPRODUCT_DIR=<(ant_build_out)', |
94 | 98 |
95 '-DAPK_NAME=<(apk_name)', | 99 '-DAPK_NAME=<(apk_name)', |
96 '-DASSET_DIR=<(asset_location)', | 100 '-DASSET_DIR=<(asset_location)', |
97 '-DADDITIONAL_SRC_DIRS=>(additional_src_dirs)', | 101 '-DADDITIONAL_SRC_DIRS=>(additional_src_dirs)', |
98 '-DGENERATED_SRC_DIRS=>(generated_src_dirs)', | 102 '-DGENERATED_SRC_DIRS=>(generated_src_dirs)', |
99 '-DINPUT_JARS_PATHS=>(input_jars_paths)', | 103 '-DINPUT_JARS_PATHS=>(input_jars_paths)', |
100 '-DPACKAGE_NAME=<(package_name)', | 104 '-DPACKAGE_NAME=<(package_name)', |
101 '-DRESOURCE_DIR=<(resource_dir)', | 105 '-DRESOURCE_DIR=<(resource_dir)', |
106 '-DAPP_MANIFEST_VERSION_NAME=<(app_manifest_version_name)', | |
107 '-DAPP_MANIFEST_VERSION_CODE=<(app_manifest_version_code)', | |
108 '-DPROGUARD_FLAGS=>(proguard_flags)', | |
109 '-DPROGUARD_ENABLED=>(proguard_enabled)', | |
102 | 110 |
103 '-Dbasedir=<(java_in_dir)', | 111 '-Dbasedir=<(java_in_dir)', |
104 '-buildfile', | 112 '-buildfile', |
105 '<(DEPTH)/build/android/ant/chromium-apk.xml' | 113 '<(DEPTH)/build/android/ant/chromium-apk.xml' |
106 ] | 114 ] |
107 }, | 115 }, |
108 ], | 116 ], |
109 } | 117 } |
OLD | NEW |