DevTools: Protocol handler generator for content
[chromium-blink-merge.git] / content / browser / devtools / devtools.gyp
bloba67eca87890aeeceaf196e82a2a9810d26d43ff3
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   'targets': [
7     {
8       'target_name': 'devtools_protocol_handler',
9       'type': 'none',
10       'actions': [
11         {
12           'action_name': 'devtools_protocol_handler',
13           'variables': {
14             'blink_protocol': '../../../third_party/WebKit/Source/devtools/protocol.json',
15             'generator': 'protocol/devtools_protocol_handler_generator.py',
16             'output_cc': '<(SHARED_INTERMEDIATE_DIR)/content/browser/devtools/protocol/devtools_protocol_handler_impl.cc',
17             'output_h': '<(SHARED_INTERMEDIATE_DIR)/content/browser/devtools/protocol/devtools_protocol_handler_impl.h',
18           },
19           'inputs': [
20             '<(blink_protocol)',
21             '<(generator)',
22           ],
23           'outputs': [
24             '<(output_cc)',
25             '<(output_h)',
26           ],
27           'action':[
28             'python',
29             '<(generator)',
30             '<(blink_protocol)',
31             '<(output_cc)',
32             '<(output_h)',
33           ],
34           'message': 'Generating DevTools protocol browser-side handlers from <(blink_protocol)'
35         },
36       ],
37       'direct_dependent_settings': {
38         'include_dirs': [
39           '<(SHARED_INTERMEDIATE_DIR)',
40         ]
41       },
42     },
43   ],