mirror of
https://github.com/espressif/openthread.git
synced 2026-08-02 00:57:47 +00:00
[gn] fix build with openthread_enable_core_config_args is false (#12265)
This commit fixes building with gn when openthread_enable_core_config_args is false, which causes openthread_config_tcp_enable undefined.
This commit is contained in:
@@ -45,6 +45,7 @@ check_build()
|
||||
|
||||
main()
|
||||
{
|
||||
check_build --args="use_clang=true openthread_project_core_config_file=\"../examples/platforms/simulation/openthread-core-simulation-config.h\""
|
||||
for thread_version in 1.4 1.1; do
|
||||
for use_clang in true false; do
|
||||
check_build --args="use_clang=$use_clang openthread_config_thread_version=\"$thread_version\""
|
||||
|
||||
+2
-2
@@ -785,7 +785,7 @@ group("libopenthread_platform") {
|
||||
|
||||
static_library("libopenthread-ftd") {
|
||||
sources = openthread_core_sources
|
||||
if (openthread_config_tcp_enable) {
|
||||
if (openthread_enable_core_config_args && openthread_config_tcp_enable) {
|
||||
deps = [ "../../third_party/tcplp" ]
|
||||
}
|
||||
public_deps = [ ":libopenthread_platform" ]
|
||||
@@ -794,7 +794,7 @@ static_library("libopenthread-ftd") {
|
||||
|
||||
static_library("libopenthread-mtd") {
|
||||
sources = openthread_core_sources
|
||||
if (openthread_config_tcp_enable) {
|
||||
if (openthread_enable_core_config_args && openthread_config_tcp_enable) {
|
||||
deps = [ "../../third_party/tcplp" ]
|
||||
}
|
||||
public_deps = [ ":libopenthread_platform" ]
|
||||
|
||||
Reference in New Issue
Block a user