| # Copyright 2021 The Chromium OS 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("//common-mk/pkg_config.gni") |
| |
| pkg_config("target_defaults") { |
| pkg_deps = [ |
| "dbus-1", |
| "libchrome", |
| |
| # system_api depends on protobuf (or protobuf-lite). It must appear |
| # before protobuf here or the linker flags won't be in the right |
| # order. |
| "system_api", |
| ] |
| if (use.fuzzer) { |
| pkg_deps += [ "protobuf" ] |
| } else { |
| pkg_deps += [ "protobuf-lite" ] |
| } |
| } |
| |
| static_library("upload_client") { |
| sources = [ "upload_client.cc" ] |
| configs += [ ":target_defaults" ] |
| deps = [ |
| "//missive/proto:libmissiveprotointerface", |
| "//missive/proto:libmissiveprotorecord", |
| "//missive/util:disconnectable_client", |
| "//missive/util:status", |
| ] |
| } |