OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2016 the V8 project 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 protocol_path = "//third_party/WebKit/Source/platform/inspector_protocol" | |
6 protocol_sources = [ | |
7 "$target_gen_dir/Console.cpp", | |
8 "$target_gen_dir/Console.h", | |
9 "$target_gen_dir/Debugger.cpp", | |
10 "$target_gen_dir/Debugger.h", | |
11 "$target_gen_dir/HeapProfiler.cpp", | |
12 "$target_gen_dir/HeapProfiler.h", | |
13 "$target_gen_dir/Profiler.cpp", | |
14 "$target_gen_dir/Profiler.h", | |
15 "$target_gen_dir/Runtime.cpp", | |
16 "$target_gen_dir/Runtime.h", | |
17 ] | |
18 | |
19 action("inspector_protocol_version") { | |
20 visibility = [ ":*" ] # Only targets in this file can depend on this. | |
21 script = "$protocol_path/generate-inspector-protocol-version" | |
22 inputs = [ | |
23 "js_protocol.json", | |
24 ] | |
25 output_file = "$target_gen_dir/protocol.json" | |
Michael Achenbach
2016/07/27 13:09:40
Who reads the output_file? The action below depend
Yang
2016/07/27 13:15:14
I blindly took that over from blink. I dug a bit d
Michael Achenbach
2016/07/27 14:16:25
Awesome if it works like this. Hope there is no hi
| |
26 outputs = [ | |
27 output_file, | |
28 ] | |
29 args = [ | |
30 "--o", | |
31 rebase_path(output_file, root_build_dir), | |
32 rebase_path("js_protocol.json", root_build_dir), | |
33 ] | |
34 } | |
35 | |
36 action("inspector_protocol_sources") { | |
37 visibility = [ ":*" ] # Only targets in this file can depend on this. | |
38 deps = [ | |
39 ":inspector_protocol_version", | |
40 ] | |
41 script = "$protocol_path/CodeGenerator.py" | |
42 sources = [ | |
43 "$protocol_path/CodeGenerator.py", | |
44 "$protocol_path/Exported_h.template", | |
45 "$protocol_path/Imported_h.template", | |
46 "$protocol_path/TypeBuilder_cpp.template", | |
47 "$protocol_path/TypeBuilder_h.template", | |
48 ] | |
49 inputs = [ | |
50 "js_protocol.json", | |
51 ] | |
52 outputs = protocol_sources | |
53 args = [ | |
54 "--protocol", | |
55 rebase_path("js_protocol.json", root_build_dir), | |
56 "--string_type", | |
57 "String", | |
58 "--export_macro", | |
59 "PLATFORM_EXPORT", | |
60 "--output_dir", | |
61 rebase_path(target_gen_dir, root_build_dir), | |
62 "--output_package", | |
63 "inspector", | |
64 ] | |
65 } | |
66 | |
67 config("inspector_protocol_config") { | |
68 include_dirs = [ | |
69 "$protocol_path/../..", | |
70 ] | |
71 defines = [ | |
72 "V8_INSPECTOR_USE_STL" | |
73 ] | |
74 } | |
75 | |
76 source_set("inspector_protocol") { | |
77 deps = [ | |
78 ":inspector_protocol_sources", | |
79 ] | |
80 configs += [ | |
81 ":inspector_protocol_config" | |
82 ] | |
83 include_dirs = [ | |
84 "$target_gen_dir/..", | |
85 ] | |
86 sources = protocol_sources + [ | |
87 "$protocol_path/Allocator.h", | |
88 "$protocol_path/Array.h", | |
89 "$protocol_path/BackendCallback.h", | |
90 "$protocol_path/CodeGenerator.py", | |
91 "$protocol_path/Collections.h", | |
92 "$protocol_path/DispatcherBase.cpp", | |
93 "$protocol_path/DispatcherBase.h", | |
94 "$protocol_path/ErrorSupport.cpp", | |
95 "$protocol_path/ErrorSupport.h", | |
96 "$protocol_path/FrontendChannel.h", | |
97 "$protocol_path/Maybe.h", | |
98 "$protocol_path/Object.cpp", | |
99 "$protocol_path/Object.h", | |
100 "$protocol_path/Parser.cpp", | |
101 "$protocol_path/Parser.h", | |
102 "$protocol_path/Platform.h", | |
103 "$protocol_path/PlatformSTL.h", | |
104 "$protocol_path/String16.h", | |
105 "$protocol_path/String16STL.cpp", | |
106 "$protocol_path/String16STL.h", | |
107 "$protocol_path/ValueConversions.h", | |
108 "$protocol_path/Values.cpp", | |
109 "$protocol_path/Values.h", | |
110 ] | |
111 } | |
OLD | NEW |