-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
Copy pathBUILD.gn
82 lines (68 loc) · 2.46 KB
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Copyright (c) 2021 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/build.gni")
import("//build_overrides/chip.gni")
import("//build_overrides/efr32_sdk.gni")
import("//build_overrides/pigweed.gni")
import("${build_root}/config/defaults.gni")
import("${efr32_sdk_build_root}/efr32_sdk.gni")
import("${chip_root}/examples/common/pigweed/pigweed_rpcs.gni")
import("${chip_root}/src/platform/device.gni")
import("$dir_pw_build/python.gni")
import("$dir_pw_protobuf_compiler/proto.gni")
import("//build_overrides/nlunit_test.gni")
assert(current_os == "freertos")
efr32_project_dir = "${chip_root}/src/test_driver/efr32"
examples_plat_dir = "${chip_root}/examples/platform/silabs/efr32"
examples_common_plat_dir = "${chip_root}/examples/platform/silabs"
pw_proto_library("nl_test_service") {
sources = [ "${efr32_project_dir}/proto/nl_test.proto" ]
inputs = [ "${efr32_project_dir}/proto/nl_test.options" ]
deps = [ "$dir_pw_protobuf:common_protos" ]
strip_prefix = "${efr32_project_dir}/proto"
prefix = "nl_test_service"
}
efr32_sdk("sdk") {
sources = [
"${efr32_project_dir}/include/CHIPProjectConfig.h",
"${examples_common_plat_dir}/FreeRTOSConfig.h",
]
include_dirs = [
"${chip_root}/src/platform/silabs/efr32",
"${efr32_project_dir}/include",
"${examples_plat_dir}",
"${examples_common_plat_dir}",
]
defines = [
"PW_RPC_ENABLED",
# Thread is built but test driver do not have the NETWORK_COMMISSIONING cluster or zap config.
"_NO_NETWORK_COMMISSIONING_DRIVER_",
]
}
group("efr32") {
deps = [
":nl_test_service.nanopb_rpc", #++++ belongs here or in chip_test_suite->silabs_executable?
":sdk", #++++ belongs here or in chip_test_suite->silabs_executable?
"${chip_root}/src:tests",
]
}
group("runner") {
deps = [
"${efr32_project_dir}/py:pw_test_runner.install",
"${efr32_project_dir}/py:pw_test_runner_wheel",
]
}
group("default") {
deps = [ ":efr32" ]
}