xref: /aosp_15_r20/system/chre/external/pigweed/pw_trace.mk (revision 84e339476a462649f82315436d70fd732297a399)
1*84e33947SAndroid Build Coastguard Worker#
2*84e33947SAndroid Build Coastguard Worker# Makefile for Pigweed's trace 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 Worker
15*84e33947SAndroid Build Coastguard Worker# Pigweed include paths
16*84e33947SAndroid Build Coastguard WorkerCOMMON_CFLAGS += -I$(PIGWEED_DIR)/pw_trace/public
17*84e33947SAndroid Build Coastguard WorkerCOMMON_CFLAGS += -I$(PIGWEED_DIR)/pw_preprocessor/public