xref: /aosp_15_r20/system/chre/apps/rpc_world/Makefile (revision 84e339476a462649f82315436d70fd732297a399)
1#
2# RPC Service Nanoapp Makefile
3#
4# Environment Checks ###########################################################
5ifeq ($(CHRE_PREFIX),)
6  ifneq ($(ANDROID_BUILD_TOP),)
7    CHRE_PREFIX = $(ANDROID_BUILD_TOP)/system/chre
8  else
9    $(error "You must run 'lunch' to setup ANDROID_BUILD_TOP, or explicitly \
10    define the CHRE_PREFIX environment variable to point to the CHRE root \
11    directory.")
12  endif
13endif
14
15# Nanoapp Configuration ########################################################
16
17NANOAPP_NAME = rpc_world
18NANOAPP_ID = 0x0123456789000013
19NANOAPP_NAME_STRING = \"RPC\ Service\ World\"
20NANOAPP_VERSION = 0x00000001
21
22NANOAPP_PATH = $(CHRE_PREFIX)/apps/rpc_world
23
24
25# Source Code ##################################################################
26
27COMMON_SRCS += $(NANOAPP_PATH)/src/rpc_world_manager.cc
28COMMON_SRCS += $(NANOAPP_PATH)/src/rpc_world.cc
29
30# Compiler Flags ###############################################################
31
32# Defines
33COMMON_CFLAGS += -DNANOAPP_MINIMUM_LOG_LEVEL=CHRE_LOG_LEVEL_DEBUG
34COMMON_CFLAGS += -DCHRE_ASSERTIONS_ENABLED
35
36# Includes
37COMMON_CFLAGS += -I$(NANOAPP_PATH)/inc
38
39# PW RPC protos ################################################################
40
41PW_RPC_SRCS = $(NANOAPP_PATH)/rpc/rpc_world.proto
42
43# Makefile Includes ############################################################
44
45include $(CHRE_PREFIX)/build/nanoapp/app.mk
46