| 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", | 21 "main.cc", |
| 22 ] | 22 ] |
| 23 | 23 |
| 24 deps = [ | 24 deps = [ |
| 25 ":lib", | 25 ":lib", |
| 26 "//mojo/application", | 26 "//mojo/application", |
| 27 ] | 27 ] |
| 28 } | 28 } |
| 29 | 29 |
| 30 # Library that allows the service code to be included directly into the |
| 31 # embedding shell. Used by https://manganese.googlesource.com/. |
| 30 source_set("lib") { | 32 source_set("lib") { |
| 31 sources = [ | 33 sources = [ |
| 32 "icu_data_impl.cc", | 34 "icu_data_impl.cc", |
| 33 ] | 35 ] |
| 34 | 36 |
| 35 deps = [ | 37 deps = [ |
| 36 ":embed_icu_data", | 38 ":embed_icu_data", |
| 37 "//base", | 39 "//base", |
| 38 "//mojo/application", | 40 "//mojo/application", |
| 39 "//mojo/common", | 41 "//mojo/common", |
| 40 "//mojo/environment:chromium", | 42 "//mojo/environment:chromium", |
| 41 "//mojo/services/icu_data/interfaces", | 43 "//mojo/services/icu_data/interfaces", |
| 42 ] | 44 ] |
| 43 } | 45 } |
| OLD | NEW |