xref: /aosp_15_r20/system/chre/apps/message_world/Makefile (revision 84e339476a462649f82315436d70fd732297a399)
1#
2# Message World Nanoapp Makefile
3#
4
5# Environment Checks ###########################################################
6
7ifeq ($(CHRE_PREFIX),)
8ifneq ($(ANDROID_BUILD_TOP),)
9CHRE_PREFIX = $(ANDROID_BUILD_TOP)/system/chre
10else
11$(error "You must run 'lunch' to setup ANDROID_BUILD_TOP, or explicitly define \
12         the CHRE_PREFIX environment variable to point to the CHRE root \
13         directory.")
14endif
15endif
16
17# Nanoapp Configuration ########################################################
18
19NANOAPP_NAME = message_world
20NANOAPP_ID = 0x0123456789000003
21NANOAPP_VERSION = 0x00000001
22
23NANOAPP_NAME_STRING = \"Message\ World\"
24
25# Common Compiler Flags ########################################################
26
27COMMON_CFLAGS += -I.
28
29# Common Source Files ##########################################################
30
31COMMON_SRCS += message_world.cc
32
33# Defines.
34COMMON_CFLAGS += -DNANOAPP_MINIMUM_LOG_LEVEL=CHRE_LOG_LEVEL_DEBUG
35COMMON_CFLAGS += -DCHRE_ASSERTIONS_ENABLED
36
37# Makefile Includes ############################################################
38
39include $(CHRE_PREFIX)/build/nanoapp/app.mk
40