| 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) |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 "//chrome/third_party/chromevox:chromevox_third_party_resources", | 27 "//chrome/third_party/chromevox:chromevox_third_party_resources", |
| 28 ] | 28 ] |
| 29 if (enable_nacl) { | 29 if (enable_nacl) { |
| 30 deps += [ "//third_party/liblouis" ] | 30 deps += [ "//third_party/liblouis" ] |
| 31 } | 31 } |
| 32 if (chromevox_compress_js) { | 32 if (chromevox_compress_js) { |
| 33 deps += [ | 33 deps += [ |
| 34 ":chromevox_background_script", | 34 ":chromevox_background_script", |
| 35 ":chromevox_content_script", | 35 ":chromevox_content_script", |
| 36 ":chromevox_kbexplorer_script", | 36 ":chromevox_kbexplorer_script", |
| 37 ":chromevox_min_content_script", |
| 37 ":chromevox_options_script", | 38 ":chromevox_options_script", |
| 38 ":chromevox_panel_script", | 39 ":chromevox_panel_script", |
| 39 ] | 40 ] |
| 40 } else { | 41 } else { |
| 41 deps += [ ":chromevox_deps_js" ] | 42 deps += [ ":chromevox_deps_js" ] |
| 42 } | 43 } |
| 43 } | 44 } |
| 44 | 45 |
| 45 template("run_jsbundler") { | 46 template("run_jsbundler") { |
| 46 assert(defined(invoker.mode)) | 47 assert(defined(invoker.mode)) |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 if (chromevox_compress_js) { | 157 if (chromevox_compress_js) { |
| 157 sources += [ "chromevox/injected/api_util.js" ] | 158 sources += [ "chromevox/injected/api_util.js" ] |
| 158 } else { | 159 } else { |
| 159 sources += chromevox_modules | 160 sources += chromevox_modules |
| 160 sources += [ | 161 sources += [ |
| 161 "closure/closure_preinit.js", | 162 "closure/closure_preinit.js", |
| 162 chromevox_vars_gypi_values.chromevox_content_script_loader_file, | 163 chromevox_vars_gypi_values.chromevox_content_script_loader_file, |
| 163 chromevox_vars_gypi_values.chromevox_kbexplorer_loader_file, | 164 chromevox_vars_gypi_values.chromevox_kbexplorer_loader_file, |
| 164 chromevox_vars_gypi_values.chromevox_options_script_loader_file, | 165 chromevox_vars_gypi_values.chromevox_options_script_loader_file, |
| 165 chromevox_vars_gypi_values.chromevox_background_script_loader_file, | 166 chromevox_vars_gypi_values.chromevox_background_script_loader_file, |
| 167 chromevox_vars_gypi_values.chromevox_min_content_script_loader_file, |
| 166 chromevox_vars_gypi_values.chromevox_panel_script_loader_file, | 168 chromevox_vars_gypi_values.chromevox_panel_script_loader_file, |
| 167 ] | 169 ] |
| 168 } | 170 } |
| 169 if (!chromevox_compress_js) { | 171 if (!chromevox_compress_js) { |
| 170 sources += closure_library_modules | 172 sources += closure_library_modules |
| 171 } | 173 } |
| 172 rewrite_rules = [ | 174 rewrite_rules = [ |
| 173 rebase_path(".", root_build_dir) + ":", | 175 rebase_path(".", root_build_dir) + ":", |
| 174 rebase_path(closure_library_dir, root_build_dir) + ":closure", | 176 rebase_path(closure_library_dir, root_build_dir) + ":closure", |
| 175 ] | 177 ] |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 output_file = "$chromevox_out_dir/chromeVoxChromeOptionsScript.js" | 284 output_file = "$chromevox_out_dir/chromeVoxChromeOptionsScript.js" |
| 283 } | 285 } |
| 284 | 286 |
| 285 compress_js("chromevox_background_script") { | 287 compress_js("chromevox_background_script") { |
| 286 sources = [ | 288 sources = [ |
| 287 chromevox_vars_gypi_values.chromevox_background_script_loader_file, | 289 chromevox_vars_gypi_values.chromevox_background_script_loader_file, |
| 288 ] | 290 ] |
| 289 output_file = "$chromevox_out_dir/chromeVox2ChromeBackgroundScript.js" | 291 output_file = "$chromevox_out_dir/chromeVox2ChromeBackgroundScript.js" |
| 290 } | 292 } |
| 291 | 293 |
| 294 compress_js("chromevox_min_content_script") { |
| 295 sources = [ |
| 296 chromevox_vars_gypi_values.chromevox_min_content_script_loader_file, |
| 297 ] |
| 298 output_file = "$chromevox_out_dir/chromeVox2ChromePageScript.js" |
| 299 } |
| 300 |
| 292 compress_js("chromevox_panel_script") { | 301 compress_js("chromevox_panel_script") { |
| 293 sources = [ | 302 sources = [ |
| 294 chromevox_vars_gypi_values.chromevox_panel_script_loader_file, | 303 chromevox_vars_gypi_values.chromevox_panel_script_loader_file, |
| 295 ] | 304 ] |
| 296 output_file = "$chromevox_out_dir/chromeVoxPanelScript.js" | 305 output_file = "$chromevox_out_dir/chromeVoxPanelScript.js" |
| 297 } | 306 } |
| 298 } else { | 307 } else { |
| 299 generate_deps_js("chromevox_deps_js") { | 308 generate_deps_js("chromevox_deps_js") { |
| 300 sources = chromevox_modules + closure_library_modules | 309 sources = chromevox_modules + closure_library_modules |
| 301 output_file = "$chromevox_out_dir/deps.js" | 310 output_file = "$chromevox_out_dir/deps.js" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 398 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| 390 } | 399 } |
| 391 | 400 |
| 392 js2gtest("chromevox_extjs_tests") { | 401 js2gtest("chromevox_extjs_tests") { |
| 393 test_type = "extension" | 402 test_type = "extension" |
| 394 sources = chromevox_tests_gypi_values.chromevox_tests_extjs_sources | 403 sources = chromevox_tests_gypi_values.chromevox_tests_extjs_sources |
| 395 gen_include_files = | 404 gen_include_files = |
| 396 chromevox_tests_gypi_values.chromevox_tests_ext_gen_include_sources | 405 chromevox_tests_gypi_values.chromevox_tests_ext_gen_include_sources |
| 397 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 406 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| 398 } | 407 } |
| OLD | NEW |