Kaydet (Commit) 88143d96 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Attempt to clarify nested conditional mess

Change-Id: I2c174e23b3f995d819ff8ab72281b386b26c1cfe
üst 1feb672b
...@@ -13,25 +13,46 @@ $(eval $(call gb_ExternalProject_register_targets,openssl,\ ...@@ -13,25 +13,46 @@ $(eval $(call gb_ExternalProject_register_targets,openssl,\
build \ build \
)) ))
OPENSSL_PLATFORM := $(if $(filter LINUX FREEBSD ANDROID,$(OS)),\ # For multi-line conditionals, align the $(if and the corresponding ),
# putting the latter on a line of its own. Also put the "else" comma
# on a line of its own. Hopefully should make the logic more clear.
OPENSSL_PLATFORM := \
$(if $(filter LINUX FREEBSD ANDROID,$(OS)),\
$(if $(filter I,$(CPU)),\ $(if $(filter I,$(CPU)),\
$(if $(filter GNU/kFreeBSD,$(shell uname)),debian-kfreebsd-i386,linux-elf),\ $(if $(filter GNU/kFreeBSD,$(shell uname)),debian-kfreebsd-i386,linux-elf)\
,\
$(if $(filter X,$(CPU)),\ $(if $(filter X,$(CPU)),\
$(if $(filter GNU/kFreeBSD,$(shell uname)),debian-kfreebsd-amd64,\ $(if $(filter GNU/kFreeBSD,$(shell uname)),\
$(if $(filter TRUE, $(ENABLE_DBGUTIL)), debug-linux-generic64, linux-generic64)),\ debian-kfreebsd-amd64\
$(if $(filter TRUE, $(ENABLE_DBGUTIL)), debug-linux-generic32, linux-generic32))),\ ,\
$(if $(filter TRUE, $(ENABLE_DBGUTIL)), debug-linux-generic64, linux-generic64)\
)\
,\
$(if $(filter TRUE, $(ENABLE_DBGUTIL)), debug-linux-generic32, linux-generic32)\
)\
)\
,\
$(if $(filter SOLARIS,$(OS)),\ $(if $(filter SOLARIS,$(OS)),\
$(if $(filter INTEL,$(CPUNAME)),\ $(if $(filter INTEL,$(CPUNAME)),\
$(if $(filter X,$(CPU)),\ $(if $(filter X,$(CPU)),solaris64-x86_64-cc,solaris-x86-cc)\
solaris64-x86_64-cc,solaris-x86-cc),\ ,\
solaris-sparcv9-cc),\ solaris-sparcv9-cc\
)\
,\
$(if $(filter IOS,$(OS)),\ $(if $(filter IOS,$(OS)),\
ios-armv7,\ ios-armv7\
,\
$(if $(filter WNT,$(OS)),\ $(if $(filter WNT,$(OS)),\
$(if $(filter GCC,$(COM)),\ $(if $(filter GCC,$(COM)),\
mingw,\ mingw\
$(if $(filter I,$(CPU)),\ ,\
VC-WIN32,VC-WIN64A)))))) $(if $(filter I,$(CPU)),VC-WIN32,VC-WIN64A)\
)\
)\
)\
)\
)
ifeq ($(COM),MSC) ifeq ($(COM),MSC)
$(call gb_ExternalProject_get_state_target,openssl,build): $(call gb_ExternalProject_get_state_target,openssl,build):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment