Skip to content

Commit

Permalink
Moved door-lock app from chip-all-clusters-common to chip-all-cluster…
Browse files Browse the repository at this point in the history
…s-app (#18289)
  • Loading branch information
vijs authored and pull[bot] committed Dec 19, 2023
1 parent a94fd4b commit 905a88f
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions examples/all-clusters-app/linux/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ source_set("chip-all-clusters-common") {
"${chip_root}/examples/all-clusters-app/all-clusters-common/src/binding-handler.cpp",
"${chip_root}/examples/all-clusters-app/all-clusters-common/src/bridged-actions-stub.cpp",
"${chip_root}/examples/all-clusters-app/all-clusters-common/src/static-supported-modes-manager.cpp",
"${chip_root}/examples/lock-app/linux/src/LockEndpoint.cpp",
"${chip_root}/examples/lock-app/linux/src/LockManager.cpp",
"${chip_root}/examples/lock-app/linux/src/ZCLDoorLockCallbacks.cpp",
"AppOptions.cpp",
"include/tv-callbacks.cpp",
"include/tv-callbacks.h",
Expand All @@ -39,10 +36,8 @@ source_set("chip-all-clusters-common") {
"${chip_root}/src/lib",
]

include_dirs = [
"${chip_root}/examples/all-clusters-app/all-clusters-common/include",
"${chip_root}/examples/lock-app/linux/include",
]
include_dirs =
[ "${chip_root}/examples/all-clusters-app/all-clusters-common/include" ]

cflags = [ "-Wconversion" ]

Expand All @@ -51,12 +46,27 @@ source_set("chip-all-clusters-common") {
}
}

source_set("chip-lock-app-common") {
sources = [
"${chip_root}/examples/lock-app/linux/src/LockEndpoint.cpp",
"${chip_root}/examples/lock-app/linux/src/LockManager.cpp",
"${chip_root}/examples/lock-app/linux/src/ZCLDoorLockCallbacks.cpp",
]

deps = [ "${chip_root}/examples/all-clusters-app/all-clusters-common" ]

include_dirs = [ "${chip_root}/examples/lock-app/linux/include" ]

cflags = [ "-Wconversion" ]
}

if (is_libfuzzer) {
executable("chip-all-clusters-app-fuzzing") {
sources = [ "fuzzing-main.cpp" ]

deps = [
":chip-all-clusters-common",
":chip-lock-app-common",
"${chip_root}/examples/platform/linux:app-main",
]

Expand All @@ -70,6 +80,7 @@ if (is_libfuzzer) {

deps = [
":chip-all-clusters-common",
":chip-lock-app-common",
"${chip_root}/examples/platform/linux:app-main",
]

Expand Down

0 comments on commit 905a88f

Please sign in to comment.