| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 import("//tools/grit/grit_rule.gni") | 6 import("//tools/grit/grit_rule.gni") |
| 7 import("//tools/grit/repack.gni") | 7 import("//tools/grit/repack.gni") |
| 8 | 8 |
| 9 group("headless") { | 9 group("headless") { |
| 10 deps = [ | 10 deps = [ |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 } | 47 } |
| 48 | 48 |
| 49 grit("headless_lib_resources_grit") { | 49 grit("headless_lib_resources_grit") { |
| 50 source = "lib/resources/headless_lib_resources.grd" | 50 source = "lib/resources/headless_lib_resources.grd" |
| 51 outputs = [ | 51 outputs = [ |
| 52 "grit/headless_lib_resources.h", | 52 "grit/headless_lib_resources.h", |
| 53 "$root_gen_dir/headless/headless_lib_resources.pak", | 53 "$root_gen_dir/headless/headless_lib_resources.pak", |
| 54 ] | 54 ] |
| 55 } | 55 } |
| 56 | 56 |
| 57 action("gen_devtools_client_api") { |
| 58 script = "//headless/lib/browser/client_api_generator.py" |
| 59 |
| 60 inputs = [ |
| 61 "//third_party/WebKit/Source/devtools/protocol.json", |
| 62 ] |
| 63 |
| 64 outputs = [ |
| 65 "$target_gen_dir/public/domains/accessibility.cc", |
| 66 "$target_gen_dir/public/domains/accessibility.h", |
| 67 "$target_gen_dir/public/domains/animation.cc", |
| 68 "$target_gen_dir/public/domains/animation.h", |
| 69 "$target_gen_dir/public/domains/application_cache.cc", |
| 70 "$target_gen_dir/public/domains/application_cache.h", |
| 71 "$target_gen_dir/public/domains/cache_storage.cc", |
| 72 "$target_gen_dir/public/domains/cache_storage.h", |
| 73 "$target_gen_dir/public/domains/console.cc", |
| 74 "$target_gen_dir/public/domains/console.h", |
| 75 "$target_gen_dir/public/domains/css.cc", |
| 76 "$target_gen_dir/public/domains/css.h", |
| 77 "$target_gen_dir/public/domains/database.cc", |
| 78 "$target_gen_dir/public/domains/database.h", |
| 79 "$target_gen_dir/public/domains/debugger.cc", |
| 80 "$target_gen_dir/public/domains/debugger.h", |
| 81 "$target_gen_dir/public/domains/device_orientation.cc", |
| 82 "$target_gen_dir/public/domains/device_orientation.h", |
| 83 "$target_gen_dir/public/domains/dom_debugger.cc", |
| 84 "$target_gen_dir/public/domains/dom_debugger.h", |
| 85 "$target_gen_dir/public/domains/dom.cc", |
| 86 "$target_gen_dir/public/domains/dom.h", |
| 87 "$target_gen_dir/public/domains/dom_storage.cc", |
| 88 "$target_gen_dir/public/domains/dom_storage.h", |
| 89 "$target_gen_dir/public/domains/emulation.cc", |
| 90 "$target_gen_dir/public/domains/emulation.h", |
| 91 "$target_gen_dir/public/domains/heap_profiler.cc", |
| 92 "$target_gen_dir/public/domains/heap_profiler.h", |
| 93 "$target_gen_dir/public/domains/indexeddb.cc", |
| 94 "$target_gen_dir/public/domains/indexeddb.h", |
| 95 "$target_gen_dir/public/domains/input.cc", |
| 96 "$target_gen_dir/public/domains/input.h", |
| 97 "$target_gen_dir/public/domains/inspector.cc", |
| 98 "$target_gen_dir/public/domains/inspector.h", |
| 99 "$target_gen_dir/public/domains/io.cc", |
| 100 "$target_gen_dir/public/domains/io.h", |
| 101 "$target_gen_dir/public/domains/layer_tree.cc", |
| 102 "$target_gen_dir/public/domains/layer_tree.h", |
| 103 "$target_gen_dir/public/domains/memory.cc", |
| 104 "$target_gen_dir/public/domains/memory.h", |
| 105 "$target_gen_dir/public/domains/network.cc", |
| 106 "$target_gen_dir/public/domains/network.h", |
| 107 "$target_gen_dir/public/domains/page.cc", |
| 108 "$target_gen_dir/public/domains/page.h", |
| 109 "$target_gen_dir/public/domains/profiler.cc", |
| 110 "$target_gen_dir/public/domains/profiler.h", |
| 111 "$target_gen_dir/public/domains/rendering.cc", |
| 112 "$target_gen_dir/public/domains/rendering.h", |
| 113 "$target_gen_dir/public/domains/runtime.cc", |
| 114 "$target_gen_dir/public/domains/runtime.h", |
| 115 "$target_gen_dir/public/domains/security.cc", |
| 116 "$target_gen_dir/public/domains/security.h", |
| 117 "$target_gen_dir/public/domains/service_worker.cc", |
| 118 "$target_gen_dir/public/domains/service_worker.h", |
| 119 "$target_gen_dir/public/domains/tracing.cc", |
| 120 "$target_gen_dir/public/domains/tracing.h", |
| 121 "$target_gen_dir/public/domains/type_conversions.h", |
| 122 "$target_gen_dir/public/domains/types.cc", |
| 123 "$target_gen_dir/public/domains/types.h", |
| 124 "$target_gen_dir/public/domains/worker.cc", |
| 125 "$target_gen_dir/public/domains/worker.h", |
| 126 ] |
| 127 |
| 128 sources = [ |
| 129 "lib/browser/domain_cc.template", |
| 130 "lib/browser/domain_h.template", |
| 131 "lib/browser/type_conversions_h.template", |
| 132 "lib/browser/types_cc.template", |
| 133 "lib/browser/types_h.template", |
| 134 ] |
| 135 |
| 136 args = rebase_path(inputs, root_build_dir) + [ |
| 137 "--output_dir", |
| 138 rebase_path(target_gen_dir) + "/public/domains", |
| 139 ] |
| 140 } |
| 141 |
| 57 static_library("headless_lib") { | 142 static_library("headless_lib") { |
| 58 sources = [ | 143 sources = [ |
| 144 "$target_gen_dir/public/domains/accessibility.cc", |
| 145 "$target_gen_dir/public/domains/accessibility.h", |
| 146 "$target_gen_dir/public/domains/animation.cc", |
| 147 "$target_gen_dir/public/domains/animation.h", |
| 148 "$target_gen_dir/public/domains/application_cache.cc", |
| 149 "$target_gen_dir/public/domains/application_cache.h", |
| 150 "$target_gen_dir/public/domains/cache_storage.cc", |
| 151 "$target_gen_dir/public/domains/cache_storage.h", |
| 152 "$target_gen_dir/public/domains/console.cc", |
| 153 "$target_gen_dir/public/domains/console.h", |
| 154 "$target_gen_dir/public/domains/css.cc", |
| 155 "$target_gen_dir/public/domains/css.h", |
| 156 "$target_gen_dir/public/domains/database.cc", |
| 157 "$target_gen_dir/public/domains/database.h", |
| 158 "$target_gen_dir/public/domains/debugger.cc", |
| 159 "$target_gen_dir/public/domains/debugger.h", |
| 160 "$target_gen_dir/public/domains/device_orientation.cc", |
| 161 "$target_gen_dir/public/domains/device_orientation.h", |
| 162 "$target_gen_dir/public/domains/dom.cc", |
| 163 "$target_gen_dir/public/domains/dom.h", |
| 164 "$target_gen_dir/public/domains/dom_debugger.cc", |
| 165 "$target_gen_dir/public/domains/dom_debugger.h", |
| 166 "$target_gen_dir/public/domains/dom_storage.cc", |
| 167 "$target_gen_dir/public/domains/dom_storage.h", |
| 168 "$target_gen_dir/public/domains/emulation.cc", |
| 169 "$target_gen_dir/public/domains/emulation.h", |
| 170 "$target_gen_dir/public/domains/heap_profiler.cc", |
| 171 "$target_gen_dir/public/domains/heap_profiler.h", |
| 172 "$target_gen_dir/public/domains/indexeddb.cc", |
| 173 "$target_gen_dir/public/domains/indexeddb.h", |
| 174 "$target_gen_dir/public/domains/input.cc", |
| 175 "$target_gen_dir/public/domains/input.h", |
| 176 "$target_gen_dir/public/domains/inspector.cc", |
| 177 "$target_gen_dir/public/domains/inspector.h", |
| 178 "$target_gen_dir/public/domains/io.cc", |
| 179 "$target_gen_dir/public/domains/io.h", |
| 180 "$target_gen_dir/public/domains/layer_tree.cc", |
| 181 "$target_gen_dir/public/domains/layer_tree.h", |
| 182 "$target_gen_dir/public/domains/memory.cc", |
| 183 "$target_gen_dir/public/domains/memory.h", |
| 184 "$target_gen_dir/public/domains/network.cc", |
| 185 "$target_gen_dir/public/domains/network.h", |
| 186 "$target_gen_dir/public/domains/page.cc", |
| 187 "$target_gen_dir/public/domains/page.h", |
| 188 "$target_gen_dir/public/domains/profiler.cc", |
| 189 "$target_gen_dir/public/domains/profiler.h", |
| 190 "$target_gen_dir/public/domains/rendering.cc", |
| 191 "$target_gen_dir/public/domains/rendering.h", |
| 192 "$target_gen_dir/public/domains/runtime.cc", |
| 193 "$target_gen_dir/public/domains/runtime.h", |
| 194 "$target_gen_dir/public/domains/security.cc", |
| 195 "$target_gen_dir/public/domains/security.h", |
| 196 "$target_gen_dir/public/domains/service_worker.cc", |
| 197 "$target_gen_dir/public/domains/service_worker.h", |
| 198 "$target_gen_dir/public/domains/tracing.cc", |
| 199 "$target_gen_dir/public/domains/tracing.h", |
| 200 "$target_gen_dir/public/domains/type_conversions.h", |
| 201 "$target_gen_dir/public/domains/types.cc", |
| 202 "$target_gen_dir/public/domains/types.h", |
| 203 "$target_gen_dir/public/domains/worker.cc", |
| 204 "$target_gen_dir/public/domains/worker.h", |
| 59 "lib/browser/headless_browser_context.cc", | 205 "lib/browser/headless_browser_context.cc", |
| 60 "lib/browser/headless_browser_context.h", | 206 "lib/browser/headless_browser_context.h", |
| 61 "lib/browser/headless_browser_impl.cc", | 207 "lib/browser/headless_browser_impl.cc", |
| 62 "lib/browser/headless_browser_impl.h", | 208 "lib/browser/headless_browser_impl.h", |
| 63 "lib/browser/headless_browser_main_parts.cc", | 209 "lib/browser/headless_browser_main_parts.cc", |
| 64 "lib/browser/headless_browser_main_parts.h", | 210 "lib/browser/headless_browser_main_parts.h", |
| 65 "lib/browser/headless_content_browser_client.cc", | 211 "lib/browser/headless_content_browser_client.cc", |
| 66 "lib/browser/headless_content_browser_client.h", | 212 "lib/browser/headless_content_browser_client.h", |
| 67 "lib/browser/headless_devtools.cc", | 213 "lib/browser/headless_devtools.cc", |
| 68 "lib/browser/headless_devtools.h", | 214 "lib/browser/headless_devtools.h", |
| 215 "lib/browser/headless_devtools_client_impl.cc", |
| 216 "lib/browser/headless_devtools_client_impl.h", |
| 69 "lib/browser/headless_screen.cc", | 217 "lib/browser/headless_screen.cc", |
| 70 "lib/browser/headless_screen.h", | 218 "lib/browser/headless_screen.h", |
| 71 "lib/browser/headless_url_request_context_getter.cc", | 219 "lib/browser/headless_url_request_context_getter.cc", |
| 72 "lib/browser/headless_url_request_context_getter.h", | 220 "lib/browser/headless_url_request_context_getter.h", |
| 73 "lib/browser/headless_web_contents_impl.cc", | 221 "lib/browser/headless_web_contents_impl.cc", |
| 74 "lib/browser/headless_web_contents_impl.h", | 222 "lib/browser/headless_web_contents_impl.h", |
| 75 "lib/headless_content_client.cc", | 223 "lib/headless_content_client.cc", |
| 76 "lib/headless_content_client.h", | 224 "lib/headless_content_client.h", |
| 77 "lib/headless_content_main_delegate.cc", | 225 "lib/headless_content_main_delegate.cc", |
| 78 "lib/headless_content_main_delegate.h", | 226 "lib/headless_content_main_delegate.h", |
| 79 "lib/renderer/headless_content_renderer_client.cc", | 227 "lib/renderer/headless_content_renderer_client.cc", |
| 80 "lib/renderer/headless_content_renderer_client.h", | 228 "lib/renderer/headless_content_renderer_client.h", |
| 81 "lib/utility/headless_content_utility_client.cc", | 229 "lib/utility/headless_content_utility_client.cc", |
| 82 "lib/utility/headless_content_utility_client.h", | 230 "lib/utility/headless_content_utility_client.h", |
| 83 "public/headless_browser.cc", | 231 "public/headless_browser.cc", |
| 84 "public/headless_browser.h", | 232 "public/headless_browser.h", |
| 233 "public/headless_devtools_client.h", |
| 234 "public/headless_devtools_host.h", |
| 235 "public/headless_devtools_target.h", |
| 85 "public/headless_export.h", | 236 "public/headless_export.h", |
| 86 "public/headless_web_contents.h", | 237 "public/headless_web_contents.h", |
| 238 "public/internal/message_dispatcher.h", |
| 239 "public/internal/value_conversions.h", |
| 87 "public/util/error_reporter.cc", | 240 "public/util/error_reporter.cc", |
| 88 "public/util/error_reporter.h", | 241 "public/util/error_reporter.h", |
| 89 "public/util/maybe.h", | 242 "public/util/maybe.h", |
| 90 ] | 243 ] |
| 91 | 244 |
| 92 deps = [ | 245 deps = [ |
| 246 ":gen_devtools_client_api", |
| 93 ":pak", | 247 ":pak", |
| 94 "//base", | 248 "//base", |
| 95 "//components/devtools_http_handler", | 249 "//components/devtools_http_handler", |
| 96 "//content/public/app:both", | 250 "//content/public/app:both", |
| 97 "//content/public/browser", | 251 "//content/public/browser", |
| 98 "//content/public/child", | 252 "//content/public/child", |
| 99 "//content/public/common", | 253 "//content/public/common", |
| 100 "//content/public/renderer", | 254 "//content/public/renderer", |
| 101 "//content/public/utility", | 255 "//content/public/utility", |
| 102 "//net", | 256 "//net", |
| 103 "//ui/aura", | 257 "//ui/aura", |
| 104 "//ui/base", | 258 "//ui/base", |
| 105 "//ui/compositor", | 259 "//ui/compositor", |
| 106 "//ui/ozone", | 260 "//ui/ozone", |
| 107 "//url", | 261 "//url", |
| 108 ] | 262 ] |
| 109 } | 263 } |
| 110 | 264 |
| 111 group("headless_tests") { | 265 group("headless_tests") { |
| 112 testonly = true | 266 testonly = true |
| 113 | 267 |
| 114 deps = [ | 268 deps = [ |
| 115 ":headless_browsertests", | 269 ":headless_browsertests", |
| 116 ":headless_unittests", | 270 ":headless_unittests", |
| 117 ] | 271 ] |
| 118 } | 272 } |
| 119 | 273 |
| 120 test("headless_unittests") { | 274 test("headless_unittests") { |
| 121 sources = [ | 275 sources = [ |
| 276 "public/domains/types_unittest.cc", |
| 122 "public/util/error_reporter_unittest.cc", | 277 "public/util/error_reporter_unittest.cc", |
| 123 "public/util/maybe_unittest.cc", | 278 "public/util/maybe_unittest.cc", |
| 124 ] | 279 ] |
| 125 | 280 |
| 126 deps = [ | 281 deps = [ |
| 127 ":headless_lib", | 282 ":headless_lib", |
| 128 "//base/test:run_all_unittests", | 283 "//base/test:run_all_unittests", |
| 129 "//base/test:test_support", | 284 "//base/test:test_support", |
| 130 "//testing/gtest", | 285 "//testing/gtest", |
| 131 ] | 286 ] |
| 132 } | 287 } |
| 133 | 288 |
| 134 test("headless_browsertests") { | 289 test("headless_browsertests") { |
| 135 sources = [ | 290 sources = [ |
| 136 "lib/headless_browser_browsertest.cc", | 291 "lib/headless_browser_browsertest.cc", |
| 292 "lib/headless_devtools_client_browsertest.cc", |
| 137 "lib/headless_web_contents_browsertest.cc", | 293 "lib/headless_web_contents_browsertest.cc", |
| 138 "test/headless_browser_test.cc", | 294 "test/headless_browser_test.cc", |
| 139 "test/headless_browser_test.h", | 295 "test/headless_browser_test.h", |
| 140 "test/headless_test_launcher.cc", | 296 "test/headless_test_launcher.cc", |
| 141 ] | 297 ] |
| 142 | 298 |
| 143 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 299 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| 144 | 300 |
| 145 deps = [ | 301 deps = [ |
| 146 "//base", | 302 "//base", |
| (...skipping 11 matching lines...) Expand all Loading... |
| 158 sources = [ | 314 sources = [ |
| 159 "app/headless_shell.cc", | 315 "app/headless_shell.cc", |
| 160 "app/headless_shell_switches.cc", | 316 "app/headless_shell_switches.cc", |
| 161 "app/headless_shell_switches.h", | 317 "app/headless_shell_switches.h", |
| 162 ] | 318 ] |
| 163 | 319 |
| 164 deps = [ | 320 deps = [ |
| 165 "//headless:headless_lib", | 321 "//headless:headless_lib", |
| 166 ] | 322 ] |
| 167 } | 323 } |
| OLD | NEW |