1 # Copyright (c) 2020 Project CHIP Authors
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 import("//build/config/defaults.gni")
16 import("//build_overrides/chip.gni")
17 import("//build_overrides/qpg6100_sdk.gni")
18 import("${qpg6100_sdk_build_root}/qpg6100_executable.gni")
19 import("${qpg6100_sdk_build_root}/qpg6100_sdk.gni")
21 assert(current_os == "freertos")
23 examples_plat_dir = "${chip_root}/examples/platform/qpg6100"
27 "${chip_root}/src/platform/qpg6100",
28 "${examples_plat_dir}/project_include",
29 "${chip_root}/src/app/util",
32 sources = [ "${examples_plat_dir}/project_include/CHIPProjectConfig.h" ]
36 defines += [ "BUILD_RELEASE=0" ]
38 defines += [ "BUILD_RELEASE=1" ]
42 qpg6100_executable("shell_qpg6100") {
45 output_name = "shell-qpg6100.out"
49 "${chip_root}/examples/shell/shell_common",
50 "${chip_root}/src/lib",
51 "${chip_root}/src/lib/shell",
52 "${chip_root}/src/setup_payload",
54 # OpenThread to be enabled
55 # https://github.com/project-chip/connectedhomeip/issues/293
58 include_dirs += [ "${chip_root}/src/app/util" ]
61 "${examples_plat_dir}/project_include/CHIPProjectConfig.h",
62 "${examples_plat_dir}/util/streamer/streamer_qpg6100.cpp",
66 output_dir = root_out_dir
68 ldscript = "${qpg6100_sdk_root}/qpg6100/ldscripts/chip-qpg6100-example.ld"
70 ldflags = [ "-T" + rebase_path(ldscript, root_build_dir) ]
72 "QPG6100_SHELL_STREAMER",
73 "SHELL_STREAMER_APP_SPECIFIC",
78 deps = [ ":shell_qpg6100" ]