• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# RPC Service Test 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_service_test
18NANOAPP_ID = 0x476f6f675400000b
19NANOAPP_NAME_STRING = \"RPC\ Service\ Test\"
20NANOAPP_VERSION = 0x00000001
21
22NANOAPP_PATH = $(CHRE_PREFIX)/apps/test/common/rpc_service_test
23TEST_SHARED_PATH = $(CHRE_PREFIX)/apps/test/common/shared
24
25# TODO(b/210138227) Enable PW RPC by default once build system is fixed
26NANOAPP_PW_RPC_ENABLED = false
27
28# Source Code ##################################################################
29
30COMMON_SRCS += $(NANOAPP_PATH)/src/rpc_service_manager.cc
31COMMON_SRCS += $(NANOAPP_PATH)/src/rpc_service_test.cc
32
33# Compiler Flags ###############################################################
34
35# Defines
36COMMON_CFLAGS += -DNANOAPP_MINIMUM_LOG_LEVEL=CHRE_LOG_LEVEL_INFO
37
38# Includes
39COMMON_CFLAGS += -I$(TEST_SHARED_PATH)/inc
40COMMON_CFLAGS += -I$(NANOAPP_PATH)/inc
41
42# PW RPC protos ################################################################
43
44ifeq (NANOAPP_PW_RPC_ENABLED, true)
45PW_RPC_SRCS = $(ANDROID_BUILD_TOP)/external/pigweed/pw_rpc/echo.proto
46COMMON_CFLAGS += -DPW_RPC_SERVICE_ENABLED
47endif
48
49# Makefile Includes ############################################################
50
51include $(CHRE_PREFIX)/build/nanoapp/app.mk
52