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
18TARGET_CFLAGS += -DNANOAPP_ID=$(NANOAPP_ID)
19TARGET_CFLAGS += -DNANOAPP_VERSION=$(NANOAPP_VERSION)
20TARGET_CFLAGS += -DNANOAPP_VENDOR_STRING=$(NANOAPP_VENDOR_STRING)
21TARGET_CFLAGS += -DNANOAPP_NAME_STRING=$(NANOAPP_NAME_STRING)
22TARGET_CFLAGS += -DNANOAPP_IS_SYSTEM_NANOAPP=$(NANOAPP_IS_SYSTEM_NANOAPP)
23TARGET_CFLAGS += -I$(CHRE_PREFIX)/platform/shared/include
24TARGET_CFLAGS += -I$(CHRE_PREFIX)/util/include
25
26ifndef GOOGLE_SLPI_NANOAPP_BUILD_TEMPLATE
27define 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
33all: $(1)_nanoapp
34
35$(1)_nanoapp: $(1)
36
37endef
38endif
39
40# Template Invocation ##########################################################
41
42$(eval $(call GOOGLE_SLPI_NANOAPP_BUILD_TEMPLATE, $(TARGET_NAME)))
43