@@ -17,6 +17,10 @@ import("//build_overrides/nlassert.gni")
17
17
import (" ${ chip_root } /src/crypto/crypto.gni" )
18
18
import (" ${ chip_root } /src/platform/device.gni" )
19
19
20
+ declare_args () {
21
+ chip_build_example_creds = true
22
+ }
23
+
20
24
static_library (" credentials" ) {
21
25
output_name = " libCredentials"
22
26
@@ -47,16 +51,21 @@ static_library("credentials") {
47
51
" attestation_verifier/DeviceAttestationDelegate.h" ,
48
52
" attestation_verifier/DeviceAttestationVerifier.cpp" ,
49
53
" attestation_verifier/DeviceAttestationVerifier.h" ,
50
- " examples/DeviceAttestationCredsExample.cpp" ,
51
- " examples/DeviceAttestationCredsExample.h" ,
52
- " examples/ExampleDACs.cpp" ,
53
- " examples/ExampleDACs.h" ,
54
- " examples/ExamplePAI.cpp" ,
55
- " examples/ExamplePAI.h" ,
56
- " examples/LastKnownGoodTimeCertificateValidityPolicyExample.h" ,
57
- " examples/StrictCertificateValidityPolicyExample.h" ,
58
54
]
59
55
56
+ if (chip_build_example_creds ) {
57
+ sources += [
58
+ " examples/DeviceAttestationCredsExample.cpp" ,
59
+ " examples/DeviceAttestationCredsExample.h" ,
60
+ " examples/ExampleDACs.cpp" ,
61
+ " examples/ExampleDACs.h" ,
62
+ " examples/ExamplePAI.cpp" ,
63
+ " examples/ExamplePAI.h" ,
64
+ " examples/LastKnownGoodTimeCertificateValidityPolicyExample.h" ,
65
+ " examples/StrictCertificateValidityPolicyExample.h" ,
66
+ ]
67
+ }
68
+
60
69
# TODO: These tests files should be removed after the DeviceAttestationCredsExample implementation
61
70
# is changed to generate it's own credentials instead of using Test credentials.
62
71
# For some platforms test builds, which are bilding monolithic test library these files are not needed.
0 commit comments