blob: d168b5e25a94f06b501695f452d13eae5ec9116b [file] [log] [blame]
# Copyright 2014 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("//build/json_schema_api.gni")
import("//testing/test.gni")
component("accessibility") {
sources = [
"ax_node.cc",
"ax_node.h",
"ax_node_data.cc",
"ax_node_data.h",
"ax_serializable_tree.cc",
"ax_serializable_tree.h",
"ax_text_utils.cc",
"ax_text_utils.h",
"ax_tree.cc",
"ax_tree.h",
"ax_tree_serializer.cc",
"ax_tree_serializer.h",
"ax_tree_source.h",
"ax_tree_update.cc",
"ax_tree_update.h",
"ax_view_state.cc",
"ax_view_state.h",
"platform/ax_platform_node.cc",
"platform/ax_platform_node.h",
"platform/ax_platform_node_base.cc",
"platform/ax_platform_node_base.h",
"platform/ax_platform_node_delegate.h",
"platform/ax_platform_node_mac.h",
"platform/ax_platform_node_mac.mm",
"platform/ax_platform_node_win.cc",
"platform/ax_platform_node_win.h",
]
defines = [ "ACCESSIBILITY_IMPLEMENTATION" ]
public_deps = [
":ax_gen",
"//base",
"//ui/gfx",
"//ui/gfx/geometry",
]
if (is_win) {
public_deps += [ "//third_party/iaccessible2" ]
}
}
source_set("test_support") {
sources = [
"platform/test_ax_node_wrapper.cc",
"platform/test_ax_node_wrapper.h",
"tree_generator.cc",
"tree_generator.h",
]
deps = [
":accessibility",
]
}
test("accessibility_unittests") {
sources = [
"ax_generated_tree_unittest.cc",
"ax_text_utils_unittest.cc",
"ax_tree_serializer_unittest.cc",
"ax_tree_unittest.cc",
"platform/ax_platform_node_win_unittest.cc",
]
deps = [
":accessibility",
":test_support",
"//base",
"//base/test:run_all_unittests",
"//testing/gtest",
"//ui/gfx",
"//ui/gfx/geometry",
]
if (is_win) {
deps += [ "//third_party/iaccessible2" ]
}
}
json_schema_api("ax_gen") {
sources = [
"ax_enums.idl",
]
deps = [
"//base/third_party/dynamic_annotations",
]
root_namespace = "ui"
schemas = true
}