Roll ANGLE e754fb8..6ffeb74
[chromium-blink-merge.git] / remoting / app_remoting_webapp.gyp
blobfad6f428f1a8e6b97b49d804fe0a417f192c85b7
1 # Copyright 2014 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.
6   'includes': [
7     '../remoting/remoting_locales.gypi',
8     '../remoting/app_remoting_webapp_build.gypi',
9   ],
11   'target_defaults': {
12     'variables': {
13       'ar_internal': 0,
14       'compiler_flags': [
15         '--strict',
16         '--no-single-file',
17         '--externs',
18         '../third_party/closure_compiler/externs/chrome_extensions.js',
19       ],
20     },
22     'conditions': [
23       ['run_jscompile != 0', {
24         'actions': [
25           {
26             'action_name': 'Verify >(ar_app_name) main.html',
27             'variables': {
28               'success_stamp': '<(PRODUCT_DIR)/>(_target_name)_main_jscompile.stamp',
29             },
30             'inputs': [
31               '<@(ar_main_js_files)',
32               '<@(remoting_webapp_js_proto_files)',
33               # Include zip as input so that this action is run after the build.
34               '<(zip_path)',
35             ],
36             'outputs': [
37               '<(success_stamp)',
38             ],
39             'action': [
40               'python', '../third_party/closure_compiler/compile.py',
41               '<@(compiler_flags)',
42               '--success-stamp', '<(success_stamp)',
43               '<@(ar_main_js_files)',
44               '<@(remoting_webapp_js_proto_files)',
45             ],
46           },
47           {
48             'action_name': 'Verify >(ar_app_name) background.js',
49             'variables': {
50               'success_stamp': '<(PRODUCT_DIR)/>(_target_name)_background_jscompile.stamp',
51             },
52             'inputs': [
53               '<@(ar_background_js_files)',
54               '<@(remoting_webapp_js_proto_files)',
55               # Include zip as input so that this action is run after the build.
56               '<(zip_path)',
57             ],
58             'outputs': [
59               '<(success_stamp)',
60             ],
61             'action': [
62               'python', '../third_party/closure_compiler/compile.py',
63               '<@(compiler_flags)',
64               '--success-stamp', '<(success_stamp)',
65               '<@(ar_background_js_files)',
66               '<@(remoting_webapp_js_proto_files)',
67             ],
68           },
69           {
70             'action_name': 'Verify >(ar_app_name) feedback_consent.html',
71             'variables': {
72               'success_stamp': '<(PRODUCT_DIR)/>(_target_name)_feedback_consent_jscompile.stamp',
73             },
74             'inputs': [
75               '<@(ar_feedback_consent_html_all_js_files)',
76               '<@(remoting_webapp_js_proto_files)',
77               # Include zip as input so that this action is run after the build.
78               '<(zip_path)',
79             ],
80             'outputs': [
81               '<(success_stamp)',
82             ],
83             'action': [
84               'python', '../third_party/closure_compiler/compile.py',
85               '<@(compiler_flags)',
86               '--success-stamp', '<(success_stamp)',
87               '<@(ar_feedback_consent_html_all_js_files)',
88               '<@(remoting_webapp_js_proto_files)',
89             ],
90           },
91         ],  # actions
92       }],
93     ],  # conditions
94   },
96   'targets': [
97     {
98       # GN version: //remoting/webapp:ar_sample_app
99       # Sample AppRemoting app.
100       'target_name': 'ar_sample_app',
101       'app_key': 'Sample_App',
102       'app_id': 'ljacajndfccfgnfohlgkdphmbnpkjflk',
103       'app_client_id': 'sample_client_id',
104       'app_name': 'App Remoting Client',
105       'app_description': 'App Remoting client',
106       'app_capabilities': ['GOOGLE_DRIVE'],
107       'manifest_key': 'remotingdevbuild',
108     },
109   ],  # end of targets