Move action_runner.py out of actions folder prior to moving actions to internal.
[chromium-blink-merge.git] / remoting / remoting_key_tester.gypi
blob68db9b0bbe0c589d698688c05eb8cce10481bf48
1 # Copyright 2015 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     '../build/common_untrusted.gypi',
8   ],
10   'variables': {
11     'remoting_key_tester_js_files': [
12         'tools/javascript_key_tester/background.js',
13         'tools/javascript_key_tester/chord_tracker.js',
14         'tools/javascript_key_tester/event_listeners.js',
15         'tools/javascript_key_tester/main.js',
16      ],
17   },
19   'conditions': [
20     ['disable_nacl==0 and disable_nacl_untrusted==0', {
21       'targets': [
22         {
23           'target_name': 'remoting_key_tester',
24           'type': 'none',
25           'dependencies': [
26             'remoting_key_tester_pexe',
27             'remoting_key_tester_jscompile',
28           ],
29           'copies': [
30             {
31               'destination': '<(PRODUCT_DIR)/remoting/key_tester',
32               'files': [
33                 '<@(remoting_key_tester_js_files)',
34                 'tools/javascript_key_tester/main.css',
35                 'tools/javascript_key_tester/main.html',
36                 'tools/javascript_key_tester/manifest.json',
37                 'tools/javascript_key_tester/icon_128.png',
38                 'tools/javascript_key_tester/pnacl/remoting_key_tester.nmf',
39                 '<(PRODUCT_DIR)/remoting_key_tester_newlib.pexe',
40               ],
41             }
42           ],
43         },  # end of target 'remoting_key_tester'
45         {
46           'target_name': 'remoting_key_tester_jscompile',
47           'type': 'none',
48           'conditions': [
49             ['run_jscompile != 0', {
50               'variables': {
51                 'success_stamp': '<(PRODUCT_DIR)/<(_target_name).stamp',
52               },
53               'actions': [
54                 {
55                   'action_name': 'jscompile remoting_key_tester',
56                   'inputs': [
57                     '<@(remoting_key_tester_js_files)',
58                     'webapp/js_proto/chrome_proto.js',
59                     'webapp/js_proto/chrome_event_proto.js',
60                   ],
61                   'outputs': [
62                     '<(success_stamp)',
63                   ],
64                   'action': [
65                     'python', '../third_party/closure_compiler/checker.py',
66                     '--strict',
67                     '--no-single-file',
68                     '--success-stamp', '<(success_stamp)',
69                     '<@(remoting_key_tester_js_files)',
70                     'webapp/js_proto/chrome_proto.js',
71                     'webapp/js_proto/chrome_event_proto.js',
72                   ],
73                 },
74               ],  # actions
75             }],
76           ],
77         },  # end of target 'remoting_key_tester_jscompile'
79         {
80           'target_name': 'remoting_key_tester_pexe',
81           'type': 'none',
82           'sources': [
83             'tools/javascript_key_tester/pnacl/remoting_key_tester.cc',
84           ],
85           'variables': {
86             'nexe_target': 'remoting_key_tester',
87             'build_glibc': 0,
88             'build_newlib': 0,
89             'build_pnacl_newlib': 1,
90             'extra_deps_pnacl_newlib': [
91               '>(tc_lib_dir_pnacl_newlib)/libppapi.a',
92               '>(tc_lib_dir_pnacl_newlib)/libppapi_cpp.a',
93             ],
94           },
95           'link_flags': [
96             '-lppapi_stub',
97             '-lppapi_cpp',
98           ],
99           'dependencies': [
100             # TODO(mseaborn): Remove need for this (https://crbug.com/456902).
101             '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
102           ],
103         },  # end of target 'remoting_key_tester_pexe'
104       ],
105     }]
106   ],