simplify target language selection to remove nasty nested ifeq
This commit is contained in:
parent
e076bd4b33
commit
8cbab86501
@ -39,14 +39,18 @@ GCC_STRIP_HOST_BINARIES:=true
|
|||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
|
|
||||||
ifeq ($(BR2_INSTALL_LIBGCJ),y)
|
|
||||||
TARGET_LANGUAGES:=c,c++,java
|
|
||||||
else
|
|
||||||
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
|
||||||
TARGET_LANGUAGES:=c,c++
|
|
||||||
else
|
|
||||||
TARGET_LANGUAGES:=c
|
TARGET_LANGUAGES:=c
|
||||||
|
|
||||||
|
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
||||||
|
TARGET_LANGUAGES:=$(TARGET_LANGUAGES),c++
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_INSTALL_LIBGCJ),y)
|
||||||
|
TARGET_LANGUAGES:=$(TARGET_LANGUAGES),java
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_INSTALL_OBJC),y)
|
||||||
|
TARGET_LANGUAGES:=$(TARGET_LANGUAGES),objc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user