# Copyright 2015 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//chromecast/chromecast.gni")
import("//ui/webui/resources/tools/generate_grd.gni")
import("liblouis_library.gni")
liblouis_library("liblouis") {
dest_dir = "$root_build_dir/resources/chromeos/accessibility/chromevox/third_party/liblouis"
}
# grdp for ChromeVox subpage in ChromeOS settings.
generate_grd("build_grdp") {
grd_prefix = "liblouis"
out_grd = "$target_gen_dir/liblouis_resources.grdp"
input_files = [ "tables.json" ]
input_files_base_dir = rebase_path(".", "//")
resource_path_prefix = "static/liblouis"
}
if (!is_castos) {
chromevox_test_data_dir = "$root_build_dir/chromevox_test_data/braille"
liblouis_library("liblouis_test_data") {
testonly = true
dest_dir = chromevox_test_data_dir
deps = [ ":liblouis_test_files" ]
}
copy("liblouis_test_files") {
visibility = [ ":liblouis_test_data" ]
testonly = true
sources = [
"//chrome/test/data/chromeos/liblouis_wasm/manifest.json",
"//chrome/test/data/chromeos/liblouis_wasm/test.js",
]
outputs = [ "${chromevox_test_data_dir}/{{source_file_part}}" ]
}
}