| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 _inspector_protocol = "//third_party/inspector_protocol" | 5 _inspector_protocol = "//third_party/inspector_protocol" |
| 6 import("$_inspector_protocol/inspector_protocol.gni") | 6 import("$_inspector_protocol/inspector_protocol.gni") |
| 7 | 7 |
| 8 _protocol_generated = [ | 8 _protocol_generated = [ |
| 9 "CSS.cpp", | 9 "CSS.cpp", |
| 10 "CSS.h", | 10 "CSS.h", |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 out_dir = target_gen_dir | 45 out_dir = target_gen_dir |
| 46 config_file = "inspector_protocol_config.json" | 46 config_file = "inspector_protocol_config.json" |
| 47 inputs = [ | 47 inputs = [ |
| 48 "protocol.json", | 48 "protocol.json", |
| 49 "inspector_protocol_config.json", | 49 "inspector_protocol_config.json", |
| 50 ] | 50 ] |
| 51 | 51 |
| 52 outputs = _protocol_generated | 52 outputs = _protocol_generated |
| 53 } | 53 } |
| 54 | 54 |
| 55 source_set("ui_devtools") { | 55 component("ui_devtools") { |
| 56 sources = rebase_path(_protocol_generated, ".", target_gen_dir) | 56 sources = rebase_path(_protocol_generated, ".", target_gen_dir) |
| 57 sources += [ | 57 sources += [ |
| 58 "devtools_base_agent.h", | 58 "devtools_base_agent.h", |
| 59 "devtools_client.cc", | 59 "devtools_client.cc", |
| 60 "devtools_client.h", | 60 "devtools_client.h", |
| 61 "devtools_export.h", | 61 "devtools_export.h", |
| 62 "devtools_server.cc", | 62 "devtools_server.cc", |
| 63 "devtools_server.h", | 63 "devtools_server.h", |
| 64 "string_util.cc", | 64 "string_util.cc", |
| 65 "string_util.h", | 65 "string_util.h", |
| 66 "switches.cc", | 66 "switches.cc", |
| 67 "switches.h", | 67 "switches.h", |
| 68 ] | 68 ] |
| 69 | 69 |
| 70 defines = [ "UI_DEVTOOLS_IMPLEMENTATION" ] | 70 defines = [ "UI_DEVTOOLS_IMPLEMENTATION" ] |
| 71 | 71 |
| 72 cflags = [] | 72 cflags = [] |
| 73 if (is_win) { | 73 if (is_win) { |
| 74 cflags += [ "/wd4800" ] # Value forced to bool. | 74 cflags += [ "/wd4800" ] # Value forced to bool. |
| 75 } | 75 } |
| 76 | 76 |
| 77 deps = [ | 77 deps = [ |
| 78 ":protocol_generated_sources", | 78 ":protocol_generated_sources", |
| 79 "//base", | 79 "//base", |
| 80 "//net", | 80 "//net", |
| 81 "//net:http_server", | 81 "//net:http_server", |
| 82 ] | 82 ] |
| 83 } | 83 } |
| OLD | NEW |