2013-06-25 03:44:40 +04:00
|
|
|
# Copyright 2013 The Chromium Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
# This file is meant to be included into an action to provide an action that
|
|
|
|
# signs and zipaligns an APK.
|
|
|
|
#
|
|
|
|
# To use this, create a gyp action with the following form:
|
|
|
|
# {
|
|
|
|
# 'action_name': 'some descriptive action name',
|
|
|
|
# 'variables': {
|
|
|
|
# 'input_apk_path': 'relative/path/to/input.apk',
|
|
|
|
# 'output_apk_path': 'relative/path/to/output.apk',
|
|
|
|
# },
|
2015-02-05 01:14:55 +03:00
|
|
|
# 'includes': [ '../../build/android/finalize_apk_action.gypi' ],
|
2013-06-25 03:44:40 +04:00
|
|
|
# },
|
|
|
|
#
|
|
|
|
|
|
|
|
{
|
2013-10-31 22:08:28 +04:00
|
|
|
'message': 'Signing/aligning <(_target_name) APK: <(input_apk_path)',
|
2013-06-25 03:44:40 +04:00
|
|
|
'variables': {
|
|
|
|
'keystore_path%': '<(DEPTH)/build/android/ant/chromium-debug.keystore',
|
2014-03-26 04:43:37 +04:00
|
|
|
'keystore_name%': 'chromiumdebugkey',
|
|
|
|
'keystore_password%': 'chromium',
|
2015-03-31 14:50:35 +03:00
|
|
|
'zipalign_path%': '<(android_sdk_tools)/zipalign',
|
|
|
|
'rezip_apk_jar_path%': '<(PRODUCT_DIR)/lib.java/rezip_apk.jar',
|
2015-05-19 19:58:32 +03:00
|
|
|
'load_library_from_zip%': 0,
|
2013-06-25 03:44:40 +04:00
|
|
|
},
|
|
|
|
'inputs': [
|
|
|
|
'<(DEPTH)/build/android/gyp/finalize_apk.py',
|
2015-02-05 01:14:55 +03:00
|
|
|
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
2013-06-25 03:44:40 +04:00
|
|
|
'<(keystore_path)',
|
|
|
|
'<(input_apk_path)',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(output_apk_path)',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'python', '<(DEPTH)/build/android/gyp/finalize_apk.py',
|
2014-04-19 00:22:43 +04:00
|
|
|
'--zipalign-path=<(zipalign_path)',
|
2013-06-25 03:44:40 +04:00
|
|
|
'--unsigned-apk-path=<(input_apk_path)',
|
|
|
|
'--final-apk-path=<(output_apk_path)',
|
2014-03-26 04:43:37 +04:00
|
|
|
'--key-path=<(keystore_path)',
|
|
|
|
'--key-name=<(keystore_name)',
|
|
|
|
'--key-passwd=<(keystore_password)',
|
2015-05-21 07:38:34 +03:00
|
|
|
'--load-library-from-zip=<(load_library_from_zip)',
|
2014-09-30 21:15:32 +04:00
|
|
|
'--rezip-apk-jar-path=<(rezip_apk_jar_path)',
|
2013-06-25 03:44:40 +04:00
|
|
|
],
|
|
|
|
}
|