blob: 8cae70fe5f2d29bec4618a54537b3492bafc8e09 [file] [log] [blame]
# 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/icu/icu_source_set.gni")
group("cpp") {
testonly = true
public_deps = [
":intl-lookup-cpp",
":tests",
]
}
group("tests") {
testonly = true
deps = [ ":intl-lookup-cpp-tests" ]
}
icu_source_set("lib") {
sources = [
"lookup.cc",
"lookup.h",
]
icu_public_deps = [ "//src/lib/intl/lookup/rust:lib" ]
public_deps = [
"//sdk/lib/fit-promise",
"//third_party/googletest:gtest_prod",
]
}
executable("bin") {
output_name = "intl-lookup-cpp"
testonly = true
sources = [ "main.cc" ]
deps = [ ":lib" ]
}
executable("intl_lookup_cpp_unittests") {
testonly = true
sources = [ "lookup_test.cc" ]
deps = [
":lib",
"//sdk/lib/fit-promise",
"//src/lib/fxl/test:gtest_main",
"//src/lib/testing/loop_fixture",
]
}
fuchsia_package_with_single_component("intl-lookup-cpp") {
manifest = "meta/intl-lookup-cpp.cml"
deps = [ ":bin" ]
testonly = true
}
fuchsia_unittest_package("intl-lookup-cpp-tests") {
deps = [ ":intl_lookup_cpp_unittests" ]
}