1#
2# Wifi 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 = wifi_world
20NANOAPP_ID = 0x0123456789000006
21NANOAPP_VERSION = 0x00000000
22
23NANOAPP_NAME_STRING = \"Wi-Fi\ World\"
24
25# Common Compiler Flags ########################################################
26
27COMMON_CFLAGS += -I.
28
29COMMON_CFLAGS += -DNANOAPP_MINIMUM_LOG_LEVEL=CHRE_LOG_LEVEL_DEBUG
30COMMON_CFLAGS += -DLOG_TAG=\"[WifiWorld]\"
31COMMON_CFLAGS += -DCHRE_ASSERTIONS_ENABLED
32
33# Common Source Files ##########################################################
34
35COMMON_SRCS += wifi_world.cc
36COMMON_SRCS += $(CHRE_PREFIX)/util/nanoapp/wifi.cc
37
38# Permission declarations ######################################################
39
40CHRE_NANOAPP_USES_WIFI = true
41
42# Makefile Includes ############################################################
43
44include $(CHRE_PREFIX)/build/nanoapp/app.mk
45