Skip to content

Commit

Permalink
Accessibility: Add gn file to build colorenhancer
Browse files Browse the repository at this point in the history
Initial migration of the old accessibility_extensions.gyp file which
was removed during the gyp purge. Starting with the colorenhancer
extension.

BUG=701521

Review-Url: https://codereview.chromium.org/2763573003
Cr-Commit-Position: refs/heads/master@{#458230}
  • Loading branch information
wnwen authored and Commit bot committed Mar 20, 2017
1 parent 09e0b1f commit 2c84eb6
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 3 deletions.
1 change: 1 addition & 0 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ group("gn_all") {
"//tools/gn:gn_unittests",
"//tools/perf/clear_system_cache",
"//ui/accessibility:accessibility_unittests",
"//ui/accessibility/extensions",
]
}

Expand Down
106 changes: 106 additions & 0 deletions ui/accessibility/extensions/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# 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 = [
":colorenhancer",
]
}

group("colorenhancer") {
deps = [
":colorenhancer_copy",
":colorenhancer_strings",
]
}

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",
]

grit("colorenhancer_strings") {
source = "strings/accessibility_extensions_strings.grd"
outputs = locale_files
output_dir = "$root_out_dir/colorenhancer"
depfile_dir = "$root_out_dir"
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/cvd.css",
"colorenhancer/res/setup.css",
]

copy("colorenhancer_copy") {
sources = colorenhancer_files
outputs = [
"$root_out_dir/{{source_target_relative}}",
]
}
3 changes: 0 additions & 3 deletions ui/accessibility/extensions/OWNERS

This file was deleted.

0 comments on commit 2c84eb6

Please sign in to comment.