blob: 6c3dd36474cdb61aacb1d8dd00f73d9f8e2e85e5 [file] [log] [blame]
# Copyright (c) 2020 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/qpg_sdk.gni")
import("//third_party/qpg_sdk/qpg_sdk.gni")
import("//build/chip/tests.gni")
assert(current_os == "freertos")
declare_args() {
}
examples_plat_dir = "//examples/platform/qpg"
qpg_sdk("sdk") {
include_dirs = [
"//src/platform/qpg",
"${examples_plat_dir}/project_include",
]
}
static_library("qpg") {
deps = [
"//src/app/server",
"//src/controller",
"//src/lib",
]
if (chip_build_tests) {
deps += [ "${chip_root}/src:tests" ]
}
output_name = "libMatterStack"
output_dir = "${root_out_dir}/lib"
complete_static_lib = true
}
group("default") {
deps = [
":qpg",
"//src/setup_payload",
"//third_party/openthread/platforms:libopenthread-platform",
"//third_party/openthread/platforms:libopenthread-platform-utils",
"//third_party/openthread/repo:libopenthread-cli-mtd",
"//third_party/openthread/repo:libopenthread-mtd",
]
}