• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Audio 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 = audio_world
20NANOAPP_ID = 0x012345678900000c
21NANOAPP_VERSION = 0x00000001
22
23NANOAPP_NAME_STRING = \"Audio\ World\"
24
25# Common Compiler Flags ########################################################
26
27# Include paths.
28COMMON_CFLAGS += -I.
29COMMON_CFLAGS += -I$(CHRE_PREFIX)/external/kiss_fft
30COMMON_CFLAGS += -I$(CHRE_PREFIX)/util/include
31
32# Defines.
33COMMON_CFLAGS += -DNANOAPP_MINIMUM_LOG_LEVEL=CHRE_LOG_LEVEL_DEBUG
34COMMON_CFLAGS += -DFIXED_POINT
35COMMON_CFLAGS += -DCHRE_ASSERTIONS_ENABLED
36
37# Common Source Files ##########################################################
38
39COMMON_SRCS += audio_world.cc
40COMMON_SRCS += $(CHRE_PREFIX)/external/kiss_fft/kiss_fft.c
41COMMON_SRCS += $(CHRE_PREFIX)/external/kiss_fft/kiss_fftr.c
42COMMON_SRCS += $(CHRE_PREFIX)/util/nanoapp/audio.cc
43
44# Permission declarations ######################################################
45
46CHRE_NANOAPP_USES_AUDIO = true
47
48# Makefile Includes ############################################################
49
50include $(CHRE_PREFIX)/build/nanoapp/app.mk
51