@@ -22,10 +22,18 @@ import("${chip_root}/src/lib/core/core.gni")
22
22
23
23
assert (chip_build_tools )
24
24
25
+ import (" ${ chip_root } /examples/common/pigweed/pigweed_rpcs.gni" )
26
+
27
+ if (chip_enable_pw_rpc ) {
28
+ import (" //build_overrides/pigweed.gni" )
29
+ import (" $dir_pw_build /target_types.gni" )
30
+ }
31
+
25
32
config (" config" ) {
26
33
include_dirs = [
27
34
" ." ,
28
35
" ${ chip_root } /examples/common" ,
36
+ " ${ chip_root } /examples/platform/linux" ,
29
37
" ${ chip_root } /zzz_generated/app-common/app-common" ,
30
38
" ${ chip_root } /zzz_generated/chip-tool" ,
31
39
" ${ chip_root } /src/lib" ,
@@ -39,6 +47,10 @@ config("config") {
39
47
}
40
48
41
49
cflags = [ " -Wconversion" ]
50
+
51
+ if (chip_enable_pw_rpc ) {
52
+ defines += [ " PW_RPC_ENABLED" ]
53
+ }
42
54
}
43
55
44
56
static_library (" fabric-admin-utils" ) {
@@ -59,6 +71,7 @@ static_library("fabric-admin-utils") {
59
71
" commands/common/HexConversion.h" ,
60
72
" commands/common/RemoteDataModelLogger.cpp" ,
61
73
" commands/common/RemoteDataModelLogger.h" ,
74
+ " commands/fabric-sync/FabricSyncCommand.cpp" ,
62
75
" commands/pairing/OpenCommissioningWindowCommand.cpp" ,
63
76
" commands/pairing/OpenCommissioningWindowCommand.h" ,
64
77
" commands/pairing/PairingCommand.cpp" ,
@@ -95,6 +108,40 @@ static_library("fabric-admin-utils") {
95
108
96
109
public_configs = [ " :config" ]
97
110
111
+ if (chip_enable_pw_rpc ) {
112
+ defines = [
113
+ " PW_RPC_FABRIC_ADMIN_SERVICE=1" ,
114
+ " PW_RPC_FABRIC_BRIDGE_SERVICE=1" ,
115
+ ]
116
+
117
+ sources += [
118
+ " ${ chip_root } /examples/platform/linux/RpcClientProcessor.cpp" ,
119
+ " ${ chip_root } /examples/platform/linux/RpcClientProcessor.h" ,
120
+ " ${ chip_root } /examples/platform/linux/system_rpc_server.cc" ,
121
+ " rpc/RpcClient.cpp" ,
122
+ " rpc/RpcClient.h" ,
123
+ " rpc/RpcServer.cpp" ,
124
+ " rpc/RpcServer.h" ,
125
+ ]
126
+
127
+ deps += [
128
+ " $dir_pw_hdlc :default_addresses" ,
129
+ " $dir_pw_hdlc :rpc_channel_output" ,
130
+ " $dir_pw_log " ,
131
+ " $dir_pw_rpc :server" ,
132
+ " $dir_pw_rpc /system_server:facade" ,
133
+ " $dir_pw_rpc /system_server:socket" ,
134
+ " $dir_pw_stream :socket_stream" ,
135
+ " $dir_pw_sync :mutex" ,
136
+ " ${ chip_root } /config/linux/lib/pw_rpc:pw_rpc" ,
137
+ " ${ chip_root } /examples/common/pigweed:fabric_admin_service.nanopb_rpc" ,
138
+ " ${ chip_root } /examples/common/pigweed:fabric_bridge_service.nanopb_rpc" ,
139
+ " ${ chip_root } /examples/common/pigweed:rpc_services" ,
140
+ ]
141
+
142
+ deps += pw_build_LINK_DEPS
143
+ }
144
+
98
145
if (chip_enable_transport_trace ) {
99
146
public_deps +=
100
147
[ " ${ chip_root } /examples/common/tracing:trace_handlers_decoder" ]
0 commit comments