aboutsummaryrefslogtreecommitdiff
path: root/apps/audio_world/Makefile
blob: 67a9fb984f054e76f323610680fee8fe9a195ccc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#
# Audio World Nanoapp Makefile
#

# Environment Checks ###########################################################

ifeq ($(CHRE_PREFIX),)
ifneq ($(ANDROID_BUILD_TOP),)
CHRE_PREFIX = $(ANDROID_BUILD_TOP)/system/chre
else
$(error "You must run 'lunch' to setup ANDROID_BUILD_TOP, or explicitly define \
         the CHRE_PREFIX environment variable to point to the CHRE root \
         directory.")
endif
endif

# Nanoapp Configuration ########################################################

NANOAPP_NAME = audio_world
NANOAPP_ID = 0x012345678900000c
NANOAPP_VERSION = 0x00000001

NANOAPP_NAME_STRING = \"Audio\ World\"

# Common Compiler Flags ########################################################

# Include paths.
COMMON_CFLAGS += -I.
COMMON_CFLAGS += -I$(CHRE_PREFIX)/external/kiss_fft
COMMON_CFLAGS += -I$(CHRE_PREFIX)/util/include

# Defines.
COMMON_CFLAGS += -DNANOAPP_MINIMUM_LOG_LEVEL=CHRE_LOG_LEVEL_DEBUG
COMMON_CFLAGS += -DFIXED_POINT

# Common Source Files ##########################################################

COMMON_SRCS += audio_world.cc
COMMON_SRCS += $(CHRE_PREFIX)/external/kiss_fft/kiss_fft.c
COMMON_SRCS += $(CHRE_PREFIX)/external/kiss_fft/kiss_fftr.c
COMMON_SRCS += $(CHRE_PREFIX)/util/nanoapp/audio.cc

# Permission declarations ######################################################

CHRE_NANOAPP_USES_AUDIO = true

# Makefile Includes ############################################################

include $(CHRE_PREFIX)/build/nanoapp/app.mk