1
1
import (" //build_overrides/chip.gni" )
2
2
3
+ static_library (" type_definitions" ) {
4
+ output_name = " libSecureChannelTypes"
5
+
6
+ sources = [
7
+ " Constants.h" ,
8
+ " StatusReport.cpp" ,
9
+ " StatusReport.h" ,
10
+ ]
11
+
12
+ cflags = [ " -Wconversion" ]
13
+
14
+ public_deps = [
15
+ " ${ chip_root } /src/protocols:type_definitions" ,
16
+ " ${ chip_root } /src/system" ,
17
+ ]
18
+
19
+ deps = [ " ${ chip_root } /src/lib/support" ]
20
+ }
21
+
3
22
static_library (" secure_channel" ) {
4
23
output_name = " libSecureChannel"
5
24
@@ -10,7 +29,6 @@ static_library("secure_channel") {
10
29
" CASEServer.h" ,
11
30
" CASESession.cpp" ,
12
31
" CASESession.h" ,
13
- " Constants.h" ,
14
32
" DefaultSessionResumptionStorage.cpp" ,
15
33
" DefaultSessionResumptionStorage.h" ,
16
34
" PASESession.cpp" ,
@@ -24,15 +42,14 @@ static_library("secure_channel") {
24
42
" SessionResumptionStorage.h" ,
25
43
" SimpleSessionResumptionStorage.cpp" ,
26
44
" SimpleSessionResumptionStorage.h" ,
27
- " StatusReport.cpp" ,
28
- " StatusReport.h" ,
29
45
" UnsolicitedStatusHandler.cpp" ,
30
46
" UnsolicitedStatusHandler.h" ,
31
47
]
32
48
33
49
cflags = [ " -Wconversion" ]
34
50
35
51
public_deps = [
52
+ " :type_definitions" ,
36
53
" ${ chip_root } /src/lib/core" ,
37
54
" ${ chip_root } /src/lib/support" ,
38
55
" ${ chip_root } /src/messaging" ,
@@ -41,16 +58,4 @@ static_library("secure_channel") {
41
58
" ${ chip_root } /src/tracing:macros" ,
42
59
" ${ chip_root } /src/transport" ,
43
60
]
44
-
45
- # secure channel requires messaging so it can send messages (e.g. for
46
- # CASE/PASE handshakes). messaging requires secure channel so that it can do
47
- # things like send standalone acks, which are a secure channel concept.
48
- #
49
- # secure channel requires transport so it can deal with sessions. transport
50
- # requires secure channel so it can detect control messages, which are a
51
- # secure channel concept.
52
- allow_circular_includes_from = [
53
- " ${ chip_root } /src/messaging" ,
54
- " ${ chip_root } /src/transport" ,
55
- ]
56
61
}
0 commit comments