blob: 09bc438c23a7cb5d2c4b4f3804470f32ef16aca6 [file] [log] [blame]
# Copyright 2019 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.
source_set("modular_config_constants") {
sources = [ "modular_config_constants.h" ]
}
source_set("modular_config") {
sources = [
"modular_config.cc",
"modular_config.h",
]
public_deps = [
":modular_config_constants",
"//sdk/fidl/fuchsia.modular.session",
"//sdk/lib/fit-promise",
"//zircon/system/ulib/fbl",
]
deps = [
":json_xdr",
"//src/lib/fsl",
"//src/lib/json_parser",
"//src/modular/lib/fidl:clone",
"//src/modular/lib/fidl:json_xdr",
"//third_party/rapidjson",
]
}
source_set("modular_config_accessor") {
sources = [
"modular_config_accessor.cc",
"modular_config_accessor.h",
]
public_deps = [
"//sdk/fidl/fuchsia.modular.session",
"//sdk/lib/syslog/cpp",
"//zircon/system/ulib/fbl",
]
deps = [ ":modular_config" ]
}
source_set("json_xdr") {
sources = [
"modular_config_xdr.cc",
"modular_config_xdr.h",
]
public_deps = [ ":modular_config_constants" ]
deps = [
"//sdk/fidl/fuchsia.modular",
"//sdk/fidl/fuchsia.modular.internal",
"//sdk/fidl/fuchsia.modular.session",
"//src/modular/lib/fidl:json_xdr",
]
# TODO(https://fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
source_set("unittests") {
testonly = true
sources = [
"modular_config_accessor_unittest.cc",
"modular_config_unittest.cc",
"modular_config_xdr_unittest.cc",
]
deps = [
":json_xdr",
":modular_config",
":modular_config_accessor",
":modular_config_constants",
"//sdk/fidl/fuchsia.modular.internal",
"//sdk/fidl/fuchsia.modular.session",
"//src/lib/testing/loop_fixture",
"//src/modular/lib/pseudo_dir:pseudo_dir_server",
"//src/modular/lib/pseudo_dir:pseudo_dir_utils",
"//third_party/googletest:gtest",
"//third_party/rapidjson",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
]
# TODO(https://fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}