Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd8862d5 authored by Victor Khimenko's avatar Victor Khimenko
Browse files

Support TARGET_TRANSLATE_2ND_ARCH case

Build-only change to support the multilib case where the second arch
is translated (and thus bluetooth library is needed).

"True" multilib case is explicitly not supported.

Test: Build system refactoring CL. Existing unit tests still pass.

BUG=31422117

Change-Id: I09f239d39f5dbe0848a89367327db1ea1074ca39
parent bc551894
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -42,6 +42,13 @@ ifneq (,$(BOARD_BLUETOOTH_USE_TEST_AS_VENDOR))
LOCAL_MODULE := libbt-vendor
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_SHARED_LIBRARIES)
LOCAL_CFLAGS += -DBLUETOOTH_USE_TEST_AS_VENDOR
ifeq ($(TARGET_TRANSLATE_2ND_ARCH),true)
# If its vendor library and secondary arch is translated then only one library
# is provided
ifneq (1,$(words $(LOCAL_MODULE_TARGET_ARCH)))
LOCAL_MULTILIB := first
endif
endif
else
LOCAL_MODULE := test-vendor
endif