| 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") | 8 import("chromevox.gni") |
| 9 | 9 |
| 10 assert(is_chromeos) | 10 assert(is_chromeos) |
| 11 | 11 |
| 12 declare_args() { | 12 declare_args() { |
| 13 # Whether to compress the main Chromevox javascript files or load the | 13 # Whether to compress the main Chromevox javascript files or load the |
| 14 # modules individually from source files. | 14 # modules individually from source files. |
| 15 chromevox_compress_js = !is_debug | 15 chromevox_compress_js = !is_debug |
| 16 } | 16 } |
| 17 | 17 |
| 18 chromevox_out_dir = "$root_out_dir/resources/chromeos/chromevox" | 18 chromevox_out_dir = "$root_out_dir/resources/chromeos/chromevox" |
| 19 | 19 |
| 20 group("chromevox") { | 20 group("chromevox") { |
| 21 deps = [ | 21 deps = [ |
| 22 ":chromevox_copied_files", | 22 ":chromevox_copied_files", |
| 23 ":chromevox_guest_manifest", | 23 ":chromevox_guest_manifest", |
| 24 ":chromevox_manifest", | 24 ":chromevox_manifest", |
| 25 "//chrome/browser/resources/chromeos/braille_ime:braille_ime_manifest", | 25 "//chrome/browser/resources/chromeos/braille_ime:braille_ime_manifest", |
| 26 "//chrome/browser/resources/chromeos/chromevox/strings:chromevox_strings", | 26 "//chrome/browser/resources/chromeos/chromevox/strings:chromevox_strings", |
| 27 "//chrome/third_party/chromevox:chromevox_third_party_resources", | 27 "//chrome/third_party/chromevox:chromevox_third_party_resources", |
| 28 "//third_party/liblouis", | |
| 29 ] | 28 ] |
| 29 if (enable_nacl) { |
| 30 deps += [ "//third_party/liblouis" ] |
| 31 } |
| 30 if (chromevox_compress_js) { | 32 if (chromevox_compress_js) { |
| 31 deps += [ | 33 deps += [ |
| 32 ":chromevox_background_script", | 34 ":chromevox_background_script", |
| 33 ":chromevox_content_script", | 35 ":chromevox_content_script", |
| 34 ":chromevox_kbexplorer_script", | 36 ":chromevox_kbexplorer_script", |
| 35 ":chromevox_options_script", | 37 ":chromevox_options_script", |
| 36 ":chromevox_panel_script", | 38 ":chromevox_panel_script", |
| 37 ] | 39 ] |
| 38 } else { | 40 } else { |
| 39 deps += [ ":chromevox_deps_js" ] | 41 deps += [ ":chromevox_deps_js" ] |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 392 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| 391 } | 393 } |
| 392 | 394 |
| 393 js2gtest("chromevox_extjs_tests") { | 395 js2gtest("chromevox_extjs_tests") { |
| 394 test_type = "extension" | 396 test_type = "extension" |
| 395 sources = chromevox_tests_gypi_values.chromevox_tests_extjs_sources | 397 sources = chromevox_tests_gypi_values.chromevox_tests_extjs_sources |
| 396 gen_include_files = | 398 gen_include_files = |
| 397 chromevox_tests_gypi_values.chromevox_tests_ext_gen_include_sources | 399 chromevox_tests_gypi_values.chromevox_tests_ext_gen_include_sources |
| 398 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 400 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| 399 } | 401 } |
| OLD | NEW |