Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: chrome/browser/resources/chromeos/switch_access/BUILD.gn

Issue 2680383002: Created skeleton for switch access component extension. (Closed)
Patch Set: Fixing copyright year for new files Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2017 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import("//build/config/features.gni")
6 import("//testing/test.gni")
7 import("//chrome/test/base/js2gtest.gni")
8 import("//chrome/browser/resources/chromeos/chromevox/run_jsbundler.gni")
9
10 assert(is_chromeos)
11
12 switch_access_dir = "$root_out_dir/resources/chromeos/switch_access"
13
14 group("switch_access") {
15 deps = [
16 ":switch_access_copied_files",
17 ":switch_access_guest_manifest",
18 ":switch_access_manifest",
19 ]
20 }
21
22 # Instead of setting up one copy target for each subdirectory, use a script
23 # to copy all files.
24 run_jsbundler("switch_access_copied_files") {
25 mode = "copy"
26 dest_dir = switch_access_dir
27 sources = [
28 "switch_access.js",
29 ]
30 rewrite_rules = [
31 rebase_path(".", root_build_dir) + ":",
32 rebase_path(closure_library_dir, root_build_dir) + ":closure",
33 ]
34 }
35
36 # TODO: refactor this into another file like generate_manifest.gni
37 # to share with other extensions.
38 template("manifest") {
39 version_file = "//chrome/VERSION"
40 version_script = "//build/util/version.py"
41 template_file = "manifest.json.jinja2"
42 output_file = invoker.output_file
43 key = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDVWTYdXNGhIG6FJKIhaoh RRrYYGwg9cR2jea2NRBSEg+T7E3EvUyFy0ouez0N0omeSAL/xlvQtCjZJ72eCqDBgON/49SRtUdLS5TQ 2U9cHYcIwI86llKMqqws6uMSwlWXldyNwKx5LVT1nR0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GANkdtr+5iRYhfr1BKmKwvRqDHtNtGGNlJZecCWAwC1p7C0I5FsyK3m9AyJlPcmxE2MSA/jv3qLWd G2JeH9ODcLuzy6C7hgB1X07H6lJBeANXd0Uz6ba96kdeZHGlzkY7xI0MbQl4kKkXiUvVijzgs8y5HfVi 8SgHm7HxGCDASehcCgYEAnw1yu4eaWqsq7ECyjEBM7sQcMVGypiG3VupzLKA75iPkg/E+peUZyDRg7LP CiX/UcW22bliUw1ASRzY+thuVlGWC2CPah95Z4m+H4cJVSEEqKUbYRGfsDlDIJNxPihGvhoTniKZwvpU acbAhop7rbiAVGx+RJ+tFG8P56AbvBVE="
44 action(target_name) {
45 script = "//chrome/browser/resources/chromeos/chromevox/tools/generate_manif est.py"
46 inputs = [
47 version_file,
48 version_script,
49 ]
50 sources = [
51 template_file,
52 ]
53 outputs = [
54 output_file,
55 ]
56 args = [
57 "--key=$key",
58 "--version_file=" + rebase_path(version_file, root_build_dir),
59 "--output_manifest=" + rebase_path(output_file, root_build_dir),
60 ]
61 if (defined(invoker.is_guest_manifest) && invoker.is_guest_manifest) {
62 args += [ "--is_guest_manifest=1" ]
63 }
64 args += rebase_path(sources, root_build_dir)
65 }
66 }
67
68 manifest("switch_access_manifest") {
69 output_file = "$switch_access_dir/manifest.json"
70 }
71
72 manifest("switch_access_guest_manifest") {
73 output_file = "$switch_access_dir/manifest_guest.json"
74 is_guest_manifest = true
75 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698