| 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 "//chrome/browser/resources/chromeos/braille_ime:braille_ime_manifest", | 22 "//chrome/browser/resources/chromeos/braille_ime:braille_ime_manifest", |
| 23 "//chrome/browser/resources/chromeos/chromevox/strings:chromevox_strings", | 23 "//chrome/browser/resources/chromeos/chromevox/strings:chromevox_strings", |
| 24 "//chrome/third_party/chromevox:chromevox_third_party_resources", | 24 "//chrome/third_party/chromevox:chromevox_third_party_resources", |
| 25 "//third_party/liblouis", | 25 "//third_party/liblouis", |
| 26 | 26 |
| 27 #<(DEPTH)/third_party/liblouis/liblouis_nacl.gyp:liblouis_nacl_wrapper_nacl'
# TODO(GYP) | 27 #<(DEPTH)/third_party/liblouis/liblouis_nacl.gyp:liblouis_nacl_wrapper_nacl'
# TODO(GYP) |
| 28 ":chromevox_copied_files", | 28 ":chromevox_copied_files", |
| 29 ":chromevox_guest_manifest", |
| 29 ":chromevox_manifest", | 30 ":chromevox_manifest", |
| 30 ":chromevox_guest_manifest", | |
| 31 ] | 31 ] |
| 32 if (chromevox_compress_js) { | 32 if (chromevox_compress_js) { |
| 33 deps += [ | 33 deps += [ |
| 34 ":chromevox_background_script", |
| 34 ":chromevox_content_script", | 35 ":chromevox_content_script", |
| 35 ":chromevox_kbexplorer_script", | 36 ":chromevox_kbexplorer_script", |
| 36 ":chromevox_options_script", | 37 ":chromevox_options_script", |
| 37 ":chromevox_background_script", | |
| 38 ":chromevox_panel_script", | 38 ":chromevox_panel_script", |
| 39 ] | 39 ] |
| 40 } else { | 40 } else { |
| 41 deps += [ ":chromevox_deps_js" ] | 41 deps += [ ":chromevox_deps_js" ] |
| 42 } | 42 } |
| 43 } | 43 } |
| 44 | 44 |
| 45 template("run_jsbundler") { | 45 template("run_jsbundler") { |
| 46 assert(defined(invoker.mode)) | 46 assert(defined(invoker.mode)) |
| 47 assert(defined(invoker.sources)) | 47 assert(defined(invoker.sources)) |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 chromevox_tests_gypi_values = | 307 chromevox_tests_gypi_values = |
| 308 exec_script("//build/gypi_to_gn.py", | 308 exec_script("//build/gypi_to_gn.py", |
| 309 [ rebase_path("chromevox_tests.gypi") ], | 309 [ rebase_path("chromevox_tests.gypi") ], |
| 310 "scope", | 310 "scope", |
| 311 [ "chromevox_tests.gypi" ]) | 311 [ "chromevox_tests.gypi" ]) |
| 312 | 312 |
| 313 test("chromevox_tests") { | 313 test("chromevox_tests") { |
| 314 sources = chromevox_tests_gypi_values.chromevox_tests_sources | 314 sources = chromevox_tests_gypi_values.chromevox_tests_sources |
| 315 | 315 |
| 316 deps = [ | 316 deps = [ |
| 317 ":chromevox_extjs_tests", |
| 318 ":chromevox_unitjs_tests", |
| 317 "//base", | 319 "//base", |
| 318 "//base:i18n", | 320 "//base:i18n", |
| 319 "//base/test:test_support", | 321 "//base/test:test_support", |
| 320 "//chrome:browser_tests_pak", | 322 "//chrome:browser_tests_pak", |
| 321 "//chrome:packed_extra_resources", | 323 "//chrome:packed_extra_resources", |
| 322 "//chrome:packed_resources", | 324 "//chrome:packed_resources", |
| 323 "//chrome:resources", | 325 "//chrome:resources", |
| 324 "//chrome:strings", | 326 "//chrome:strings", |
| 325 "//chrome/browser", | 327 "//chrome/browser", |
| 326 "//chrome/renderer", | 328 "//chrome/renderer", |
| 327 "//chrome/test:test_support", | 329 "//chrome/test:test_support", |
| 328 "//chrome/test:test_support_ui", | 330 "//chrome/test:test_support_ui", |
| 329 "//testing/gmock", | 331 "//testing/gmock", |
| 330 "//testing/gtest", | 332 "//testing/gtest", |
| 331 ":chromevox_extjs_tests", | |
| 332 ":chromevox_unitjs_tests", | |
| 333 ] | 333 ] |
| 334 if (cld_version == 0 || cld_version == 2) { | 334 if (cld_version == 0 || cld_version == 2) { |
| 335 # Because the browser_tests use translate, they need CLD data. | 335 # Because the browser_tests use translate, they need CLD data. |
| 336 deps += [ "//third_party/cld_2:cld2_platform_impl" ] | 336 deps += [ "//third_party/cld_2:cld2_platform_impl" ] |
| 337 } | 337 } |
| 338 } | 338 } |
| 339 | 339 |
| 340 action("chromevox_test_messages_js") { | 340 action("chromevox_test_messages_js") { |
| 341 script = "tools/generate_test_messages.py" | 341 script = "tools/generate_test_messages.py" |
| 342 sources = [ | 342 sources = [ |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 } | 391 } |
| 392 | 392 |
| 393 js2gtest("chromevox_extjs_tests") { | 393 js2gtest("chromevox_extjs_tests") { |
| 394 test_type = "extension" | 394 test_type = "extension" |
| 395 sources = chromevox_tests_gypi_values.chromevox_tests_extjs_sources | 395 sources = chromevox_tests_gypi_values.chromevox_tests_extjs_sources |
| 396 sources -= [ "braille/liblouis_test.extjs" ] # TODO(GYP) | 396 sources -= [ "braille/liblouis_test.extjs" ] # TODO(GYP) |
| 397 gen_include_files = | 397 gen_include_files = |
| 398 chromevox_tests_gypi_values.chromevox_tests_ext_gen_include_sources | 398 chromevox_tests_gypi_values.chromevox_tests_ext_gen_include_sources |
| 399 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 399 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| 400 } | 400 } |
| OLD | NEW |