Build lyric from source if prebuilt directory is missing.
On select branches, like the camera-stability, the prebuilt directory is missing so we want to make sure that it is building from source even if the flags tell us that a prebuilt should be used. Bug: 380099804 Change-Id: I8832451c1f7ff6d6de3c2991e9f63317966a2f83 Test: Make on camera-stability-dev and verify warning Flag: EXEMPT (not applicable)
This commit is contained in:
parent
fa76c993b7
commit
83e7cc5a7f
1 changed files with 14 additions and 2 deletions
|
@ -20,8 +20,20 @@ endif
|
||||||
# All shipping releases will switch to prebuilts (trunk+)
|
# All shipping releases will switch to prebuilts (trunk+)
|
||||||
# if this condition is not true, then build from source.
|
# if this condition is not true, then build from source.
|
||||||
|
|
||||||
ifneq ($(RELEASE_PIXEL_CAMERA_ENABLE_PREBUILT),true)
|
# Fallback if the prebuilts directory does not exist, then we must
|
||||||
|
# build from source no matter what, so we log a warning
|
||||||
|
ifeq ($(RELEASE_PIXEL_CAMERA_ENABLE_PREBUILT),true)
|
||||||
|
ifeq ($(wildcard vendor/google/services/LyricCameraHAL/prebuilt),)
|
||||||
|
$(warning Lyric prebuilt directory is missing, it will be built from source)
|
||||||
|
BUILD_LYRIC_FROM_SOURCE := true
|
||||||
|
else
|
||||||
|
BUILD_LYRIC_FROM_SOURCE := false
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
BUILD_LYRIC_FROM_SOURCE := true
|
||||||
|
endif # RELEASE_PIXEL_CAMERA_ENABLE_PREBUILT
|
||||||
|
|
||||||
|
ifeq ($(BUILD_LYRIC_FROM_SOURCE),true)
|
||||||
PRODUCT_SOONG_NAMESPACES += \
|
PRODUCT_SOONG_NAMESPACES += \
|
||||||
vendor/google/camera \
|
vendor/google/camera \
|
||||||
vendor/google/camera/google_3a/libs_v4 \
|
vendor/google/camera/google_3a/libs_v4 \
|
||||||
|
@ -41,7 +53,7 @@ PRODUCT_SOONG_NAMESPACES += \
|
||||||
# Calibration tool for debug builds
|
# Calibration tool for debug builds
|
||||||
PRODUCT_PACKAGES_DEBUG += tarasque_test
|
PRODUCT_PACKAGES_DEBUG += tarasque_test
|
||||||
PRODUCT_PACKAGES_DEBUG += ProtoCalibGenerator
|
PRODUCT_PACKAGES_DEBUG += ProtoCalibGenerator
|
||||||
endif # RELEASE_PIXEL_CAMERA_ENABLE_PREBUILT check
|
endif # BUILD_LYRIC_FROM_SOURCE
|
||||||
|
|
||||||
# Init-time log settings for Google 3A
|
# Init-time log settings for Google 3A
|
||||||
PRODUCT_PACKAGES += libg3a_standalone_gabc_rc
|
PRODUCT_PACKAGES += libg3a_standalone_gabc_rc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue