Skip to content

Commit 6fc87d8

Browse files
adigierlubos
authored andcommitted
[nrf fromtree] Move GenericEventManagementTestEventTriggerHandler to separate source set (project-chip#37633)
* Move some files to separate source set Move GenericEventManagementTestEventTriggerHandler to separate source set. Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no> * Add GeneralFaults header to platform library Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no> * [Infineon] Fix examples dependencies Add dependency to src/app/generic-event-management. Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no> --------- Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no> (cherry picked from commit b5ed1b2)
1 parent 846c831 commit 6fc87d8

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

examples/platform/infineon/cyw30739/BUILD.gn

+4-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ static_library("platform") {
2929

3030
public_configs = [ ":${target_name}-config" ]
3131

32-
deps = [ app_data_model ]
32+
deps = [
33+
"${chip_root}/src/app:generic-test-event-trigger-handler",
34+
app_data_model,
35+
]
3336
}
3437

3538
config("platform-config") {

src/app/BUILD.gn

+12-3
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,18 @@ source_set("command-handler-impl") {
426426
]
427427
}
428428

429+
source_set("generic-test-event-trigger-handler") {
430+
sources = [
431+
"GenericEventManagementTestEventTriggerHandler.cpp",
432+
"GenericEventManagementTestEventTriggerHandler.h",
433+
]
434+
435+
public_deps = [
436+
":test-event-trigger",
437+
"${chip_root}/src/platform",
438+
]
439+
}
440+
429441
# Note to developpers, instead of continuously adding files in the app librabry, it is recommand to create smaller source_sets that app can depend on.
430442
# This way, we can have a better understanding of dependencies and other componenets can depend on the different source_sets without needing to depend on the entire app library.
431443
static_library("app") {
@@ -447,8 +459,6 @@ static_library("app") {
447459
"EventManagement.h",
448460
"FailSafeContext.cpp",
449461
"FailSafeContext.h",
450-
"GenericEventManagementTestEventTriggerHandler.cpp",
451-
"GenericEventManagementTestEventTriggerHandler.h",
452462
"OTAUserConsentCommon.h",
453463
"ReadHandler.cpp",
454464
"SafeAttributePersistenceProvider.h",
@@ -470,7 +480,6 @@ static_library("app") {
470480
":constants",
471481
":global-attributes",
472482
":interaction-model",
473-
":test-event-trigger",
474483
"${chip_root}/src/app/data-model",
475484
"${chip_root}/src/app/icd/server:icd-server-config",
476485
"${chip_root}/src/app/util:callbacks",

src/platform/BUILD.gn

+1
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ if (chip_device_platform != "none") {
464464
"../include/platform/ConnectivityManager.h",
465465
"../include/platform/DeviceControlServer.h",
466466
"../include/platform/DeviceInstanceInfoProvider.h",
467+
"../include/platform/GeneralFaults.h",
467468
"../include/platform/GeneralUtils.h",
468469
"../include/platform/KeyValueStoreManager.h",
469470
"../include/platform/KvsPersistentStorageDelegate.h",

0 commit comments

Comments
 (0)