xref: /aosp_15_r20/system/chre/external/pigweed/pw_function.mk (revision 84e339476a462649f82315436d70fd732297a399)
1*84e33947SAndroid Build Coastguard Worker#
2*84e33947SAndroid Build Coastguard Worker# Makefile for Pigweed's function module
3*84e33947SAndroid Build Coastguard Worker#
4*84e33947SAndroid Build Coastguard Worker
5*84e33947SAndroid Build Coastguard Worker# Environment Checks
6*84e33947SAndroid Build Coastguard Workerifeq ($(ANDROID_BUILD_TOP),)
7*84e33947SAndroid Build Coastguard Worker$(error "You should supply an ANDROID_BUILD_TOP environment variable \
8*84e33947SAndroid Build Coastguard Worker         containing a path to the Android source tree. This is typically \
9*84e33947SAndroid Build Coastguard Worker         provided by initializing the Android build environment.")
10*84e33947SAndroid Build Coastguard Workerendif
11*84e33947SAndroid Build Coastguard Worker
12*84e33947SAndroid Build Coastguard Worker# Location of Pigweed
13*84e33947SAndroid Build Coastguard WorkerPIGWEED_DIR = $(ANDROID_BUILD_TOP)/external/pigweed
14*84e33947SAndroid Build Coastguard WorkerPIGWEED_CHRE_DIR = $(ANDROID_BUILD_TOP)/system/chre/external/pigweed
15*84e33947SAndroid Build Coastguard Worker
16*84e33947SAndroid Build Coastguard Worker# Pigweed include paths
17*84e33947SAndroid Build Coastguard WorkerCOMMON_CFLAGS += -I$(PIGWEED_CHRE_DIR)/pw_log_nanoapp/public_overrides
18*84e33947SAndroid Build Coastguard WorkerCOMMON_CFLAGS += -I$(PIGWEED_CHRE_DIR)/pw_assert_nanoapp/public_overrides
19*84e33947SAndroid Build Coastguard WorkerCOMMON_CFLAGS += -I$(PIGWEED_DIR)/pw_assert/public
20*84e33947SAndroid Build Coastguard WorkerCOMMON_CFLAGS += -I$(PIGWEED_DIR)/pw_log/public
21*84e33947SAndroid Build Coastguard WorkerCOMMON_CFLAGS += -I$(PIGWEED_DIR)/pw_function/public
22*84e33947SAndroid Build Coastguard WorkerCOMMON_CFLAGS += -I$(PIGWEED_DIR)/pw_polyfill/public
23*84e33947SAndroid Build Coastguard WorkerCOMMON_CFLAGS += -I$(PIGWEED_DIR)/pw_preprocessor/public
24*84e33947SAndroid Build Coastguard WorkerCOMMON_CFLAGS += -I$(PIGWEED_DIR)/third_party/fuchsia/repo/sdk/lib/fit/include
25*84e33947SAndroid Build Coastguard WorkerCOMMON_CFLAGS += -I$(PIGWEED_DIR)/third_party/fuchsia/repo/sdk/lib/stdcompat/include
26