OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 import("//sky/engine/bindings/bindings.gni") |
| 6 import("//sky/engine/core/core.gni") |
| 7 |
| 8 protocol_file = "protocol.json" |
| 9 |
| 10 action("protocol_sources") { |
| 11 script = "CodeGeneratorInspector.py" |
| 12 |
| 13 inputs = [ |
| 14 # The helper script imported by CodeGeneratorInspector.py. |
| 15 "CodeGeneratorInspectorStrings.py", |
| 16 protocol_file, |
| 17 ] |
| 18 outputs = [ |
| 19 "$sky_core_output_dir/InspectorBackendDispatcher.cpp", |
| 20 "$sky_core_output_dir/InspectorBackendDispatcher.h", |
| 21 "$sky_core_output_dir/InspectorFrontend.cpp", |
| 22 "$sky_core_output_dir/InspectorFrontend.h", |
| 23 "$sky_core_output_dir/InspectorTypeBuilder.cpp", |
| 24 "$sky_core_output_dir/InspectorTypeBuilder.h", |
| 25 ] |
| 26 |
| 27 args = [ |
| 28 rebase_path(protocol_file, root_build_dir), |
| 29 "--output_dir", rebase_path(sky_core_output_dir, root_build_dir), |
| 30 ] |
| 31 |
| 32 deps = [ |
| 33 ":protocol_version", |
| 34 ] |
| 35 } |
| 36 |
| 37 action("protocol_version") { |
| 38 script = "generate-inspector-protocol-version" |
| 39 |
| 40 inputs = [ protocol_file ] |
| 41 output_file = "$sky_core_output_dir/InspectorProtocolVersion.h" |
| 42 outputs = [ output_file ] |
| 43 |
| 44 args = [ |
| 45 "-o", rebase_path(output_file, root_build_dir), |
| 46 rebase_path(protocol_file, root_build_dir), |
| 47 ] |
| 48 } |
OLD | NEW |