Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / ui / accessibility / BUILD.gn
index 66a04da..a95527f 100644 (file)
@@ -2,7 +2,7 @@
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
 
-import("//extensions/generated_extensions_api.gni")
+import("//build/json_schema_api.gni")
 
 component("accessibility") {
   sources = [
@@ -23,13 +23,18 @@ component("accessibility") {
     "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",
   ]
 
   defines = [ "ACCESSIBILITY_IMPLEMENTATION" ]
 
-  forward_dependent_configs_from = [ ":ax_gen" ]
-
-  deps = [
+  public_deps = [
     ":ax_gen",
     "//base",
     "//ui/gfx",
@@ -37,6 +42,17 @@ component("accessibility") {
   ]
 }
 
+source_set("test_support") {
+  sources = [
+    "tree_generator.cc",
+    "tree_generator.h"
+  ]
+
+  deps = [
+    ":accessibility"
+  ]
+}
+
 test("accessibility_unittests") {
   sources = [
     "ax_generated_tree_unittest.cc",
@@ -46,6 +62,7 @@ test("accessibility_unittests") {
 
   deps = [
     ":accessibility",
+    ":test_support",
     "//base",
     "//base/test:run_all_unittests",
     "//testing/gtest",
@@ -54,8 +71,9 @@ test("accessibility_unittests") {
   ]
 }
 
-generated_extensions_api("ax_gen") {
+json_schema_api("ax_gen") {
   sources = [ "ax_enums.idl" ]
-  root_namespace = ""
-  impl_dir = "."
+  deps = [ "//base/third_party/dynamic_annotations" ]
+  root_namespace = "ui"
+  schemas = true
 }