1 # 2 # Nanoapp Build Rules for Google Generic CHRE on SLPI 3 # 4 5 ################################################################################ 6 # 7 # Google Generic CHRE on SLPI 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 18 TARGET_CFLAGS += -DNANOAPP_ID=$(NANOAPP_ID) 19 TARGET_CFLAGS += -DNANOAPP_VERSION=$(NANOAPP_VERSION) 20 TARGET_CFLAGS += -DNANOAPP_VENDOR_STRING=$(NANOAPP_VENDOR_STRING) 21 TARGET_CFLAGS += -DNANOAPP_NAME_STRING=$(NANOAPP_NAME_STRING) 22 TARGET_CFLAGS += -DNANOAPP_IS_SYSTEM_NANOAPP=$(NANOAPP_IS_SYSTEM_NANOAPP) 23 TARGET_CFLAGS += -I$(CHRE_PREFIX)/platform/shared/include 24 TARGET_CFLAGS += -I$(CHRE_PREFIX)/util/include 25 26 ifndef GOOGLE_SLPI_NANOAPP_BUILD_TEMPLATE 27 define GOOGLE_SLPI_NANOAPP_BUILD_TEMPLATE 28 29 # TODO: Invoke signing/formatting post-processing tools. This simply adds the 30 # underlying shared object and archive to the nanoapp target. 31 32 .PHONY: $(1)_nanoapp 33 all: $(1)_nanoapp 34 35 $(1)_nanoapp: $(1) 36 37 endef 38 endif 39 40 # Template Invocation ########################################################## 41 42 $(eval $(call GOOGLE_SLPI_NANOAPP_BUILD_TEMPLATE, $(TARGET_NAME))) 43