summaryrefslogtreecommitdiffstats
path: root/mojo
diff options
context:
space:
mode:
authorrockot <rockot@chromium.org>2016-03-15 01:00:14 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-15 08:01:40 +0000
commit28b466c329fc4dd7f6a41ce94f993ce17f068e8d (patch)
tree997241acae2dd52f52f99a86a71d22c168ab25fb /mojo
parentf0099ca2bacbc5e23747344f5c8de7651933ab76 (diff)
downloadchromium_src-28b466c329fc4dd7f6a41ce94f993ce17f068e8d.zip
chromium_src-28b466c329fc4dd7f6a41ce94f993ce17f068e8d.tar.gz
chromium_src-28b466c329fc4dd7f6a41ce94f993ce17f068e8d.tar.bz2
Add GYP support for Chrome's mojo manifest
BUG=None Review URL: https://codereview.chromium.org/1796033002 Cr-Commit-Position: refs/heads/master@{#381193}
Diffstat (limited to 'mojo')
-rw-r--r--mojo/public/mojo_application_manifest.gypi41
1 files changed, 41 insertions, 0 deletions
diff --git a/mojo/public/mojo_application_manifest.gypi b/mojo/public/mojo_application_manifest.gypi
new file mode 100644
index 0000000..ddb202d
--- /dev/null
+++ b/mojo/public/mojo_application_manifest.gypi
@@ -0,0 +1,41 @@
+# Copyright 2016 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.
+
+{
+ 'variables': {
+ 'variables': {
+ 'application_name%': '<(application_name)',
+ 'application_type%': '<(application_type)',
+ },
+ 'application_type%': '<(application_type)',
+ 'application_name%': '<(application_name)',
+ 'manifest_collator_script%':
+ '<(DEPTH)/mojo/public/tools/manifest/manifest_collator.py',
+ 'source_manifest%': '<(source_manifest)',
+ 'conditions': [
+ ['application_type=="mojo"', {
+ 'output_manifest%': '<(PRODUCT_DIR)/<(application_name)/manifest.json',
+ }, {
+ 'output_manifest%': '<(PRODUCT_DIR)/<(application_name)_manifest.json',
+ }],
+ ],
+ },
+ 'actions': [{
+ 'action_name': '<(_target_name)_collation',
+ 'inputs': [
+ '<(manifest_collator_script)',
+ '<(source_manifest)',
+ ],
+ 'outputs': [
+ '<(output_manifest)',
+ ],
+ 'action': [
+ 'python',
+ '<(manifest_collator_script)',
+ '--application-name', '<(application_name)',
+ '--parent=<(source_manifest)',
+ '--output=<(output_manifest)',
+ ],
+ }],
+}