| 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 | 8 |
| 8 action("embed_icu_data") { | 9 embed_file("embed_icu_data") { |
| 9 script = "embed_icu_data.py" | 10 source = "$root_build_dir/icudtl.dat" |
| 10 | 11 namespace = "icu_data" |
| 11 inputs = [ | 12 variable = "kICUData" |
| 12 "$root_build_dir/icudtl.dat", | |
| 13 ] | |
| 14 | |
| 15 outputs = [ | |
| 16 "$root_gen_dir/mojo/icu_data/data.cc", | |
| 17 ] | |
| 18 | |
| 19 args = rebase_path(inputs + outputs, root_build_dir) | |
| 20 | 13 |
| 21 deps = [ | 14 deps = [ |
| 22 "//third_party/icu:icudata", | 15 "//third_party/icu:icudata", |
| 23 ] | 16 ] |
| 24 } | 17 } |
| 25 | 18 |
| 26 mojo_native_application("icu_data") { | 19 mojo_native_application("icu_data") { |
| 27 sources = [ | 20 sources = [ |
| 28 "icu_data_impl.cc", | 21 "icu_data_impl.cc", |
| 29 "data.h", | |
| 30 "$root_gen_dir/mojo/icu_data/data.cc", | |
| 31 ] | 22 ] |
| 32 | 23 |
| 33 deps = [ | 24 deps = [ |
| 34 "//base", | 25 "//base", |
| 35 "//mojo/application", | 26 "//mojo/application", |
| 36 "//mojo/common", | 27 "//mojo/common", |
| 37 "//mojo/environment:chromium", | 28 "//mojo/environment:chromium", |
| 38 ":embed_icu_data", | 29 ":embed_icu_data", |
| 39 ":interfaces", | 30 ":interfaces", |
| 40 ] | 31 ] |
| 41 } | 32 } |
| 42 | 33 |
| 43 mojom("interfaces") { | 34 mojom("interfaces") { |
| 44 sources = [ | 35 sources = [ |
| 45 "icu_data.mojom", | 36 "icu_data.mojom", |
| 46 ] | 37 ] |
| 47 } | 38 } |
| OLD | NEW |