summaryrefslogtreecommitdiff
path: root/chromium/build/android/create_standalone_apk_action.gypi
blob: d17af7c8e5d9f6e200a9b908c69af787cdd1b9ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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
# combines a directory of shared libraries and an incomplete APK into a
# standalone APK.
#
# To use this, create a gyp action with the following form:
#  {
#    'action_name': 'some descriptive action name',
#    'variables': {
#      'inputs': [ 'input_path1', 'input_path2' ],
#      'input_apk_path': '<(unsigned_apk_path)',
#      'output_apk_path': '<(unsigned_standalone_apk_path)',
#      'libraries_top_dir': '<(libraries_top_dir)',
#    },
#    'includes': [ 'relative/path/to/create_standalone_apk_action.gypi' ],
#  },

{
  'message': 'Creating standalone APK: <(output_apk_path)',
  'variables': {
    'inputs': [],
  },
  'inputs': [
    '<(DEPTH)/build/android/gyp/util/build_utils.py',
    '<(DEPTH)/build/android/gyp/create_standalone_apk.py',
    '<(input_apk_path)',
    '>@(inputs)',
  ],
  'outputs': [
    '<(output_apk_path)',
  ],
  'action': [
    'python', '<(DEPTH)/build/android/gyp/create_standalone_apk.py',
    '--libraries-top-dir=<(libraries_top_dir)',
    '--input-apk-path=<(input_apk_path)',
    '--output-apk-path=<(output_apk_path)',
  ],
}