Avoid duplication, use if function instead of ifeq
Change-Id: I1ea52a43278f2e9971987037e80842f8c55a8782
This commit is contained in:
@@ -95,12 +95,13 @@ $(eval $(call gb_Library_use_libraries,sd,\
|
|||||||
))
|
))
|
||||||
|
|
||||||
ifeq ($(OS), LINUX)
|
ifeq ($(OS), LINUX)
|
||||||
ifeq ($(ENABLE_AVAHI),TRUE)
|
|
||||||
$(eval $(call gb_Library_use_externals,sd,\
|
$(eval $(call gb_Library_use_externals,sd,\
|
||||||
boost_headers \
|
boost_headers \
|
||||||
libxml2 \
|
libxml2 \
|
||||||
dbus \
|
dbus \
|
||||||
avahi \
|
$(if $(ENABLE_AVAHI), \
|
||||||
|
avahi \
|
||||||
|
) \
|
||||||
))
|
))
|
||||||
else
|
else
|
||||||
$(eval $(call gb_Library_use_externals,sd,\
|
$(eval $(call gb_Library_use_externals,sd,\
|
||||||
@@ -109,13 +110,6 @@ $(eval $(call gb_Library_use_externals,sd,\
|
|||||||
dbus \
|
dbus \
|
||||||
))
|
))
|
||||||
endif
|
endif
|
||||||
else
|
|
||||||
$(eval $(call gb_Library_use_externals,sd,\
|
|
||||||
boost_headers \
|
|
||||||
libxml2 \
|
|
||||||
dbus \
|
|
||||||
))
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(OS),WNT)
|
ifeq ($(OS),WNT)
|
||||||
$(eval $(call gb_Library_use_system_win32_libs,sd,\
|
$(eval $(call gb_Library_use_system_win32_libs,sd,\
|
||||||
|
Reference in New Issue
Block a user