summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/html/parser/BUILD.gn
blob: 83e917e1e90cf69600862ce42fb0ed9161cc5b61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//testing/libfuzzer/fuzzer_test.gni")
import("//third_party/blink/renderer/core/core.gni")

blink_core_sources("parser") {
  sources = [
    "atomic_html_token.cc",
    "atomic_html_token.h",
    "background_html_input_stream.cc",
    "background_html_input_stream.h",
    "background_html_parser.cc",
    "background_html_parser.h",
    "compact_html_token.cc",
    "compact_html_token.h",
    "css_preload_scanner.cc",
    "css_preload_scanner.h",
    "html_construction_site.cc",
    "html_construction_site.h",
    "html_document_parser.cc",
    "html_document_parser.h",
    "html_element_stack.cc",
    "html_element_stack.h",
    "html_entity_parser.cc",
    "html_entity_parser.h",
    "html_entity_search.cc",
    "html_entity_search.h",
    "html_entity_table.h",
    "html_formatting_element_list.cc",
    "html_formatting_element_list.h",
    "html_input_stream.h",
    "html_meta_charset_parser.cc",
    "html_meta_charset_parser.h",
    "html_parser_idioms.cc",
    "html_parser_idioms.h",
    "html_parser_options.cc",
    "html_parser_options.h",
    "html_parser_reentry_permit.cc",
    "html_parser_reentry_permit.h",
    "html_parser_scheduler.cc",
    "html_parser_scheduler.h",
    "html_preload_scanner.cc",
    "html_preload_scanner.h",
    "html_resource_preloader.cc",
    "html_resource_preloader.h",
    "html_source_tracker.cc",
    "html_source_tracker.h",
    "html_srcset_parser.cc",
    "html_srcset_parser.h",
    "html_stack_item.h",
    "html_token.h",
    "html_tokenizer.cc",
    "html_tokenizer.h",
    "html_tree_builder.cc",
    "html_tree_builder.h",
    "html_tree_builder_simulator.cc",
    "html_tree_builder_simulator.h",
    "html_view_source_parser.cc",
    "html_view_source_parser.h",
    "input_stream_preprocessor.h",
    "markup_tokenizer_inlines.h",
    "nesting_level_incrementer.h",
    "parser_synchronization_policy.h",
    "preload_request.cc",
    "preload_request.h",
    "pump_session.cc",
    "pump_session.h",
    "resource_preloader.cc",
    "resource_preloader.h",
    "text_document_parser.cc",
    "text_document_parser.h",
    "text_resource_decoder.cc",
    "text_resource_decoder.h",
  ]

  # Optimizing the HTML parser for speed yields significant gains in performance
  # in parser-heavy scenarios. See https://crbug.com/787512.
  # Windows builds already override the default optimization in core.gni.
  if (!is_debug && !is_win) {
    configs -= [ "//build/config/compiler:default_optimization" ]
    configs += [ "//build/config/compiler:optimize_max" ]
  }
}

fuzzer_test("blink_html_tokenizer_fuzzer") {
  sources = [
    "html_tokenizer_fuzzer.cc",
  ]
  deps = [
    "../../:core",
    "../../../platform:blink_fuzzer_test_support",
  ]
}