1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/ui.gni")
6 import("//build/json_schema_api.gni")
7 import("//testing/test.gni")
9 component("accessibility") {
15 "ax_serializable_tree.cc",
16 "ax_serializable_tree.h",
21 "ax_tree_serializer.cc",
22 "ax_tree_serializer.h",
28 "platform/ax_platform_node.cc",
29 "platform/ax_platform_node.h",
30 "platform/ax_platform_node_base.cc",
31 "platform/ax_platform_node_base.h",
32 "platform/ax_platform_node_delegate.h",
33 "platform/ax_platform_node_mac.h",
34 "platform/ax_platform_node_mac.mm",
35 "platform/ax_platform_node_win.cc",
36 "platform/ax_platform_node_win.h",
39 defines = [ "ACCESSIBILITY_IMPLEMENTATION" ]
49 public_deps += [ "//third_party/iaccessible2" ]
52 if (use_aura && !is_chromeos && is_linux && use_x11) {
54 "platform/atk_util_auralinux.cc",
55 "platform/atk_util_auralinux.h",
56 "platform/ax_platform_node_auralinux.cc",
57 "platform/ax_platform_node_auralinux.h",
61 "//build/config/linux:atk",
62 "//build/config/linux:atk_warnings",
63 "//build/config/linux:gconf",
64 "//build/config/linux:glib",
69 source_set("test_support") {
71 "platform/test_ax_node_wrapper.cc",
72 "platform/test_ax_node_wrapper.h",
82 test("accessibility_unittests") {
84 "ax_generated_tree_unittest.cc",
85 "ax_text_utils_unittest.cc",
86 "ax_tree_serializer_unittest.cc",
87 "ax_tree_unittest.cc",
88 "platform/ax_platform_node_win_unittest.cc",
95 "//base/test:run_all_unittests",
102 deps += [ "//third_party/iaccessible2" ]
106 json_schema_api("ax_gen") {
111 "//base/third_party/dynamic_annotations",
113 root_namespace = "ui"