1# 2# Qualcomm Nanoapp Build Rules for CHRE based on Nanohub 3# 4 5################################################################################ 6# 7# Qualcomm CHRE Nanoapp Build Template 8# 9# Invoke this to instantiate a set of Nanoapp post processing build targets. 10# 11# TARGET_NAME_nanoapp - The resulting nanoapp output. 12# 13# Argument List: 14# $1 - TARGET_NAME - The name of the target being built. 15# 16################################################################################ 17 18TARGET_CFLAGS += -DNANOAPP_ID=$(NANOAPP_ID) 19TARGET_CFLAGS += -DNANOAPP_VERSION=$(NANOAPP_VERSION) 20 21ifndef QCOM_CHRE_NANOHUB_NANOAPP_BUILD_TEMPLATE 22define QCOM_CHRE_NANOHUB_NANOAPP_BUILD_TEMPLATE 23 24# TODO: Invoke nanoapp post-processing tools. This simply adds the underlying 25# shared object and archive to the nanoapp target. 26 27.PHONY: $(1)_nanoapp 28all: $(1)_nanoapp 29 30$(1)_nanoapp: $(1) 31 32endef 33endif 34 35# Template Invocation ########################################################## 36 37$(eval $(call QCOM_CHRE_NANOHUB_NANOAPP_BUILD_TEMPLATE, $(TARGET_NAME))) 38