在Android.mk自動檢查某檔案是否存在後加入
define prebuilt-app-file-exist
$(shell test -f $(1) && echo "true")
endef
prebuilt_app_exist := $(call prebuilt-app-file-exist, $(LOCAL_PATH)/your_app.apk)
ifeq ($(strip $(prebuilt_app_exist)),true)
$(info Found prebuilt app, appended)
prebuild_apps_list += your_app_module_name
else
$(info Not found prebuilt app)
endif
留言