1#
2# CHRE Settings Test Nanoapp Makefile
3#
4
5# Environment Checks ###########################################################
6ifeq ($(CHRE_PREFIX),)
7  ifneq ($(ANDROID_BUILD_TOP),)
8    CHRE_PREFIX = $(ANDROID_BUILD_TOP)/system/chre
9  else
10    $(error "You must run 'lunch' to setup ANDROID_BUILD_TOP, or explicitly \
11    define the CHRE_PREFIX environment variable to point to the CHRE root \
12    directory.")
13  endif
14endif
15
16# Nanoapp Configuration ########################################################
17
18NANOAPP_NAME = chre_settings_test
19NANOAPP_ID = 0x476f6f6754000003
20NANOAPP_NAME_STRING = \"Chre\ Settings\ Test\"
21NANOAPP_VERSION = 0x00000001
22
23NANOAPP_PATH = $(CHRE_PREFIX)/apps/test/common/chre_settings_test
24
25# Protobuf Sources #############################################################
26
27NANOPB_EXTENSION = nanopb
28
29NANOPB_SRCS += $(NANOAPP_PATH)/../proto/chre_settings_test.proto
30NANOPB_PROTO_PATH = $(NANOAPP_PATH)/../proto
31NANOPB_INCLUDES = $(NANOPB_PROTO_PATH)
32NANOPB_FLAGS += --proto_path=$(NANOPB_PROTO_PATH)
33
34# Source Code ##################################################################
35
36COMMON_SRCS += $(NANOAPP_PATH)/src/chre_settings_test.cc
37COMMON_SRCS += $(NANOAPP_PATH)/src/chre_settings_test_manager.cc
38COMMON_SRCS += $(NANOAPP_PATH)/src/chre_settings_test_util.cc
39COMMON_SRCS += $(CHRE_PREFIX)/util/nanoapp/callbacks.cc
40
41# Compiler Flags ###############################################################
42
43# Defines
44COMMON_CFLAGS += -DNANOAPP_MINIMUM_LOG_LEVEL=CHRE_LOG_LEVEL_INFO
45
46# Includes
47COMMON_CFLAGS += -I$(NANOAPP_PATH)/inc
48
49# Permission declarations ######################################################
50
51CHRE_NANOAPP_USES_GNSS = true
52CHRE_NANOAPP_USES_WIFI = true
53CHRE_NANOAPP_USES_WWAN = true
54CHRE_NANOAPP_USES_AUDIO = true
55
56# Makefile Includes ############################################################
57
58include $(CHRE_PREFIX)/build/nanoapp/app.mk
59