xref: /aosp_15_r20/system/chre/variant/simulator/variant.mk (revision 84e339476a462649f82315436d70fd732297a399)
1#
2# Simulator-Specific CHRE Makefile
3#
4
5# Version String ###############################################################
6
7COMMIT_HASH_COMMAND = git describe --always --long --dirty
8
9VERSION_STRING = chre=$(shell $(COMMIT_HASH_COMMAND))
10
11COMMON_CFLAGS += -DCHRE_VERSION_STRING='"$(VERSION_STRING)"'
12
13# Common Compiler Flags ########################################################
14
15# Supply a symbol to indicate that the build variant supplies the static
16# nanoapp list.
17COMMON_CFLAGS += -DCHRE_VARIANT_SUPPLIES_STATIC_NANOAPP_LIST
18
19# Enable exceptions for TCLAP.
20GOOGLE_X86_LINUX_CFLAGS += -fexceptions
21
22# Optional Features ############################################################
23
24CHRE_AUDIO_SUPPORT_ENABLED = true
25CHRE_BLE_SUPPORT_ENABLED = true
26CHRE_GNSS_SUPPORT_ENABLED = true
27CHRE_SENSORS_SUPPORT_ENABLED = true
28CHRE_WIFI_SUPPORT_ENABLED = true
29CHRE_WIFI_NAN_SUPPORT_ENABLED = true
30CHRE_WWAN_SUPPORT_ENABLED = true
31
32# Common Source Files ##########################################################
33
34COMMON_SRCS += variant/simulator/static_nanoapps.cc
35
36