-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Define per-cluster server and client targets in GN #36917
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright (c) 2024 Project CHIP Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import("//build_overrides/chip.gni") | ||
|
||
source_set("server") { | ||
deps = [ | ||
"${chip_root}/src/app", | ||
"${chip_root}/src/app/server", | ||
"${chip_root}/src/app/util:binding-table-headers", | ||
] | ||
sources = [ | ||
"BindingManager.cpp", | ||
"BindingManager.h", | ||
"PendingNotificationMap.cpp", | ||
"PendingNotificationMap.h", | ||
"bindings.cpp", | ||
"bindings.h", | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright (c) 2024 Project CHIP Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import("//build_overrides/chip.gni") | ||
|
||
source_set("server") { | ||
deps = [ | ||
"${chip_root}/src/app", | ||
"${chip_root}/src/app/util:ember-api-headers", | ||
] | ||
sources = [ | ||
"descriptor.cpp", | ||
"descriptor.h", | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright (c) 2024 Project CHIP Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import("//build_overrides/chip.gni") | ||
|
||
source_set("server") { | ||
deps = [ | ||
"${chip_root}/src/app", | ||
"${chip_root}/src/app/server", # Only DefaultThreadNetworkDirectoryServer | ||
# depends on this, could split into a | ||
# separate target | ||
] | ||
sources = [ | ||
"DefaultThreadNetworkDirectoryStorage.cpp", | ||
"DefaultThreadNetworkDirectoryStorage.h", | ||
"ThreadNetworkDirectoryStorage.h", | ||
"thread-network-directory-server.cpp", | ||
"thread-network-directory-server.h", | ||
] | ||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,23 @@ | ||||||
# Copyright (c) 2024 Project CHIP Authors | ||||||
# | ||||||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
# you may not use this file except in compliance with the License. | ||||||
# You may obtain a copy of the License at | ||||||
# | ||||||
# http://www.apache.org/licenses/LICENSE-2.0 | ||||||
# | ||||||
# Unless required by applicable law or agreed to in writing, software | ||||||
# distributed under the License is distributed on an "AS IS" BASIS, | ||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
# See the License for the specific language governing permissions and | ||||||
# limitations under the License. | ||||||
|
||||||
import("//build_overrides/chip.gni") | ||||||
|
||||||
source_set("server") { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
deps = [ "${chip_root}/src/app" ] | ||||||
sources = [ | ||||||
"wifi-network-management-server.cpp", | ||||||
"wifi-network-management-server.h", | ||||||
] | ||||||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,19 +74,6 @@ source_set("ota-requestor-test-srcs") { | |
] | ||
} | ||
|
||
source_set("thread-network-directory-test-srcs") { | ||
sources = [ | ||
"${chip_root}/src/app/clusters/thread-network-directory-server/DefaultThreadNetworkDirectoryStorage.cpp", | ||
"${chip_root}/src/app/clusters/thread-network-directory-server/DefaultThreadNetworkDirectoryStorage.h", | ||
"${chip_root}/src/app/clusters/thread-network-directory-server/ThreadNetworkDirectoryStorage.h", | ||
] | ||
|
||
public_deps = [ | ||
"${chip_root}/src/app/common:cluster-objects", | ||
"${chip_root}/src/lib/core", | ||
] | ||
} | ||
|
||
source_set("time-sync-data-provider-test-srcs") { | ||
sources = [ "${chip_root}/src/app/clusters/time-synchronization-server/TimeSyncDataProvider.cpp" ] | ||
|
||
|
@@ -244,10 +231,10 @@ chip_test_suite("tests") { | |
":operational-state-test-srcs", | ||
":ota-requestor-test-srcs", | ||
":power-cluster-test-srcs", | ||
":thread-network-directory-test-srcs", | ||
":time-sync-data-provider-test-srcs", | ||
"${chip_root}/src/app", | ||
"${chip_root}/src/app:attribute-persistence", | ||
"${chip_root}/src/app/clusters/thread-network-directory:server", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should name the targets for cluster foo as |
||
"${chip_root}/src/app/common:cluster-objects", | ||
"${chip_root}/src/app/data-model-provider/tests:encode-decode", | ||
"${chip_root}/src/app/icd/client:handler", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,3 +75,11 @@ source_set("callbacks") { | |
"${chip_root}/src/app:paths", | ||
] | ||
} | ||
|
||
source_set("binding-table-headers") { | ||
sources = [ "binding-table.h" ] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should not split cpp from header. Even this is what happens in practice, this allows for circular/odd dependencies. We should add source sets only when we are able to fix things. |
||
} | ||
|
||
source_set("ember-api-headers") { | ||
sources = [ "ember-api.h" ] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should not have a header without the implementation cpp unless that header defines constants only. I.e. if I depend on |
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.