blob: 33c99b1e0a855bd8772425310651e748881842d2 [file] [log] [blame]
# Copyright 2014 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.
{
'targets': [
{
'target_name': 'devtools_protocol_handler',
'type': 'none',
'dependencies': [
'../../../third_party/WebKit/Source/core/inspector/inspector.gyp:protocol_version'
],
'actions': [
{
'action_name': 'devtools_protocol_handler',
'variables': {
'blink_protocol': '<(SHARED_INTERMEDIATE_DIR)/blink/core/inspector/protocol.json',
'browser_protocol': 'browser_protocol.json',
'generator': 'protocol/devtools_protocol_handler_generator.py',
'output_cc': '<(SHARED_INTERMEDIATE_DIR)/content/browser/devtools/protocol/devtools_protocol_dispatcher.cc',
'output_h': '<(SHARED_INTERMEDIATE_DIR)/content/browser/devtools/protocol/devtools_protocol_dispatcher.h',
},
'inputs': [
'<(blink_protocol)',
'<(browser_protocol)',
'<(generator)',
],
'outputs': [
'<(output_cc)',
'<(output_h)',
],
'action':[
'python',
'<(generator)',
'<(blink_protocol)',
'<(browser_protocol)',
'<(output_cc)',
'<(output_h)',
],
'message': 'Generating DevTools protocol browser-side handlers from <(blink_protocol) and <(browser_protocol)'
},
],
'direct_dependent_settings': {
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)',
]
},
},
],
}