Home | History | Annotate | Download | only in audio_world
      1 #
      2 # Audio World Nanoapp Makefile
      3 #
      4 
      5 # Environment Checks ###########################################################
      6 
      7 ifeq ($(CHRE_PREFIX),)
      8 ifneq ($(ANDROID_BUILD_TOP),)
      9 CHRE_PREFIX = $(ANDROID_BUILD_TOP)/system/chre
     10 else
     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.")
     14 endif
     15 endif
     16 
     17 # Nanoapp Configuration ########################################################
     18 
     19 NANOAPP_NAME = audio_world
     20 NANOAPP_ID = 0x012345678900000c
     21 NANOAPP_VERSION = 0x00000001
     22 
     23 NANOAPP_NAME_STRING = \"Audio\ World\"
     24 
     25 # Common Compiler Flags ########################################################
     26 
     27 # Include paths.
     28 COMMON_CFLAGS += -I.
     29 COMMON_CFLAGS += -I$(CHRE_PREFIX)/external/kiss_fft
     30 COMMON_CFLAGS += -I$(CHRE_PREFIX)/util/include
     31 
     32 # Defines.
     33 COMMON_CFLAGS += -DNANOAPP_MINIMUM_LOG_LEVEL=CHRE_LOG_LEVEL_DEBUG
     34 COMMON_CFLAGS += -DFIXED_POINT
     35 
     36 # Common Source Files ##########################################################
     37 
     38 COMMON_SRCS += audio_world.cc
     39 COMMON_SRCS += $(CHRE_PREFIX)/external/kiss_fft/kiss_fft.c
     40 COMMON_SRCS += $(CHRE_PREFIX)/external/kiss_fft/kiss_fftr.c
     41 COMMON_SRCS += $(CHRE_PREFIX)/util/nanoapp/audio.cc
     42 
     43 # Makefile Includes ############################################################
     44 
     45 include $(CHRE_PREFIX)/build/nanoapp/app.mk
     46