blob: d7d5fcf3e282b08d9133da89f637616148c1a358 [file] [log] [blame]
# 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("//third_party/blink/renderer/core/core.gni")
blink_core_sources("xml") {
deps = [ ":xpath_generated" ]
sources = [
"document_xml_tree_viewer.cc",
"document_xml_tree_viewer.h",
"document_xpath_evaluator.cc",
"document_xpath_evaluator.h",
"document_xslt.cc",
"document_xslt.h",
"dom_parser.cc",
"dom_parser.h",
"native_xpath_ns_resolver.cc",
"native_xpath_ns_resolver.h",
"parser/shared_buffer_reader.cc",
"parser/shared_buffer_reader.h",
"parser/xml_document_parser.cc",
"parser/xml_document_parser.h",
"parser/xml_document_parser_scope.cc",
"parser/xml_document_parser_scope.h",
"parser/xml_errors.cc",
"parser/xml_errors.h",
"parser/xml_parser_input.h",
"xml_serializer.cc",
"xml_serializer.h",
"xpath_evaluator.cc",
"xpath_evaluator.h",
"xpath_expression.cc",
"xpath_expression.h",
"xpath_expression_node.cc",
"xpath_expression_node.h",
"xpath_functions.cc",
"xpath_functions.h",
"xpath_node_set.cc",
"xpath_node_set.h",
"xpath_ns_resolver.h",
"xpath_parser.h",
"xpath_path.cc",
"xpath_path.h",
"xpath_predicate.cc",
"xpath_predicate.h",
"xpath_result.cc",
"xpath_result.h",
"xpath_step.cc",
"xpath_step.h",
"xpath_util.cc",
"xpath_util.h",
"xpath_value.cc",
"xpath_value.h",
"xpath_variable_reference.cc",
"xpath_variable_reference.h",
"xsl_style_sheet.h",
"xsl_style_sheet_libxslt.cc",
"xslt_extensions.cc",
"xslt_extensions.h",
"xslt_processor.cc",
"xslt_processor.h",
"xslt_processor_libxslt.cc",
"xslt_unicode_sort.cc",
"xslt_unicode_sort.h",
]
}
# Chromium-style plugin produces an error for xpath_grammar_generated.h.
# Disable the plugin for sources including xpath_grammar_generated.h.
blink_core_sources("xpath_generated") {
sources = [
"xpath_grammar_generated.cc",
"xpath_grammar_generated.h",
"xpath_parser.cc",
]
if (is_clang) {
configs -= [ "//build/config/clang:find_bad_constructs" ]
}
}