| 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 13 matching lines...) Expand all Loading... |
| 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_manifest", | 29 ":chromevox_manifest", |
| 30 ":chromevox_guest_manifest", | 30 ":chromevox_guest_manifest", |
| 31 ] | 31 ] |
| 32 if (chromevox_compress_js) { | 32 if (chromevox_compress_js) { |
| 33 deps += [ | 33 deps += [ |
| 34 ":chromevox1_background_script", | |
| 35 ":chromevox1_content_script", | 34 ":chromevox1_content_script", |
| 36 ":chromevox1_kbexplorer_script", | 35 ":chromevox1_kbexplorer_script", |
| 37 ":chromevox1_options_script", | 36 ":chromevox1_options_script", |
| 38 ":chromevox2_background_script", | 37 ":chromevox2_background_script", |
| 39 ] | 38 ] |
| 40 } else { | 39 } else { |
| 41 deps += [ ":chromevox_deps_js" ] | 40 deps += [ ":chromevox_deps_js" ] |
| 42 } | 41 } |
| 43 } | 42 } |
| 44 | 43 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 "chromevox/background/options.html", | 148 "chromevox/background/options.html", |
| 150 "chromevox/injected/api.js", | 149 "chromevox/injected/api.js", |
| 151 "cvox2/background/background.html", | 150 "cvox2/background/background.html", |
| 152 ] | 151 ] |
| 153 if (chromevox_compress_js) { | 152 if (chromevox_compress_js) { |
| 154 sources += [ "chromevox/injected/api_util.js" ] | 153 sources += [ "chromevox/injected/api_util.js" ] |
| 155 } else { | 154 } else { |
| 156 sources += chromevox_modules | 155 sources += chromevox_modules |
| 157 sources += [ | 156 sources += [ |
| 158 "closure/closure_preinit.js", | 157 "closure/closure_preinit.js", |
| 159 chromevox_vars_gypi_values.chromevox1_background_script_loader_file, | |
| 160 chromevox_vars_gypi_values.chromevox1_content_script_loader_file, | 158 chromevox_vars_gypi_values.chromevox1_content_script_loader_file, |
| 161 chromevox_vars_gypi_values.chromevox1_kbexplorer_loader_file, | 159 chromevox_vars_gypi_values.chromevox1_kbexplorer_loader_file, |
| 162 chromevox_vars_gypi_values.chromevox1_options_script_loader_file, | 160 chromevox_vars_gypi_values.chromevox1_options_script_loader_file, |
| 163 chromevox_vars_gypi_values.chromevox2_background_script_loader_file, | 161 chromevox_vars_gypi_values.chromevox2_background_script_loader_file, |
| 164 ] | 162 ] |
| 165 } | 163 } |
| 166 if (!chromevox_compress_js) { | 164 if (!chromevox_compress_js) { |
| 167 sources += closure_library_modules | 165 sources += closure_library_modules |
| 168 } | 166 } |
| 169 rewrite_rules = [ | 167 rewrite_rules = [ |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 template("compress_js") { | 249 template("compress_js") { |
| 252 run_jsbundler(target_name) { | 250 run_jsbundler(target_name) { |
| 253 assert(defined(invoker.output_file)) | 251 assert(defined(invoker.output_file)) |
| 254 mode = "compressed_bundle" | 252 mode = "compressed_bundle" |
| 255 modules = chromevox_modules + closure_library_modules | 253 modules = chromevox_modules + closure_library_modules |
| 256 sources = invoker.sources | 254 sources = invoker.sources |
| 257 output_file = invoker.output_file | 255 output_file = invoker.output_file |
| 258 } | 256 } |
| 259 } | 257 } |
| 260 | 258 |
| 261 compress_js("chromevox1_background_script") { | |
| 262 sources = [ | |
| 263 chromevox_vars_gypi_values.chromevox1_background_script_loader_file, | |
| 264 ] | |
| 265 output_file = "$chromevox_out_dir/chromeVoxChromeBackgroundScript.js" | |
| 266 } | |
| 267 | |
| 268 compress_js("chromevox1_content_script") { | 259 compress_js("chromevox1_content_script") { |
| 269 sources = [ | 260 sources = [ |
| 270 chromevox_vars_gypi_values.chromevox1_content_script_loader_file, | 261 chromevox_vars_gypi_values.chromevox1_content_script_loader_file, |
| 271 ] | 262 ] |
| 272 output_file = "$chromevox_out_dir/chromeVoxChromePageScript.js" | 263 output_file = "$chromevox_out_dir/chromeVoxChromePageScript.js" |
| 273 } | 264 } |
| 274 | 265 |
| 275 compress_js("chromevox1_kbexplorer_script") { | 266 compress_js("chromevox1_kbexplorer_script") { |
| 276 sources = [ | 267 sources = [ |
| 277 chromevox_vars_gypi_values.chromevox1_kbexplorer_loader_file, | 268 chromevox_vars_gypi_values.chromevox1_kbexplorer_loader_file, |
| 278 ] | 269 ] |
| 279 output_file = "$chromevox_out_dir/chromeVoxKbExplorerScript.js" | 270 output_file = "$chromevox_out_dir/chromeVoxKbExplorerScript.js" |
| 280 } | 271 } |
| 281 | 272 |
| 282 compress_js("chromevox1_options_script") { | 273 compress_js("chromevox1_options_script") { |
| 283 sources = [ | 274 sources = [ |
| 284 chromevox_vars_gypi_values.chromevox1_options_script_loader_file, | 275 chromevox_vars_gypi_values.chromevox1_options_script_loader_file, |
| 285 ] | 276 ] |
| 286 output_file = "$chromevox_out_dir/chromeVoxChromeOptionsScript.js" | 277 output_file = "$chromevox_out_dir/chromeVoxChromeOptionsScript.js" |
| 287 } | 278 } |
| 288 | 279 |
| 289 compress_js("chromevox2_background_script") { | 280 compress_js("chromevox2_background_script") { |
| 290 sources = [ | 281 sources = [ |
| 291 chromevox_vars_gypi_values.chromevox1_background_script_loader_file, | |
| 292 chromevox_vars_gypi_values.chromevox2_background_script_loader_file, | 282 chromevox_vars_gypi_values.chromevox2_background_script_loader_file, |
| 293 ] | 283 ] |
| 294 output_file = "$chromevox_out_dir/chromeVox2ChromeBackgroundScript.js" | 284 output_file = "$chromevox_out_dir/chromeVox2ChromeBackgroundScript.js" |
| 295 } | 285 } |
| 296 } else { | 286 } else { |
| 297 generate_deps_js("chromevox_deps_js") { | 287 generate_deps_js("chromevox_deps_js") { |
| 298 sources = chromevox_modules + closure_library_modules | 288 sources = chromevox_modules + closure_library_modules |
| 299 output_file = "$chromevox_out_dir/deps.js" | 289 output_file = "$chromevox_out_dir/deps.js" |
| 300 rewrite_rules = [ | 290 rewrite_rules = [ |
| 301 rebase_path(".", root_build_dir) + ":..", | 291 rebase_path(".", root_build_dir) + ":..", |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 } | 380 } |
| 391 | 381 |
| 392 js2gtest("chromevox_extjs_tests") { | 382 js2gtest("chromevox_extjs_tests") { |
| 393 test_type = "extension" | 383 test_type = "extension" |
| 394 sources = chromevox_tests_gypi_values.chromevox_tests_extjs_sources | 384 sources = chromevox_tests_gypi_values.chromevox_tests_extjs_sources |
| 395 sources -= [ "braille/liblouis_test.extjs" ] # TODO(GYP) | 385 sources -= [ "braille/liblouis_test.extjs" ] # TODO(GYP) |
| 396 gen_include_files = | 386 gen_include_files = |
| 397 chromevox_tests_gypi_values.chromevox_tests_ext_gen_include_sources | 387 chromevox_tests_gypi_values.chromevox_tests_ext_gen_include_sources |
| 398 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 388 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| 399 } | 389 } |
| OLD | NEW |