| # Copyright 2021 The ChromiumOS Authors | |
| # 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") | |
| import("//common-mk/proto_library.gni") | |
| pkg_config("target_defaults") { | |
| pkg_deps = [ | |
| "libbrillo", | |
| "libchrome", | |
| ] | |
| if (use.fuzzer) { | |
| pkg_deps += [ "protobuf" ] | |
| } else { | |
| pkg_deps += [ "protobuf-lite" ] | |
| } | |
| } | |
| static_library("backoff_settings") { | |
| sources = [ | |
| "backoff_settings.cc", | |
| "backoff_settings.h", | |
| ] | |
| configs += [ ":target_defaults" ] | |
| } | |
| static_library("file") { | |
| sources = [ | |
| "file.cc", | |
| "file.h", | |
| ] | |
| configs += [ ":target_defaults" ] | |
| deps = [ ":status" ] | |
| } | |
| static_library("status") { | |
| sources = [ | |
| "reporting_errors.h", | |
| "status.cc", | |
| "status.h", | |
| "statusor.cc", | |
| "statusor.h", | |
| ] | |
| configs += [ ":target_defaults" ] | |
| public_deps = [ "//missive/proto:libmissiveprotostatus" ] | |
| } | |
| static_library("time") { | |
| sources = [ | |
| "time.cc", | |
| "time.h", | |
| ] | |
| configs += [ ":target_defaults" ] | |
| deps = [ ":status" ] | |
| } | |
| source_set("status_macros") { | |
| sources = [ | |
| "status_macros.cc", | |
| "status_macros.h", | |
| ] | |
| configs += [ ":target_defaults" ] | |
| deps = [ ":status" ] | |
| } | |
| source_set("task_runner_context") { | |
| sources = [ "task_runner_context.h" ] | |
| configs += [ ":target_defaults" ] | |
| } | |
| source_set("test_callbacks_support") { | |
| sources = [ | |
| "test_support_callbacks.cc", | |
| "test_support_callbacks.h", | |
| "test_util.h", | |
| ] | |
| configs += [ | |
| ":target_defaults", | |
| "//common-mk:test", | |
| ] | |
| } | |
| source_set("disconnectable_client") { | |
| sources = [ | |
| "disconnectable_client.cc", | |
| "disconnectable_client.h", | |
| ] | |
| configs += [ ":target_defaults" ] | |
| deps = [ ":status" ] | |
| } | |
| source_set("refcounted_closure_list") { | |
| sources = [ | |
| "refcounted_closure_list.cc", | |
| "refcounted_closure_list.h", | |
| ] | |
| configs += [ ":target_defaults" ] | |
| } | |
| static_library("dynamic_flag") { | |
| sources = [ | |
| "dynamic_flag.cc", | |
| "dynamic_flag.h", | |
| ] | |
| configs += [ ":target_defaults" ] | |
| } | |
| static_library("server_configuration_controller") { | |
| sources = [ | |
| "server_configuration_controller.cc", | |
| "server_configuration_controller.h", | |
| ] | |
| configs += [ ":target_defaults" ] | |
| public_deps = [ | |
| "//missive/proto:libmissiveprotorecord", | |
| "//missive/proto:libmissiveprotorecordconstants", | |
| ] | |
| } |