| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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/linux/pkg_config.gni") | 5 import("//build/config/linux/pkg_config.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 import("//testing/libfuzzer/fuzzer_test.gni") | 8 import("//testing/libfuzzer/fuzzer_test.gni") |
| 9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 10 import("//tools/json_schema_compiler/json_schema_api.gni") | 10 import("//tools/json_schema_compiler/json_schema_api.gni") |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 "platform/ax_android_constants.cc", | 52 "platform/ax_android_constants.cc", |
| 53 "platform/ax_android_constants.h", | 53 "platform/ax_android_constants.h", |
| 54 "platform/ax_platform_unique_id.cc", | 54 "platform/ax_platform_unique_id.cc", |
| 55 "platform/ax_platform_unique_id.h", | 55 "platform/ax_platform_unique_id.h", |
| 56 "platform/ax_snapshot_node_android_platform.cc", | 56 "platform/ax_snapshot_node_android_platform.cc", |
| 57 "platform/ax_snapshot_node_android_platform.h", | 57 "platform/ax_snapshot_node_android_platform.h", |
| 58 ] | 58 ] |
| 59 | 59 |
| 60 if (has_native_accessibility) { | 60 if (has_native_accessibility) { |
| 61 sources += [ | 61 sources += [ |
| 62 "platform/ax_fake_caret_win.cc", | |
| 63 "platform/ax_fake_caret_win.h", | |
| 64 "platform/ax_platform_node.cc", | 62 "platform/ax_platform_node.cc", |
| 65 "platform/ax_platform_node.h", | 63 "platform/ax_platform_node.h", |
| 66 "platform/ax_platform_node_base.cc", | 64 "platform/ax_platform_node_base.cc", |
| 67 "platform/ax_platform_node_base.h", | 65 "platform/ax_platform_node_base.h", |
| 68 "platform/ax_platform_node_delegate.h", | 66 "platform/ax_platform_node_delegate.h", |
| 69 "platform/ax_platform_node_mac.h", | 67 "platform/ax_platform_node_mac.h", |
| 70 "platform/ax_platform_node_mac.mm", | 68 "platform/ax_platform_node_mac.mm", |
| 71 "platform/ax_platform_node_win.cc", | 69 "platform/ax_platform_node_win.cc", |
| 72 "platform/ax_platform_node_win.h", | 70 "platform/ax_platform_node_win.h", |
| 71 "platform/ax_system_caret_win.cc", |
| 72 "platform/ax_system_caret_win.h", |
| 73 ] | 73 ] |
| 74 } | 74 } |
| 75 | 75 |
| 76 defines = [ "ACCESSIBILITY_IMPLEMENTATION" ] | 76 defines = [ "ACCESSIBILITY_IMPLEMENTATION" ] |
| 77 | 77 |
| 78 public_deps = [ | 78 public_deps = [ |
| 79 ":ax_gen", | 79 ":ax_gen", |
| 80 "//base", | 80 "//base", |
| 81 "//base:i18n", | 81 "//base:i18n", |
| 82 "//ui/base", | 82 "//ui/base", |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 } | 131 } |
| 132 | 132 |
| 133 java_cpp_enum("ax_enumerations_srcjar") { | 133 java_cpp_enum("ax_enumerations_srcjar") { |
| 134 sources = [ | 134 sources = [ |
| 135 "ax_enums.idl", | 135 "ax_enums.idl", |
| 136 ] | 136 ] |
| 137 } | 137 } |
| 138 } | 138 } |
| 139 | 139 |
| 140 static_library("test_support") { | 140 static_library("test_support") { |
| 141 testonly = true |
| 141 sources = [ | 142 sources = [ |
| 142 "tree_generator.cc", | 143 "tree_generator.cc", |
| 143 "tree_generator.h", | 144 "tree_generator.h", |
| 144 ] | 145 ] |
| 145 | 146 |
| 146 if (is_win) { | 147 if (is_win) { |
| 147 sources += [ | 148 sources += [ |
| 148 "platform/test_ax_node_wrapper.cc", | 149 "platform/test_ax_node_wrapper.cc", |
| 149 "platform/test_ax_node_wrapper.h", | 150 "platform/test_ax_node_wrapper.h", |
| 150 ] | 151 ] |
| 151 } | 152 } |
| 152 | 153 |
| 153 deps = [ | 154 deps = [ |
| 154 ":accessibility", | 155 ":accessibility", |
| 155 ] | 156 ] |
| 156 } | 157 } |
| 157 | 158 |
| 158 test("accessibility_unittests") { | 159 test("accessibility_unittests") { |
| 160 testonly = true |
| 159 sources = [ | 161 sources = [ |
| 160 "ax_generated_tree_unittest.cc", | 162 "ax_generated_tree_unittest.cc", |
| 161 "ax_node_position_unittest.cc", | 163 "ax_node_position_unittest.cc", |
| 162 "ax_text_utils_unittest.cc", | 164 "ax_text_utils_unittest.cc", |
| 163 "ax_tree_combiner_unittest.cc", | 165 "ax_tree_combiner_unittest.cc", |
| 164 "ax_tree_serializer_unittest.cc", | 166 "ax_tree_serializer_unittest.cc", |
| 165 "ax_tree_unittest.cc", | 167 "ax_tree_unittest.cc", |
| 166 "platform/ax_platform_node_win_unittest.cc", | 168 "platform/ax_platform_node_win_unittest.cc", |
| 167 ] | 169 ] |
| 168 | 170 |
| 169 deps = [ | 171 deps = [ |
| 170 ":accessibility", | 172 ":accessibility", |
| 171 ":ax_gen", | 173 ":ax_gen", |
| 172 ":test_support", | 174 ":test_support", |
| 173 "//base", | 175 "//base", |
| 174 "//base/test:run_all_unittests", | 176 "//base/test:run_all_unittests", |
| 175 "//skia", | 177 "//skia", |
| 176 "//testing/gtest", | 178 "//testing/gtest", |
| 177 "//ui/base", | 179 "//ui/base", |
| 178 "//ui/gfx", | 180 "//ui/gfx", |
| 179 "//ui/gfx/geometry", | 181 "//ui/gfx/geometry", |
| 180 ] | 182 ] |
| 181 | 183 |
| 182 if (is_win) { | 184 if (is_win) { |
| 183 deps += [ "//third_party/iaccessible2" ] | 185 deps += [ "//third_party/iaccessible2" ] |
| 186 libs = [ "oleacc.lib" ] |
| 184 } | 187 } |
| 185 } | 188 } |
| 186 | 189 |
| 187 json_schema_api("ax_gen") { | 190 json_schema_api("ax_gen") { |
| 188 sources = [ | 191 sources = [ |
| 189 "ax_enums.idl", | 192 "ax_enums.idl", |
| 190 ] | 193 ] |
| 191 deps = [ | 194 deps = [ |
| 192 "//base/third_party/dynamic_annotations", | 195 "//base/third_party/dynamic_annotations", |
| 193 ] | 196 ] |
| 194 root_namespace = "ui" | 197 root_namespace = "ui" |
| 195 schemas = true | 198 schemas = true |
| 196 } | 199 } |
| 197 | 200 |
| 198 fuzzer_test("ax_tree_fuzzer") { | 201 fuzzer_test("ax_tree_fuzzer") { |
| 199 sources = [ | 202 sources = [ |
| 200 "ax_tree_fuzzer.cc", | 203 "ax_tree_fuzzer.cc", |
| 201 ] | 204 ] |
| 202 | 205 |
| 203 deps = [ | 206 deps = [ |
| 204 ":accessibility", | 207 ":accessibility", |
| 205 ] | 208 ] |
| 206 } | 209 } |
| OLD | NEW |