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

Commit 887adabb authored by Logan Chien's avatar Logan Chien
Browse files

Fix PDK build

This commit disables "MediaComponents" in PDK builds because
"MediaComponents" depends on classes from "frameworks/base/core/java"
which are not in PDK builds as well.

Test: Build a target (described in http://b/72961456) with
`platform.zip` built from master FSK source tree.

Bug: 72961456
Change-Id: I79ff96b84d8d7865c83b186490f7587d2a89fbdc
parent 57c91e1e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -16,6 +16,12 @@

LOCAL_PATH := $(call my-dir)

ifneq ($(TARGET_BUILD_PDK),true)
# Build MediaComponents only if this is not a PDK build.  MediaComponents won't
# build in PDK builds because frameworks/base/core/java is not available but
# IMediaSession2.aidl and IMediaSession2Callback.aidl are using classes from
# frameworks/base/core/java.

include $(CLEAR_VARS)

LOCAL_PACKAGE_NAME := MediaComponents
@@ -60,4 +66,6 @@ LOCAL_USE_AAPT2 := true

include $(BUILD_PACKAGE)

endif  # ifneq ($(TARGET_BUILD_PDK),true)

include $(call all-makefiles-under,$(LOCAL_PATH))