xref: /aosp_15_r20/system/chre/apps/audio_stress_test/Makefile (revision 84e339476a462649f82315436d70fd732297a399)
1#
2# Audio Stress Test 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_STRING = \"Audio\ Stress\ Test\"
20NANOAPP_NAME = audio_stress_test
21NANOAPP_ID = 0x012345678900000e
22NANOAPP_VERSION = 0x00000001
23
24# Common Compiler Flags ########################################################
25
26# Defines.
27COMMON_CFLAGS += -DCHRE_NANOAPP_DISABLE_BACKCOMPAT
28COMMON_CFLAGS += -DNANOAPP_MINIMUM_LOG_LEVEL=CHRE_LOG_LEVEL_DEBUG
29COMMON_CFLAGS += -DCHRE_ASSERTIONS_ENABLED
30
31# Common Source Files ##########################################################
32
33COMMON_SRCS += audio_stress_test.cc
34COMMON_SRCS += $(CHRE_PREFIX)/util/nanoapp/audio.cc
35
36# Permission declarations ######################################################
37
38CHRE_NANOAPP_USES_AUDIO = true
39
40# Makefile Includes ############################################################
41
42include $(CHRE_PREFIX)/build/nanoapp/app.mk
43