Skip to content

Commit

Permalink
Bridge (#21975)
Browse files Browse the repository at this point in the history
* Update bridge app

Cluster definitions are automatically generated from the IDL and
devices automatically route read/writes to the appropriate cluster.

Writes can be intercepted on a per-cluster basis to talk to whatever
bridged backend there is.

* fix build

* fix test outputs

* Split generated files out

Updates userinput backend to run commands on matter thread

* Add PW RPC

* addressing comments

* update for CR comments

* Rename app, move to using STL

* comments

* Fix build, resyled changed

* fix tests

* add zap, fix paths pointing to old app

* Restyled by gn & fix codegen test

* fix idl tests

Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
2 people authored and pull[bot] committed Mar 9, 2023
1 parent 224ce7b commit a610d66
Show file tree
Hide file tree
Showing 70 changed files with 15,836 additions and 0 deletions.
41 changes: 41 additions & 0 deletions examples/dynamic-bridge-app/bridge-common/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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/chip.gni")

import("${chip_root}/examples/common/pigweed/pigweed_rpcs.gni")
import("${chip_root}/src/app/chip_data_model.gni")

chip_data_model("dynamic-bridge-common") {
zap_file = "bridge-app.zap"

zap_pregenerated_dir =
"${chip_root}/zzz_generated/dynamic-bridge-app/zap-generated"
is_server = true

# TODO: the definition of DYNAMIC_ENDPOINT_COUNT needs find a common home!
cflags = [ "-DDYNAMIC_ENDPOINT_COUNT=16" ]
}

if (chip_enable_pw_rpc) {
import("//build_overrides/pigweed.gni")
import("$dir_pw_protobuf_compiler/proto.gni")

pw_proto_library("bridge_service") {
sources = [ "protos/bridge_service.proto" ]
inputs = [ "protos/bridge_service.options" ]
strip_prefix = "protos"
prefix = "bridge_service"
}
}
Loading

0 comments on commit a610d66

Please sign in to comment.