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