OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 assert(is_chromeos) | 5 import("//third_party/closure_compiler/compile_js2.gni") |
6 | 6 |
7 copy("braille_ime_manifest") { | 7 if (is_chromeos) { |
8 sources = [ | 8 copy("braille_ime_manifest") { |
9 "manifest.json", | 9 source_files = [ "manifest.json" ] |
10 ] | 10 outputs = [ |
11 outputs = [ | 11 "$root_out_dir/resources/chromeos/braille_ime/manifest.json", |
12 "$root_out_dir/resources/chromeos/braille_ime/manifest.json", | 12 ] |
| 13 } |
| 14 } |
| 15 |
| 16 compile_js("compile_externs") { |
| 17 source_files = [ "externs.js" ] |
| 18 } |
| 19 |
| 20 compile_js("compile_braille_ime") { |
| 21 source_files = [ "braille_ime.js" ] |
| 22 externs = [ "chrome_extensions.js" ] |
| 23 deps = [ |
| 24 ":compile_externs", |
13 ] | 25 ] |
14 } | 26 } |
| 27 |
| 28 compile_js("compile_main") { |
| 29 source_files = [ "main.js" ] |
| 30 deps = [ |
| 31 ":compile_braille_ime", |
| 32 ] |
| 33 } |
| 34 |
| 35 group("compile_js") { |
| 36 deps = [ |
| 37 ":compile_braille_ime", |
| 38 ":compile_externs", |
| 39 ":compile_main", |
| 40 ] |
| 41 } |
OLD | NEW |