- add sources.
[platform/framework/web/crosswalk.git] / src / build / android / create_standalone_apk_action.gypi
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.
4
5 # This file is meant to be included into an action to provide an action that
6 # combines a directory of shared libraries and an incomplete APK into a
7 # standalone APK.
8 #
9 # To use this, create a gyp action with the following form:
10 #  {
11 #    'action_name': 'some descriptive action name',
12 #    'variables': {
13 #      'inputs': [ 'input_path1', 'input_path2' ],
14 #      'input_apk_path': '<(unsigned_apk_path)',
15 #      'output_apk_path': '<(unsigned_standalone_apk_path)',
16 #      'libraries_top_dir': '<(libraries_top_dir)',
17 #    },
18 #    'includes': [ 'relative/path/to/create_standalone_apk_action.gypi' ],
19 #  },
20
21 {
22   'message': 'Creating standalone APK: <(output_apk_path)',
23   'variables': {
24     'inputs': [],
25   },
26   'inputs': [
27     '<(DEPTH)/build/android/gyp/util/build_utils.py',
28     '<(DEPTH)/build/android/gyp/create_standalone_apk.py',
29     '<(input_apk_path)',
30     '>@(inputs)',
31   ],
32   'outputs': [
33     '<(output_apk_path)',
34   ],
35   'action': [
36     'python', '<(DEPTH)/build/android/gyp/create_standalone_apk.py',
37     '--libraries-top-dir=<(libraries_top_dir)',
38     '--input-apk-path=<(input_apk_path)',
39     '--output-apk-path=<(output_apk_path)',
40   ],
41 }