blob: a687ab84274a47879f184b7bcd5b5e9a6f62f34d [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/freertos.gni")
template("freertos_target") {
freertos_target_name = target_name
_freertos_root = "${freertos_root}/repo"
config("${freertos_target_name}_config") {
include_dirs = [ "${_freertos_root}/include" ]
}
source_set(freertos_target_name) {
forward_variables_from(invoker, "*")
if (!defined(sources)) {
sources = []
}
sources += [
"${_freertos_root}/croutine.c",
"${_freertos_root}/event_groups.c",
"${_freertos_root}/list.c",
"${_freertos_root}/queue.c",
"${_freertos_root}/stream_buffer.c",
"${_freertos_root}/tasks.c",
"${_freertos_root}/timers.c",
]
if (!defined(configs)) {
configs = []
}
if (!defined(public_configs)) {
public_configs = []
}
public_configs += [ ":${freertos_target_name}_config" ]
}
}