Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Side by Side Diff: components/ui_devtools/BUILD.gn

Issue 2374513002: Add ui devtools server (Closed)
Patch Set: Add inspector_protocol to DEPS Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/ui_devtools/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2016 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 _inspector_protocol = "//third_party/WebKit/Source/platform/inspector_protocol"
6 import("$_inspector_protocol/inspector_protocol.gni")
7
8 _protocol_generated = [
9 "DOM.cpp",
10 "DOM.h",
11 "Forward.h",
12 "Protocol.cpp",
13 "Protocol.h",
14 ]
15
16 action("protocol_compatibility") {
17 visibility = [ ":*" ] # Only targets in this file can depend on this.
18 script = "$_inspector_protocol/CheckProtocolCompatibility.py"
19 inputs = [
20 "protocol.json",
21 ]
22
23 _stamp = "$target_gen_dir/protocol.stamp"
24 outputs = [
25 _stamp,
26 ]
27
28 args = [
29 "--stamp",
30 rebase_path(_stamp, root_build_dir),
31 rebase_path("protocol.json", root_build_dir),
32 ]
33 }
34
35 inspector_protocol_generate("protocol_generated_sources") {
36 visibility = [ ":*" ] # Only targets in this file can depend on this.
37
38 deps = [
39 ":protocol_compatibility",
40 ]
41
42 out_dir = target_gen_dir
43 config_file = "inspector_protocol_config.json"
44 inputs = [
45 "protocol.json",
46 "inspector_protocol_config.json",
47 ]
48
49 outputs = _protocol_generated
50 }
51
52 source_set("ui_devtools") {
53 sources = rebase_path(_protocol_generated, ".", target_gen_dir)
54 sources += [
55 "devtools_client.cc",
56 "devtools_client.h",
57 "devtools_server.cc",
58 "devtools_server.h",
59 "protocol_platform.h",
60 "string_util.cc",
61 "string_util.h",
62 "switches.cc",
63 "switches.h",
64 ]
65
66 cflags = []
67 if (is_win) {
68 cflags += [ "/wd4800" ] # Value forced to bool.
69 }
70
71 deps = [
72 ":protocol_generated_sources",
73 "//base",
74 "//net",
75 "//net:http_server",
76 ]
77 }
OLDNEW
« no previous file with comments | « no previous file | components/ui_devtools/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698