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

Unverified Commit c7d6cc2a authored by Rashed Abdel-Tawab's avatar Rashed Abdel-Tawab Committed by Michael Bestas
Browse files

build: Add build flag to disable CMSDK usage

Change-Id: Ib4d966b1bcc5cf1578a28c0fcd3f9077c14af573
parent 90bbc2a8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1272,7 +1272,7 @@ endef
$(BUILT_SYSTEMIMAGE): $(FULL_SYSTEMIMAGE_DEPS) $(INSTALLED_FILES_FILE)
	$(call build-systemimage-target,$@)

ifndef I_WANT_A_QUAIL_STAR
ifneq ($(TARGET_DISABLE_CMSDK), true)
$(BUILT_SYSTEMIMAGE): checkapi
$(BUILT_SYSTEMIMAGE): checkapi-cm
endif
+6 −0
Original line number Diff line number Diff line
@@ -437,11 +437,13 @@ else # LOCAL_SDK_RES_VERSION
framework_res_package_export := \
    $(call intermediates-dir-for,APPS,framework-res,,COMMON)/package-export.apk

ifneq ($(TARGET_DISABLE_CMSDK), true)
# Avoid possible circular dependency with our platform-res
ifneq ($(LOCAL_IGNORE_SUBDIR), true)
cm_plat_res_package_export := \
    $(call intermediates-dir-for,APPS,org.cyanogenmod.platform-res,,COMMON)/package-export.apk
endif # LOCAL_IGNORE_SUBDIR
endif

# We can't depend directly on the export.apk file; it won't get its
# PRIVATE_ vars set up correctly if we do.  Instead, depend on the
@@ -449,10 +451,12 @@ endif # LOCAL_IGNORE_SUBDIR
framework_res_package_export_deps := \
    $(dir $(framework_res_package_export))src/R.stamp

ifneq ($(TARGET_DISABLE_CMSDK), true)
ifneq ($(LOCAL_IGNORE_SUBDIR), true)
cm_plat_res_package_export_deps := \
    $(dir $(cm_plat_res_package_export))src/R.stamp
endif # LOCAL_IGNORE_SUBDIR
endif

endif # LOCAL_SDK_RES_VERSION
all_library_res_package_exports := \
@@ -465,12 +469,14 @@ all_library_res_package_export_deps := \
    $(foreach lib,$(LOCAL_RES_LIBRARIES),\
        $(call intermediates-dir-for,APPS,$(lib),,COMMON)/src/R.stamp)

ifneq ($(TARGET_DISABLE_CMSDK), true)
ifneq ($(LOCAL_IGNORE_SUBDIR), true)
all_library_res_package_exports += \
    $(cm_plat_res_package_export)
all_library_res_package_export_deps += \
    $(cm_plat_res_package_export_deps)
endif # LOCAL_IGNORE_SUBDIR
endif

$(resource_export_package) $(R_file_stamp) $(LOCAL_BUILT_MODULE): $(all_library_res_package_export_deps)
$(LOCAL_INTERMEDIATE_TARGETS): \