blob: 646b6456107f95a12bd9d753b4d32b327f9c338e [file] [log] [blame]
# Copyright (c) 2020 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("pigweed_rpcs.gni")
config("default_config") {
include_dirs = [
".",
"..",
]
}
import("//build_overrides/pigweed.gni")
import("$dir_pw_protobuf_compiler/proto.gni")
pw_proto_library("echo_service") {
sources = [ "$dir_pw_rpc/echo.proto" ]
inputs = [ "$dir_pw_rpc/echo.options" ]
deps = [ "$dir_pw_protobuf:common_protos" ]
strip_prefix = "$dir_pw_rpc"
prefix = "echo_service"
}
pw_proto_library("actions_service") {
sources = [ "protos/actions_service.proto" ]
inputs = [ "protos/actions_service.options" ]
deps = [ "$dir_pw_protobuf:common_protos" ]
strip_prefix = "protos"
prefix = "actions_service"
}
pw_proto_library("attributes_service") {
sources = [ "protos/attributes_service.proto" ]
inputs = [ "protos/attributes_service.options" ]
deps = [ "$dir_pw_protobuf:common_protos" ]
strip_prefix = "protos"
prefix = "attributes_service"
}
pw_proto_library("boolean_state_service") {
sources = [ "protos/boolean_state_service.proto" ]
deps = [ "$dir_pw_protobuf:common_protos" ]
strip_prefix = "protos"
prefix = "boolean_state_service"
}
pw_proto_library("device_service") {
sources = [ "protos/device_service.proto" ]
inputs = [ "protos/device_service.options" ]
deps = [ "$dir_pw_protobuf:common_protos" ]
strip_prefix = "protos"
prefix = "device_service"
}
pw_proto_library("descriptor_service") {
sources = [ "protos/descriptor_service.proto" ]
deps = [ "$dir_pw_protobuf:common_protos" ]
strip_prefix = "protos"
prefix = "descriptor_service"
}
pw_proto_library("button_service") {
sources = [ "protos/button_service.proto" ]
deps = [ "$dir_pw_protobuf:common_protos" ]
strip_prefix = "protos"
prefix = "button_service"
}
pw_proto_library("fabric_sync_common") {
sources = [ "protos/fabric_sync_common.proto" ]
strip_prefix = "protos"
prefix = "fabric_sync_common"
}
pw_proto_library("fabric_admin_service") {
sources = [ "protos/fabric_admin_service.proto" ]
inputs = [ "protos/fabric_admin_service.options" ]
deps = [
":fabric_sync_common",
"$dir_pw_protobuf:common_protos",
]
strip_prefix = "protos"
prefix = "fabric_admin_service"
}
pw_proto_library("fabric_bridge_service") {
sources = [ "protos/fabric_bridge_service.proto" ]
inputs = [ "protos/fabric_bridge_service.options" ]
deps = [
":fabric_sync_common",
"$dir_pw_protobuf:common_protos",
]
strip_prefix = "protos"
prefix = "fabric_bridge_service"
}
pw_proto_library("lighting_service") {
sources = [ "protos/lighting_service.proto" ]
deps = [ "$dir_pw_protobuf:common_protos" ]
strip_prefix = "protos"
prefix = "lighting_service"
}
pw_proto_library("locking_service") {
sources = [ "protos/locking_service.proto" ]
deps = [ "$dir_pw_protobuf:common_protos" ]
strip_prefix = "protos"
prefix = "locking_service"
}
pw_proto_library("ot_cli_service") {
sources = [ "protos/ot_cli_service.proto" ]
inputs = [ "protos/ot_cli_service.options" ]
deps = [ "$dir_pw_protobuf:common_protos" ]
strip_prefix = "protos"
prefix = "ot_cli_service"
}
pw_proto_library("thread_service") {
sources = [ "protos/thread_service.proto" ]
inputs = [ "protos/thread_service.options" ]
deps = [ "$dir_pw_protobuf:common_protos" ]
strip_prefix = "protos"
prefix = "thread_service"
}
pw_proto_library("wifi_service") {
sources = [ "protos/wifi_service.proto" ]
deps = [ "$dir_pw_protobuf:common_protos" ]
strip_prefix = "protos"
prefix = "wifi_service"
}
pw_source_set("rpc_services") {
public_configs = [ ":default_config" ]
}
pw_source_set("system_rpc_server") {
sources = [ "system_rpc_server.cc" ]
deps = [
"$dir_pw_rpc/system_server:facade",
dir_pw_log,
]
public_deps = [
"$dir_pw_hdlc:default_addresses",
"$dir_pw_hdlc:rpc_channel_output",
"$dir_pw_stream:sys_io_stream",
]
public_configs = [ ":default_config" ]
}