OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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/features.gni") | 5 import("//build/config/features.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 import("//chrome/test/base/js2gtest.gni") | 7 import("//chrome/test/base/js2gtest.gni") |
8 import("chromevox.gni") | |
9 | 8 |
10 assert(is_chromeos) | 9 assert(is_chromeos) |
11 | 10 |
12 declare_args() { | 11 declare_args() { |
13 # Whether to compress the main Chromevox javascript files or load the | 12 # Whether to compress the main Chromevox javascript files or load the |
14 # modules individually from source files. | 13 # modules individually from source files. |
15 chromevox_compress_js = !is_debug | 14 chromevox_compress_js = !is_debug |
16 } | 15 } |
17 | 16 |
| 17 closure_library_dir = |
| 18 "//chrome/third_party/chromevox/third_party/closure-library/closure/goog" |
| 19 |
| 20 jsbundler_modules = rebase_path([ |
| 21 "depstree.py", |
| 22 "source.py", |
| 23 "treescan.py", |
| 24 ], |
| 25 ".", |
| 26 "$closure_library_dir/../bin/build") |
| 27 jsbundler_modules += |
| 28 [ "//third_party/WebKit/Source/devtools/scripts/rjsmin.py" ] |
| 29 |
| 30 # List of all modules that are included in one or more of the production |
| 31 # chromevox scripts. |
| 32 chromevox_modules = [ |
| 33 "braille/braille_display_manager.js", |
| 34 "braille/braille_input_handler.js", |
| 35 "braille/braille_key_types.js", |
| 36 "braille/braille_table.js", |
| 37 "braille/braille_translator_manager.js", |
| 38 "braille/expanding_braille_translator.js", |
| 39 "braille/liblouis.js", |
| 40 "braille/nav_braille.js", |
| 41 "braille/pan_strategy.js", |
| 42 "braille/spans.js", |
| 43 "chromevox/background/background.js", |
| 44 "chromevox/background/braille_captions_background.js", |
| 45 "chromevox/background/injected_script_loader.js", |
| 46 "chromevox/background/kbexplorer.js", |
| 47 "chromevox/background/keymaps/key_map.js", |
| 48 "chromevox/background/mathmaps/math_map.js", |
| 49 "chromevox/background/options.js", |
| 50 "chromevox/background/prefs.js", |
| 51 "chromevox/background/tabs_api_handler.js", |
| 52 "chromevox/injected/active_indicator.js", |
| 53 "chromevox/injected/api_implementation.js", |
| 54 "chromevox/injected/api_util.js", |
| 55 "chromevox/injected/console_tts.js", |
| 56 "chromevox/injected/event_suspender.js", |
| 57 "chromevox/injected/event_watcher.js", |
| 58 "chromevox/injected/history.js", |
| 59 "chromevox/injected/init_document.js", |
| 60 "chromevox/injected/init_globals.js", |
| 61 "chromevox/injected/initial_speech.js", |
| 62 "chromevox/injected/keyboard_handler.js", |
| 63 "chromevox/injected/live_regions.js", |
| 64 "chromevox/injected/navigation_history.js", |
| 65 "chromevox/injected/navigation_manager.js", |
| 66 "chromevox/injected/navigation_shifter.js", |
| 67 "chromevox/injected/navigation_speaker.js", |
| 68 "chromevox/injected/node_breadcrumb.js", |
| 69 "chromevox/injected/script_installer.js", |
| 70 "chromevox/injected/serializer.js", |
| 71 "chromevox/injected/ui/braille_overlay_widget.js", |
| 72 "chromevox/injected/ui/context_menu_widget.js", |
| 73 "chromevox/injected/ui/keyboard_help_widget.js", |
| 74 "chromevox/injected/ui/node_search_widget.js", |
| 75 "chromevox/injected/ui/overlay_widget.js", |
| 76 "chromevox/injected/ui/search_widget.js", |
| 77 "chromevox/injected/ui/select_widget.js", |
| 78 "chromevox/injected/ui/spoken_messages.js", |
| 79 "chromevox/injected/ui/widget.js", |
| 80 "chromevox/injected/user_commands.js", |
| 81 "chromevox/injected/user_event_detail.js", |
| 82 "common/aria_util.js", |
| 83 "common/aural_style_util.js", |
| 84 "common/braille_text_handler.js", |
| 85 "common/braille_util.js", |
| 86 "common/buildinfo.js", |
| 87 "common/chromevox.js", |
| 88 "common/chromevox_json.js", |
| 89 "common/command_store.js", |
| 90 "common/composite_tts.js", |
| 91 "common/content_editable_extractor.js", |
| 92 "common/cursor.js", |
| 93 "common/cursor_selection.js", |
| 94 "common/date_widget.js", |
| 95 "common/description_util.js", |
| 96 "common/dom_predicates.js", |
| 97 "common/dom_util.js", |
| 98 "common/earcon_util.js", |
| 99 "common/editable_text.js", |
| 100 "common/editable_text_area_shadow.js", |
| 101 "common/editable_text_base.js", |
| 102 "common/find_util.js", |
| 103 "common/focus_util.js", |
| 104 "common/focuser.js", |
| 105 "common/group_util.js", |
| 106 "common/interframe.js", |
| 107 "common/key_sequence.js", |
| 108 "common/key_util.js", |
| 109 "common/math_semantic_attr.js", |
| 110 "common/math_semantic_tree.js", |
| 111 "common/math_semantic_util.js", |
| 112 "common/math_util.js", |
| 113 "common/media_widget.js", |
| 114 "common/memoize.js", |
| 115 "common/msgs.js", |
| 116 "common/nav_description.js", |
| 117 "common/nav_math_description.js", |
| 118 "common/node_state.js", |
| 119 "common/page_selection.js", |
| 120 "common/platform_util.js", |
| 121 "common/selection_util.js", |
| 122 "common/spannable.js", |
| 123 "common/string_util.js", |
| 124 "common/table_util.js", |
| 125 "common/time_widget.js", |
| 126 "common/traverse_content.js", |
| 127 "common/traverse_math.js", |
| 128 "common/traverse_table.js", |
| 129 "common/traverse_util.js", |
| 130 "common/xpath_util.js", |
| 131 "cvox2/background/automation_object_constructor_installer.js", |
| 132 "cvox2/background/automation_predicate.js", |
| 133 "cvox2/background/automation_util.js", |
| 134 "cvox2/background/background.js", |
| 135 "cvox2/background/base_automation_handler.js", |
| 136 "cvox2/background/chromevox_state.js", |
| 137 "cvox2/background/command_handler.js", |
| 138 "cvox2/background/constants.js", |
| 139 "cvox2/background/cursors.js", |
| 140 "cvox2/background/desktop_automation_handler.js", |
| 141 "cvox2/background/earcon_engine.js", |
| 142 "cvox2/background/editing.js", |
| 143 "cvox2/background/i_search.js", |
| 144 "cvox2/background/keyboard_handler.js", |
| 145 "cvox2/background/live_regions.js", |
| 146 "cvox2/background/next_earcons.js", |
| 147 "cvox2/background/notifications.js", |
| 148 "cvox2/background/output.js", |
| 149 "cvox2/background/panel.js", |
| 150 "cvox2/background/panel_command.js", |
| 151 "cvox2/background/panel_menu.js", |
| 152 "cvox2/background/panel_menu_item.js", |
| 153 "cvox2/background/stubs.js", |
| 154 "cvox2/background/tabs_automation_handler.js", |
| 155 "cvox2/background/tree_walker.js", |
| 156 "cvox2/background/tutorial.js", |
| 157 "cvox2/injected/keyboard_handler.js", |
| 158 "cvox2/injected/loader.js", |
| 159 "extensions/searchvox/abstract_result.js", |
| 160 "extensions/searchvox/constants.js", |
| 161 "extensions/searchvox/context_menu.js", |
| 162 "extensions/searchvox/loader.js", |
| 163 "extensions/searchvox/results.js", |
| 164 "extensions/searchvox/search.js", |
| 165 "extensions/searchvox/search_tools.js", |
| 166 "extensions/searchvox/util.js", |
| 167 "host/chrome/braille.js", |
| 168 "host/chrome/braille_background.js", |
| 169 "host/chrome/classic_earcons.js", |
| 170 "host/chrome/earcons.js", |
| 171 "host/chrome/extension_bridge.js", |
| 172 "host/chrome/host.js", |
| 173 "host/chrome/mathjax.js", |
| 174 "host/chrome/tts.js", |
| 175 "host/chrome/tts_background.js", |
| 176 "host/chrome/tts_base.js", |
| 177 "host/interface/abstract_earcons.js", |
| 178 "host/interface/abstract_host.js", |
| 179 "host/interface/abstract_mathjax.js", |
| 180 "host/interface/abstract_tts.js", |
| 181 "host/interface/braille_interface.js", |
| 182 "host/interface/host_factory.js", |
| 183 "host/interface/mathjax_interface.js", |
| 184 "host/interface/tts_interface.js", |
| 185 "speech_rules/base_rule_store.js", |
| 186 "speech_rules/math_simple_store.js", |
| 187 "speech_rules/math_store.js", |
| 188 "speech_rules/mathml_store.js", |
| 189 "speech_rules/mathml_store_rules.js", |
| 190 "speech_rules/mathml_store_util.js", |
| 191 "speech_rules/speech_rule.js", |
| 192 "speech_rules/speech_rule_engine.js", |
| 193 "speech_rules/speech_rule_evaluator.js", |
| 194 "speech_rules/speech_rule_functions.js", |
| 195 "speech_rules/speech_rule_store.js", |
| 196 "speech_rules/store_util.js", |
| 197 "walkers/abstract_node_walker.js", |
| 198 "walkers/abstract_selection_walker.js", |
| 199 "walkers/abstract_shifter.js", |
| 200 "walkers/abstract_walker.js", |
| 201 "walkers/bare_object_walker.js", |
| 202 "walkers/character_walker.js", |
| 203 "walkers/column_walker.js", |
| 204 "walkers/group_walker.js", |
| 205 "walkers/layout_line_walker.js", |
| 206 "walkers/math_shifter.js", |
| 207 "walkers/object_walker.js", |
| 208 "walkers/row_walker.js", |
| 209 "walkers/sentence_walker.js", |
| 210 "walkers/structural_line_walker.js", |
| 211 "walkers/table_shifter.js", |
| 212 "walkers/table_walker.js", |
| 213 "walkers/word_walker.js", |
| 214 ] |
| 215 |
| 216 # Closure library modules neede by chromevox. |
| 217 relative_closure_library_modules = [ |
| 218 "i18n/pluralrules.js", |
| 219 "i18n/ordinalrules.js", |
| 220 "i18n/messageformat.js", |
| 221 "string/string.js", |
| 222 "dom/nodetype.js", |
| 223 "base.js", |
| 224 "asserts/asserts.js", |
| 225 "debug/error.js", |
| 226 "object/object.js", |
| 227 ] |
| 228 |
| 229 closure_library_modules = |
| 230 rebase_path(relative_closure_library_modules, ".", closure_library_dir) |
| 231 |
18 chromevox_out_dir = "$root_out_dir/resources/chromeos/chromevox" | 232 chromevox_out_dir = "$root_out_dir/resources/chromeos/chromevox" |
19 | 233 |
20 group("chromevox") { | 234 group("chromevox") { |
21 deps = [ | 235 deps = [ |
22 ":chromevox_copied_files", | 236 ":chromevox_copied_files", |
23 ":chromevox_guest_manifest", | 237 ":chromevox_guest_manifest", |
24 ":chromevox_manifest", | 238 ":chromevox_manifest", |
25 "//chrome/browser/resources/chromeos/braille_ime:braille_ime_manifest", | 239 "//chrome/browser/resources/chromeos/braille_ime:braille_ime_manifest", |
26 "//chrome/browser/resources/chromeos/chromevox/strings:chromevox_strings", | 240 "//chrome/browser/resources/chromeos/chromevox/strings:chromevox_strings", |
27 "//chrome/third_party/chromevox:chromevox_third_party_resources", | 241 "//chrome/third_party/chromevox:chromevox_third_party_resources", |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 634 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
421 } | 635 } |
422 | 636 |
423 js2gtest("chromevox_extjs_tests") { | 637 js2gtest("chromevox_extjs_tests") { |
424 test_type = "extension" | 638 test_type = "extension" |
425 sources = chromevox_tests_gypi_values.chromevox_tests_extjs_sources | 639 sources = chromevox_tests_gypi_values.chromevox_tests_extjs_sources |
426 gen_include_files = | 640 gen_include_files = |
427 chromevox_tests_gypi_values.chromevox_tests_ext_gen_include_sources | 641 chromevox_tests_gypi_values.chromevox_tests_ext_gen_include_sources |
428 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 642 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
429 } | 643 } |
OLD | NEW |