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

Side by Side Diff: build/android/finalize_apk_action.gypi

Issue 334413006: Add support for uncompress library in APK to the build system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update for Ross' review Created 6 years, 5 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 | « base/android/java/templates/NativeLibraries.template ('k') | build/android/gyp/finalize_apk.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 an action to provide an action that 5 # This file is meant to be included into an action to provide an action that
6 # signs and zipaligns an APK. 6 # signs and zipaligns an APK.
7 # 7 #
8 # To use this, create a gyp action with the following form: 8 # To use this, create a gyp action with the following form:
9 # { 9 # {
10 # 'action_name': 'some descriptive action name', 10 # 'action_name': 'some descriptive action name',
11 # 'variables': { 11 # 'variables': {
12 # 'input_apk_path': 'relative/path/to/input.apk', 12 # 'input_apk_path': 'relative/path/to/input.apk',
13 # 'output_apk_path': 'relative/path/to/output.apk', 13 # 'output_apk_path': 'relative/path/to/output.apk',
14 # }, 14 # },
15 # 'includes': [ '../../build/android/finalize_apk.gypi' ], 15 # 'includes': [ '../../build/android/finalize_apk.gypi' ],
16 # }, 16 # },
17 # 17 #
18 18
19 { 19 {
20 'message': 'Signing/aligning <(_target_name) APK: <(input_apk_path)', 20 'message': 'Signing/aligning <(_target_name) APK: <(input_apk_path)',
21 'variables': { 21 'variables': {
22 'keystore_path%': '<(DEPTH)/build/android/ant/chromium-debug.keystore', 22 'keystore_path%': '<(DEPTH)/build/android/ant/chromium-debug.keystore',
23 'keystore_name%': 'chromiumdebugkey', 23 'keystore_name%': 'chromiumdebugkey',
24 'keystore_password%': 'chromium', 24 'keystore_password%': 'chromium',
25 'conditions': [ 25 'conditions': [
26 # Webview doesn't use zipalign. 26 # Webview doesn't use zipalign or rezip.
27 ['android_webview_build==0', { 27 ['android_webview_build==0', {
28 'zipalign_path%': ['<!@(find <(android_sdk_root) -name zipalign)'], 28 'zipalign_path%': ['<!@(find <(android_sdk_root) -name zipalign)'],
29 'rezip_path%': '<(PRODUCT_DIR)/rezip',
29 }, { 30 }, {
30 'zipalign_path%': "", 31 'zipalign_path%': "",
32 'rezip_path%': "",
31 }], 33 }],
32 ], 34 ],
33 }, 35 },
34 'inputs': [ 36 'inputs': [
35 '<(DEPTH)/build/android/gyp/util/build_utils.py', 37 '<(DEPTH)/build/android/gyp/util/build_utils.py',
36 '<(DEPTH)/build/android/gyp/finalize_apk.py', 38 '<(DEPTH)/build/android/gyp/finalize_apk.py',
37 '<(keystore_path)', 39 '<(keystore_path)',
38 '<(input_apk_path)', 40 '<(input_apk_path)',
39 ], 41 ],
40 'outputs': [ 42 'outputs': [
41 '<(output_apk_path)', 43 '<(output_apk_path)',
42 ], 44 ],
43 'action': [ 45 'action': [
44 'python', '<(DEPTH)/build/android/gyp/finalize_apk.py', 46 'python', '<(DEPTH)/build/android/gyp/finalize_apk.py',
45 '--zipalign-path=<(zipalign_path)', 47 '--zipalign-path=<(zipalign_path)',
46 '--unsigned-apk-path=<(input_apk_path)', 48 '--unsigned-apk-path=<(input_apk_path)',
47 '--final-apk-path=<(output_apk_path)', 49 '--final-apk-path=<(output_apk_path)',
48 '--key-path=<(keystore_path)', 50 '--key-path=<(keystore_path)',
49 '--key-name=<(keystore_name)', 51 '--key-name=<(keystore_name)',
50 '--key-passwd=<(keystore_password)', 52 '--key-passwd=<(keystore_password)',
53 '--load-library-from-zip-file=<(load_library_from_zip_file)',
54 '--rezip-path=<(rezip_path)',
51 ], 55 ],
52 } 56 }
OLDNEW
« no previous file with comments | « base/android/java/templates/NativeLibraries.template ('k') | build/android/gyp/finalize_apk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698