summaryrefslogtreecommitdiffstats
path: root/mojo/build/package_app.gypi
blob: d74cdc3ea0d940bf77d18ff98033920ba585eb83 (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
# Copyright (c) 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.

{
  'type': 'none',
  'dependencies': [
    '<(app_name)',
  ],
  'conditions': [
    ['OS=="android"', {
      'variables': {
        'mojo_app_dir': '<(PRODUCT_DIR)/apps',
        'source_binary': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)<(app_name)<(SHARED_LIB_SUFFIX)',
        'target_binary': '<(mojo_app_dir)/<(SHARED_LIB_PREFIX)<(app_name)<(SHARED_LIB_SUFFIX)',
      },
      'actions': [{
        'action_name': 'strip',
        'inputs': [ '<(source_binary)', ],
        'outputs': [ '<(target_binary)', ],
        'action': [
          '<(android_strip)',
          '<@(_inputs)',
          '--strip-unneeded',
          '-o',
          '<@(_outputs)',
        ],
      }],
    }],
  ],
}