[build] exclude URL library where unused (#5351)

This sets the URL library to be included only in POSIX builds,
removing unnecessary dependencies.
This commit is contained in:
Moandor
2020-08-07 10:23:55 -07:00
committed by GitHub
parent b06f4cad20
commit 45713b0dd2
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -32,7 +32,10 @@ SUBDIRS = \
hdlc \
platform \
spinel \
url \
$(NULL)
if OPENTHREAD_PLATFORM_POSIX
SUBDIRS += url
endif
include $(abs_top_nlbuild_autotools_dir)/automake/post.am
+1 -1
View File
@@ -26,7 +26,7 @@
# POSSIBILITY OF SUCH DAMAGE.
#
add_library(openthread-url
add_library(openthread-url EXCLUDE_FROM_ALL
url.cpp
)