Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Side by Side Diff: build/java_apk.gypi

Issue 11221003: Remove -debug suffix in apk names. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/android/pylib/test_options_parser.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 12 matching lines...) Expand all
23 # java_in_dir="content/shell/android/java" you should have a directory structure 23 # java_in_dir="content/shell/android/java" you should have a directory structure
24 # like: 24 # like:
25 # 25 #
26 # content/shell/android/java/content_shell_apk.xml 26 # content/shell/android/java/content_shell_apk.xml
27 # content/shell/android/java/src/chromium/base/Foo.java 27 # content/shell/android/java/src/chromium/base/Foo.java
28 # content/shell/android/java/src/chromium/base/Bar.java 28 # content/shell/android/java/src/chromium/base/Bar.java
29 # 29 #
30 # Required variables: 30 # Required variables:
31 # package_name - Used to name the intermediate output directory and in the 31 # package_name - Used to name the intermediate output directory and in the
32 # names of some output files. 32 # names of some output files.
33 # apk_name - The final apk will be named <apk_name>-debug.apk (or -release) 33 # apk_name - The final apk will be named <apk_name>.apk
34 # java_in_dir - The top-level java directory. The src should be in 34 # java_in_dir - The top-level java directory. The src should be in
35 # <java_in_dir>/src. 35 # <java_in_dir>/src.
36 # Optional/automatic variables: 36 # Optional/automatic variables:
37 # additional_input_paths - These paths will be included in the 'inputs' list to 37 # additional_input_paths - These paths will be included in the 'inputs' list to
38 # ensure that this target is rebuilt when one of these paths changes. 38 # ensure that this target is rebuilt when one of these paths changes.
39 # additional_src_dirs - Additional directories with .java files to be compiled 39 # additional_src_dirs - Additional directories with .java files to be compiled
40 # and included in the output of this target. 40 # and included in the output of this target.
41 # asset_location - The directory where assets are located (default: 41 # asset_location - The directory where assets are located (default:
42 # <PRODUCT_DIR>/<package_name>/assets). 42 # <PRODUCT_DIR>/<package_name>/assets).
43 # generated_src_dirs - Same as additional_src_dirs except used for .java files 43 # generated_src_dirs - Same as additional_src_dirs except used for .java files
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 '>@(input_jars_paths)', 110 '>@(input_jars_paths)',
111 '>@(native_libs_paths)', 111 '>@(native_libs_paths)',
112 '>@(additional_input_paths)', 112 '>@(additional_input_paths)',
113 ], 113 ],
114 'conditions': [ 114 'conditions': [
115 ['resource_dir!=""', { 115 ['resource_dir!=""', {
116 'inputs': ['<!@(find <(java_in_dir)/<(resource_dir) -name "*")'] 116 'inputs': ['<!@(find <(java_in_dir)/<(resource_dir) -name "*")']
117 }], 117 }],
118 ], 118 ],
119 'outputs': [ 119 'outputs': [
120 # TODO(cjhopman): Apks are built with a -debug suffix even when they are 120 '<(PRODUCT_DIR)/apks/<(apk_name).apk',
121 # built in release. This should be fixed.
122 '<(PRODUCT_DIR)/apks/<(apk_name)-debug.apk',
123 ], 121 ],
124 'action': [ 122 'action': [
125 'ant', 123 'ant',
126 '-DAPP_ABI=<(android_app_abi)', 124 '-DAPP_ABI=<(android_app_abi)',
127 '-DANDROID_GDBSERVER=<(android_gdbserver)', 125 '-DANDROID_GDBSERVER=<(android_gdbserver)',
128 '-DANDROID_SDK=<(android_sdk)', 126 '-DANDROID_SDK=<(android_sdk)',
129 '-DANDROID_SDK_ROOT=<(android_sdk_root)', 127 '-DANDROID_SDK_ROOT=<(android_sdk_root)',
130 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', 128 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)',
131 '-DANDROID_SDK_VERSION=<(android_sdk_version)', 129 '-DANDROID_SDK_VERSION=<(android_sdk_version)',
132 '-DANDROID_TOOLCHAIN=<(android_toolchain)', 130 '-DANDROID_TOOLCHAIN=<(android_toolchain)',
(...skipping 17 matching lines...) Expand all
150 '-buildfile', 148 '-buildfile',
151 '<(DEPTH)/build/android/ant/chromium-apk.xml', 149 '<(DEPTH)/build/android/ant/chromium-apk.xml',
152 150
153 # Specify CONFIGURATION_NAME as the target for ant to build. The 151 # Specify CONFIGURATION_NAME as the target for ant to build. The
154 # buildfile will then build the appropriate SDK tools target. 152 # buildfile will then build the appropriate SDK tools target.
155 '<(CONFIGURATION_NAME)', 153 '<(CONFIGURATION_NAME)',
156 ] 154 ]
157 }, 155 },
158 ], 156 ],
159 } 157 }
OLDNEW
« no previous file with comments | « build/android/pylib/test_options_parser.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698