OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import("//mojo/public/mojo_application.gni") | 5 import("//mojo/public/mojo_application.gni") |
6 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
7 import("//mojo/tools/embed/rules.gni") | 7 import("//mojo/tools/embed/rules.gni") |
8 | 8 |
9 embed_file("embed_icu_data") { | 9 embed_file("embed_icu_data") { |
10 source = "$root_out_dir/icudtl.dat" | 10 source = "$root_out_dir/icudtl.dat" |
11 namespace = "icu_data" | 11 namespace = "icu_data" |
12 variable = "kICUData" | 12 variable = "kICUData" |
13 | 13 |
14 deps = [ | 14 deps = [ |
15 "//third_party/icu:icudata", | 15 "//third_party/icu:icudata", |
16 ] | 16 ] |
17 } | 17 } |
18 | 18 |
19 mojo_native_application("icu_data") { | 19 mojo_native_application("icu_data") { |
20 sources = [ | 20 sources = [ |
| 21 "main.cc", |
| 22 ] |
| 23 |
| 24 deps = [ |
| 25 ":lib", |
| 26 "//mojo/application", |
| 27 ] |
| 28 } |
| 29 |
| 30 source_set("lib") { |
| 31 sources = [ |
21 "icu_data_impl.cc", | 32 "icu_data_impl.cc", |
22 ] | 33 ] |
23 | 34 |
24 deps = [ | 35 deps = [ |
25 ":embed_icu_data", | 36 ":embed_icu_data", |
26 "//base", | 37 "//base", |
27 "//mojo/application", | 38 "//mojo/application", |
28 "//mojo/common", | 39 "//mojo/common", |
29 "//mojo/environment:chromium", | 40 "//mojo/environment:chromium", |
30 "//mojo/services/icu_data/interfaces", | 41 "//mojo/services/icu_data/interfaces", |
31 ] | 42 ] |
32 } | 43 } |
OLD | NEW |