1#
2# PTS Basic Audio Enable/Disable 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 = pts_audio_enable_disable_test
19NANOAPP_ID = 0x476f6f6754100000
20NANOAPP_NAME_STRING = \"Pts\ Audio\ Enable\ Disable\ Test\"
21NANOAPP_VERSION = 0x00000002
22
23NANOAPP_PATH = $(CHRE_PREFIX)/apps/test/pts/audio_enable_disable_test
24
25# Protobuf Sources #############################################################
26
27NANOPB_EXTENSION = nanopb
28
29NANOPB_SRCS += $(NANOAPP_PATH)/../proto/pts_chre.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/audio_enable_disable_test.cc
37COMMON_SRCS += $(CHRE_PREFIX)/util/nanoapp/callbacks.cc
38
39# Compiler Flags ###############################################################
40
41# Defines
42COMMON_CFLAGS += -DNANOAPP_MINIMUM_LOG_LEVEL=CHRE_LOG_LEVEL_INFO
43
44# Permission declarations ######################################################
45
46CHRE_NANOAPP_USES_AUDIO = true
47
48# Makefile Includes ############################################################
49
50include $(CHRE_PREFIX)/build/nanoapp/app.mk
51