blob: d824a5bb55c0c0f35a22afc4fbffa9e73c98495d [file] [log] [blame]
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//tools/grit/grit_rule.gni")
group("extensions") {
deps = [
":caretbrowsing",
":colorenhancer",
]
if (is_chromeos) {
deps += [ "chromevoxclassic:chromevox" ]
}
}
group("extension_tests") {
testonly = true
if (is_chromeos) {
deps = [ "chromevoxclassic:chromevox_tests" ]
}
}
locale_files = [
"_locales/am/messages.json",
"_locales/ar/messages.json",
"_locales/bg/messages.json",
"_locales/bn/messages.json",
"_locales/ca/messages.json",
"_locales/cs/messages.json",
"_locales/da/messages.json",
"_locales/de/messages.json",
"_locales/el/messages.json",
"_locales/en_GB/messages.json",
"_locales/en/messages.json",
"_locales/es/messages.json",
"_locales/es_419/messages.json",
"_locales/et/messages.json",
"_locales/fa/messages.json",
"_locales/fi/messages.json",
"_locales/fil/messages.json",
"_locales/fr/messages.json",
"_locales/gu/messages.json",
"_locales/he/messages.json",
"_locales/hi/messages.json",
"_locales/hr/messages.json",
"_locales/hu/messages.json",
"_locales/id/messages.json",
"_locales/it/messages.json",
"_locales/ja/messages.json",
"_locales/kn/messages.json",
"_locales/ko/messages.json",
"_locales/lt/messages.json",
"_locales/lv/messages.json",
"_locales/ml/messages.json",
"_locales/mr/messages.json",
"_locales/ms/messages.json",
"_locales/nl/messages.json",
"_locales/nb/messages.json",
"_locales/pl/messages.json",
"_locales/pt_BR/messages.json",
"_locales/pt_PT/messages.json",
"_locales/ro/messages.json",
"_locales/ru/messages.json",
"_locales/sk/messages.json",
"_locales/sl/messages.json",
"_locales/sr/messages.json",
"_locales/sv/messages.json",
"_locales/sw/messages.json",
"_locales/ta/messages.json",
"_locales/te/messages.json",
"_locales/th/messages.json",
"_locales/tr/messages.json",
"_locales/uk/messages.json",
"_locales/vi/messages.json",
"_locales/zh_CN/messages.json",
"_locales/zh_TW/messages.json",
]
#
# Color Enhancer
#
group("colorenhancer") {
deps = [
":colorenhancer_copy",
":colorenhancer_strings",
]
}
grit("colorenhancer_strings") {
source = "strings/accessibility_extensions_strings.grd"
outputs = locale_files
output_dir = "$root_out_dir/colorenhancer"
resource_ids = ""
}
colorenhancer_files = [
"colorenhancer/manifest.json",
"colorenhancer/src/background.js",
"colorenhancer/src/common.js",
"colorenhancer/src/cvd.js",
"colorenhancer/src/popup.html",
"colorenhancer/src/popup.js",
"colorenhancer/src/storage.js",
"colorenhancer/res/cvd-128.png",
"colorenhancer/res/cvd-16.png",
"colorenhancer/res/cvd-19.png",
"colorenhancer/res/cvd-38.png",
"colorenhancer/res/cvd-48.png",
"colorenhancer/res/setup.css",
]
copy("colorenhancer_copy") {
sources = colorenhancer_files
outputs = [ "$root_out_dir/{{source_target_relative}}" ]
}
#
# Caret Browsing
#
group("caretbrowsing") {
deps = [
":caretbrowsing_copy",
":caretbrowsing_strings",
]
}
grit("caretbrowsing_strings") {
source = "strings/accessibility_extensions_strings.grd"
outputs = locale_files
output_dir = "$root_out_dir/caretbrowsing"
resource_ids = ""
}
caretbrowsing_files = [
"caretbrowsing/background.js",
"caretbrowsing/caret_128.png",
"caretbrowsing/caret_16.png",
"caretbrowsing/caret_19_on.png",
"caretbrowsing/caret_19.png",
"caretbrowsing/caret_48.png",
"caretbrowsing/caretbrowsing.css",
"caretbrowsing/caretbrowsing.js",
"caretbrowsing/increase_brightness.png",
"caretbrowsing/manifest.json",
"caretbrowsing/options.html",
"caretbrowsing/options.js",
"caretbrowsing/traverse_util.js",
"//third_party/accessibility-audit/axs_testing.js",
]
copy("caretbrowsing_copy") {
sources = caretbrowsing_files
outputs = [ "$root_out_dir/caretbrowsing/{{source_file_part}}" ]
}