[Android] Remove adb_commands from telemetry.
[chromium-blink-merge.git] / build / android / finalize_apk_action.gypi
blob644f9e8ecc5b20c44ce46e1da477406b6ee3c5db
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
3 # found in the LICENSE file.
5 # This file is meant to be included into an action to provide an action that
6 # signs and zipaligns an APK.
8 # To use this, create a gyp action with the following form:
9 #  {
10 #    'action_name': 'some descriptive action name',
11 #    'variables': {
12 #      'input_apk_path': 'relative/path/to/input.apk',
13 #      'output_apk_path': 'relative/path/to/output.apk',
14 #    },
15 #    'includes': [ '../../build/android/finalize_apk_action.gypi' ],
16 #  },
20   'message': 'Signing/aligning <(_target_name) APK: <(input_apk_path)',
21   'variables': {
22     'keystore_path%': '<(DEPTH)/build/android/ant/chromium-debug.keystore',
23     'keystore_name%': 'chromiumdebugkey',
24     'keystore_password%': 'chromium',
25     'zipalign_path%': '<(android_sdk_tools)/zipalign',
26     'rezip_apk_jar_path%': '<(PRODUCT_DIR)/lib.java/rezip_apk.jar',
27     'load_library_from_zip%': 0,
28   },
29   'inputs': [
30     '<(DEPTH)/build/android/gyp/finalize_apk.py',
31     '<(DEPTH)/build/android/gyp/util/build_utils.py',
32     '<(keystore_path)',
33     '<(input_apk_path)',
34   ],
35   'outputs': [
36     '<(output_apk_path)',
37   ],
38   'action': [
39     'python', '<(DEPTH)/build/android/gyp/finalize_apk.py',
40     '--zipalign-path=<(zipalign_path)',
41     '--unsigned-apk-path=<(input_apk_path)',
42     '--final-apk-path=<(output_apk_path)',
43     '--key-path=<(keystore_path)',
44     '--key-name=<(keystore_name)',
45     '--key-passwd=<(keystore_password)',
46     '--load-library-from-zip=<(load_library_from_zip)',
47     '--rezip-apk-jar-path=<(rezip_apk_jar_path)',
48   ],