|  | # 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") | 
|  |  | 
|  | group("cpp") { | 
|  | testonly = true | 
|  | public_deps = [ | 
|  | ":intl-lookup-cpp", | 
|  | ":tests", | 
|  | ] | 
|  | } | 
|  |  | 
|  | group("tests") { | 
|  | testonly = true | 
|  | deps = [ ":intl-lookup-cpp-tests" ] | 
|  | } | 
|  |  | 
|  | source_set("lib") { | 
|  | sources = [ | 
|  | "lookup.cc", | 
|  | "lookup.h", | 
|  | ] | 
|  |  | 
|  | public_deps = [ | 
|  | "//sdk/lib/fit-promise", | 
|  | "//src/lib/intl/lookup/rust:lib", | 
|  | "//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.cmx" | 
|  | deps = [ ":bin" ] | 
|  | testonly = true | 
|  | } | 
|  |  | 
|  | fuchsia_unittest_package("intl-lookup-cpp-tests") { | 
|  | deps = [ ":intl_lookup_cpp_unittests" ] | 
|  | } |