BoardConfig: Set up WITH_DEXPREOPT/DEX_PREOPT_DEFAULT

Without it, the prebuilt jar file could be empty.

Test: Compile and make sure jar file is valid.
Bug: 36279497
Change-Id: I136bdbdf283977888b128797f328594c751669c0
This commit is contained in:
Shuzhen Wang
2017-03-15 16:52:53 -07:00
parent 9a7fcca850
commit 8beb329439

View File

@@ -67,6 +67,18 @@ QCOM_BOARD_PLATFORMS += msm8998
BOARD_HAVE_BLUETOOTH_QCOM := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/google/wahoo/bluetooth
# Enable dex pre-opt to speed up initial boot
ifeq ($(HOST_OS),linux)
ifeq ($(WITH_DEXPREOPT),)
WITH_DEXPREOPT := true
WITH_DEXPREOPT_PIC := true
ifneq ($(TARGET_BUILD_VARIANT),user)
# Retain classes.dex in APK's for non-user builds
DEX_PREOPT_DEFAULT := nostripping
endif
endif
endif
# Camera
TARGET_USES_AOSP := true
BOARD_QTI_CAMERA_32BIT_ONLY := true