| # Copyright 2020 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/components.gni") |
| import("//build/dist/renamed_binary.gni") |
| |
| group("intl_services") { |
| testonly = true |
| public_deps = [ |
| ":pkg", |
| ":pkg_small", |
| ":tests", |
| ] |
| } |
| |
| group("small") { |
| deps = [ |
| ":pkg_small", |
| "config:small", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| public_deps = [ "tests" ] |
| } |
| |
| group("config") { |
| public_deps = [ "config" ] |
| } |
| |
| source_set("lib") { |
| sources = [ |
| "run.cc", |
| "run.h", |
| ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.settings", |
| "//sdk/lib/sys/cpp", |
| "//sdk/lib/syslog/cpp", |
| "//src/lib/fxl:fxl", |
| "//src/lib/intl/intl_property_provider_impl", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| } |
| |
| executable("intl_services_bin") { |
| output_name = "intl_services" |
| sources = [ "main.cc" ] |
| |
| deps = [ |
| ":lib", |
| "//sdk/lib/syslog/cpp", |
| ] |
| } |
| |
| fuchsia_package_with_single_component("pkg") { |
| package_name = "intl_services" |
| manifest = "meta/intl_services.cmx" |
| deps = [ |
| ":intl_services_bin", |
| "//src/intl:icudtl", |
| ] |
| } |
| |
| # The a11y_manager and intl_services binaries have been fused together for |
| # storage space reasons, busybox style. |
| renamed_binary("renamed_a11y_manager") { |
| source = "$root_out_dir/a11y_manager" |
| source_deps = [ "//src/ui/a11y/bin/a11y_manager:bin" ] |
| dest = "bin/intl_services" |
| } |
| |
| fuchsia_package_with_single_component("pkg_small") { |
| package_name = "intl-services-small" |
| component_name = "intl_services" |
| manifest = "meta/intl_services.cmx" |
| deps = [ |
| ":renamed_a11y_manager", |
| "//src/intl:icudtl", |
| ] |
| } |