Home | History | Annotate | Download | only in accessibility
      1 # Copyright 2013 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.
      4 
      5 {
      6   'variables': {
      7     'chromium_code': 1,
      8   },
      9 
     10   'targets': [
     11     {
     12       'target_name': 'accessibility',
     13       'type': '<(component)',
     14       'export_dependent_settings': [
     15         'ax_gen',
     16       ],
     17       'hard_dependency': 1,
     18       'dependencies': [
     19         '../../base/base.gyp:base',
     20         '../gfx/gfx.gyp:gfx',
     21         '../gfx/gfx.gyp:gfx_geometry',
     22         'ax_gen',
     23       ],
     24       'defines': [
     25         'ACCESSIBILITY_IMPLEMENTATION',
     26       ],
     27       'sources': [
     28         # All .cc, .h under accessibility, except unittests
     29         'ax_node.cc',
     30         'ax_node.h',
     31         'ax_node_data.cc',
     32         'ax_node_data.h',
     33         'ax_serializable_tree.cc',
     34         'ax_serializable_tree.h',
     35         'ax_text_utils.cc',
     36         'ax_text_utils.h',
     37         'ax_tree.cc',
     38         'ax_tree.h',
     39         'ax_tree_serializer.cc',
     40         'ax_tree_serializer.h',
     41         'ax_tree_source.h',
     42         'ax_tree_update.cc',
     43         'ax_tree_update.h',
     44         'ax_view_state.cc',
     45         'ax_view_state.h',
     46       ]
     47     },
     48     {
     49       'target_name': 'accessibility_unittests',
     50       'type': 'executable',
     51       'dependencies': [
     52         '../../base/base.gyp:base',
     53         '../../base/base.gyp:run_all_unittests',
     54         '../../testing/gtest.gyp:gtest',
     55         '../gfx/gfx.gyp:gfx',
     56         '../gfx/gfx.gyp:gfx_geometry',
     57         'accessibility',
     58         'ax_gen',
     59       ],
     60       'sources': [
     61         'ax_generated_tree_unittest.cc',
     62         'ax_tree_serializer_unittest.cc',
     63         'ax_tree_unittest.cc',
     64       ]
     65     },
     66     {
     67       'target_name': 'ax_gen',
     68       'type': 'static_library',
     69       # This target exports a hard dependency because dependent targets may
     70       # include ax_enums.h, a generated header.
     71       'hard_dependency': 1,
     72       'dependencies': [
     73         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations'
     74         ],
     75       'sources': [
     76         '<@(schema_files)',
     77       ],
     78       'msvs_disabled_warnings': [ 4267 ],
     79       'includes': [
     80         '../../build/json_schema_bundle_compile.gypi',
     81         '../../build/json_schema_compile.gypi',
     82       ],
     83       'variables': {
     84         'chromium_code': 1,
     85         'schema_files': [
     86           'ax_enums.idl',
     87         ],
     88         'non_compiled_schema_files': [],
     89         'cc_dir': 'ui/accessibility',
     90         # TODO(dtseng): Change this once all files under ui/accessibility
     91         # namespaced under ui::ax.
     92         'root_namespace': '',
     93       },
     94     },
     95   ],
     96 }
     97