blob: 9c0a8cb326c02ac9183989c487720a0057b16ced [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("${chip_root}/src/platform/mt793x/lwip/lwip.gni")
import("${chip_root}/build/chip/buildconfig_header.gni")
import("${chip_root}/src/lwip/lwip.gni")
import("${lwip_root}/lwip.gni")
assert(chip_with_lwip)
assert(lwip_platform == "external",
"Unsupported lwIP platform: ${lwip_platform}")
declare_args() {
# Enable lwIP debugging.
lwip_debug = is_debug
}
import("//build_overrides/mt793x_sdk.gni")
import("${mt793x_sdk_build_root}/mt793x_sdk.gni")
config("lwip_config") {
include_dirs = [
"${mt793x_sdk_root}/project/mt7933_hdk/apps/${mt793x_project_name}/inc",
]
}
lwip_target("mt793x_lwip") {
public = [ "${mt793x_sdk_root}/project/mt7933_hdk/apps/${mt793x_project_name}/inc/lwipopts.h" ]
sources = []
public_deps = [ ":lwip_buildconfig" ]
public_deps += [ "${mt793x_sdk_build_root}:mt793x_sdk" ]
public_configs = [
":lwip_config",
"${chip_root}/src:includes",
]
}
group("lwip") {
public_deps = [ ":mt793x_lwip" ]
}