chore: enable gn build for lwip_enhanced

enable gn build for lwip_enhanced

close: #I43GEW

Signed-off-by: liujiandong <liujiandong1@huawei.com>
This commit is contained in:
YOUR_NAME 2021-08-02 14:18:56 +08:00
parent ce66a234fc
commit 8696e1c6cb
1 changed files with 12 additions and 8 deletions

View File

@ -30,15 +30,19 @@
import("//kernel/liteos_a/liteos.gni")
group("net") {
deps = [
"lwip-2.1",
"telnet",
]
deps = [ "telnet" ]
if (defined(LOSCFG_NET_LWIP_SACK_2_0)) {
deps += [ "$LITEOSTHIRDPARTY/lwip_enhanced/src" ]
} else if (defined(LOSCFG_NET_LWIP_SACK_2_1)) {
deps += [ "lwip-2.1" ]
}
}
config("public") {
configs = [
"lwip-2.1:public",
"telnet:public",
]
configs = [ "telnet:public" ]
if (defined(LOSCFG_NET_LWIP_SACK_2_0)) {
configs += [ "$LITEOSTHIRDPARTY/lwip_enhanced/src:public" ]
} else if (defined(LOSCFG_NET_LWIP_SACK_2_1)) {
configs += [ "lwip-2.1:public" ]
}
}