summaryrefslogtreecommitdiffstats
path: root/mojo/build
diff options
context:
space:
mode:
authorabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-10 17:18:28 +0000
committerabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-10 17:18:28 +0000
commit36bf377bae83f0e856068f3a31f110a53c28b6e7 (patch)
treecfc08e37d17585ce60f979a19fe599487997627f /mojo/build
parentc3d2950f2f7618ace2e16cbc9bc5fb8683f80463 (diff)
downloadchromium_src-36bf377bae83f0e856068f3a31f110a53c28b6e7.zip
chromium_src-36bf377bae83f0e856068f3a31f110a53c28b6e7.tar.gz
chromium_src-36bf377bae83f0e856068f3a31f110a53c28b6e7.tar.bz2
Make Mojo work on Android again
This CL fixes mojo_shell to work on Android again. This time we're using the static build, which means we don't need to keep track of all the many components. R=darin@chromium.org Review URL: https://codereview.chromium.org/107473002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239797 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/build')
-rw-r--r--mojo/build/package_app.gypi31
1 files changed, 31 insertions, 0 deletions
diff --git a/mojo/build/package_app.gypi b/mojo/build/package_app.gypi
new file mode 100644
index 0000000..d74cdc3
--- /dev/null
+++ b/mojo/build/package_app.gypi
@@ -0,0 +1,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)',
+ ],
+ }],
+ }],
+ ],
+}