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("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/util/process_version.gni") | 6 import("//build/util/process_version.gni") |
7 import("//headless/headless.gni") | 7 import("//headless/headless.gni") |
8 import("//mojo/public/tools/bindings/mojom.gni") | 8 import("//mojo/public/tools/bindings/mojom.gni") |
9 import("//printing/features/features.gni") | 9 import("//printing/features/features.gni") |
10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 ] | 190 ] |
191 | 191 |
192 args = [ | 192 args = [ |
193 "--protocol", | 193 "--protocol", |
194 rebase_path(inputs[0], root_build_dir), | 194 rebase_path(inputs[0], root_build_dir), |
195 "--output_dir", | 195 "--output_dir", |
196 rebase_path(target_gen_dir) + "/public", | 196 rebase_path(target_gen_dir) + "/public", |
197 ] | 197 ] |
198 } | 198 } |
199 | 199 |
| 200 static_library("headless_fontconfig_utils") { |
| 201 sources = [ |
| 202 "public/util/fontconfig.cc", |
| 203 "public/util/fontconfig.h", |
| 204 ] |
| 205 |
| 206 deps = [ |
| 207 "//third_party/fontconfig", |
| 208 "//third_party/freetype", |
| 209 ] |
| 210 } |
| 211 |
200 static_library("headless_lib") { | 212 static_library("headless_lib") { |
201 sources = [ | 213 sources = [ |
202 "app/headless_shell_switches.cc", | 214 "app/headless_shell_switches.cc", |
203 "app/headless_shell_switches.h", | 215 "app/headless_shell_switches.h", |
204 "lib/browser/headless_browser_context_impl.cc", | 216 "lib/browser/headless_browser_context_impl.cc", |
205 "lib/browser/headless_browser_context_impl.h", | 217 "lib/browser/headless_browser_context_impl.h", |
206 "lib/browser/headless_browser_context_options.cc", | 218 "lib/browser/headless_browser_context_options.cc", |
207 "lib/browser/headless_browser_context_options.h", | 219 "lib/browser/headless_browser_context_options.h", |
208 "lib/browser/headless_browser_impl.cc", | 220 "lib/browser/headless_browser_impl.cc", |
209 "lib/browser/headless_browser_impl.h", | 221 "lib/browser/headless_browser_impl.h", |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 "$root_gen_dir/headless/embedded_resource_pak.h", | 377 "$root_gen_dir/headless/embedded_resource_pak.h", |
366 ] | 378 ] |
367 } else { | 379 } else { |
368 deps += [ ":pak" ] | 380 deps += [ ":pak" ] |
369 } | 381 } |
370 | 382 |
371 if (use_ozone) { | 383 if (use_ozone) { |
372 deps += [ "//ui/ozone" ] | 384 deps += [ "//ui/ozone" ] |
373 } | 385 } |
374 | 386 |
| 387 if (headless_fontconfig_utils) { |
| 388 deps += [ ":headless_fontconfig_utils" ] |
| 389 } |
| 390 |
375 configs += [ ":headless_implementation" ] | 391 configs += [ ":headless_implementation" ] |
376 } | 392 } |
377 | 393 |
378 group("headless_tests") { | 394 group("headless_tests") { |
379 testonly = true | 395 testonly = true |
380 | 396 |
381 deps = [ | 397 deps = [ |
382 ":headless_browsertests", | 398 ":headless_browsertests", |
383 ":headless_example", | 399 ":headless_example", |
384 ":headless_unittests", | 400 ":headless_unittests", |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 | 538 |
523 executable("headless_example") { | 539 executable("headless_example") { |
524 sources = [ | 540 sources = [ |
525 "app/headless_example.cc", | 541 "app/headless_example.cc", |
526 ] | 542 ] |
527 | 543 |
528 deps = [ | 544 deps = [ |
529 ":headless_shell_lib", | 545 ":headless_shell_lib", |
530 ] | 546 ] |
531 } | 547 } |
OLD | NEW |