• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Core Makefile
3#
4
5# Common Compiler Flags ########################################################
6
7# Include paths.
8COMMON_CFLAGS += -I$(CHRE_PREFIX)/core/include
9
10# Common Source Files ##########################################################
11
12COMMON_SRCS += $(CHRE_PREFIX)/core/debug_dump_manager.cc
13COMMON_SRCS += $(CHRE_PREFIX)/core/event.cc
14COMMON_SRCS += $(CHRE_PREFIX)/core/event_loop.cc
15COMMON_SRCS += $(CHRE_PREFIX)/core/event_loop_manager.cc
16COMMON_SRCS += $(CHRE_PREFIX)/core/event_ref_queue.cc
17COMMON_SRCS += $(CHRE_PREFIX)/core/host_comms_manager.cc
18COMMON_SRCS += $(CHRE_PREFIX)/core/host_endpoint_manager.cc
19COMMON_SRCS += $(CHRE_PREFIX)/core/init.cc
20COMMON_SRCS += $(CHRE_PREFIX)/core/log.cc
21COMMON_SRCS += $(CHRE_PREFIX)/core/nanoapp.cc
22COMMON_SRCS += $(CHRE_PREFIX)/core/settings.cc
23COMMON_SRCS += $(CHRE_PREFIX)/core/static_nanoapps.cc
24COMMON_SRCS += $(CHRE_PREFIX)/core/system_health_monitor.cc
25COMMON_SRCS += $(CHRE_PREFIX)/core/timer_pool.cc
26
27# Optional audio support.
28ifeq ($(CHRE_AUDIO_SUPPORT_ENABLED), true)
29COMMON_SRCS += $(CHRE_PREFIX)/core/audio_request_manager.cc
30endif
31
32# Optional BLE support.
33ifeq ($(CHRE_BLE_SUPPORT_ENABLED), true)
34COMMON_SRCS += $(CHRE_PREFIX)/core/ble_request.cc
35COMMON_SRCS += $(CHRE_PREFIX)/core/ble_request_manager.cc
36COMMON_SRCS += $(CHRE_PREFIX)/core/ble_request_multiplexer.cc
37endif
38
39# Optional GNSS support.
40ifeq ($(CHRE_GNSS_SUPPORT_ENABLED), true)
41COMMON_SRCS += $(CHRE_PREFIX)/core/gnss_manager.cc
42endif
43
44# Optional sensors support.
45ifeq ($(CHRE_SENSORS_SUPPORT_ENABLED), true)
46COMMON_SRCS += $(CHRE_PREFIX)/core/sensor.cc
47COMMON_SRCS += $(CHRE_PREFIX)/core/sensor_request.cc
48COMMON_SRCS += $(CHRE_PREFIX)/core/sensor_request_manager.cc
49COMMON_SRCS += $(CHRE_PREFIX)/core/sensor_request_multiplexer.cc
50COMMON_SRCS += $(CHRE_PREFIX)/core/sensor_type.cc
51COMMON_SRCS += $(CHRE_PREFIX)/core/sensor_type_helpers.cc
52endif
53
54# Optional Wi-Fi support.
55ifeq ($(CHRE_WIFI_SUPPORT_ENABLED), true)
56COMMON_SRCS += $(CHRE_PREFIX)/core/wifi_request_manager.cc
57COMMON_SRCS += $(CHRE_PREFIX)/core/wifi_scan_request.cc
58endif
59
60# Optional WWAN support.
61ifeq ($(CHRE_WWAN_SUPPORT_ENABLED), true)
62COMMON_SRCS += $(CHRE_PREFIX)/core/wwan_request_manager.cc
63endif
64
65# Optional Telemetry support.
66ifeq ($(CHRE_TELEMETRY_SUPPORT_ENABLED), true)
67COMMON_SRCS += $(CHRE_PREFIX)/core/telemetry_manager.cc
68
69COMMON_CFLAGS += -DPB_FIELD_32BIT
70COMMON_CFLAGS += -DCHRE_TELEMETRY_SUPPORT_ENABLED
71
72NANOPB_EXTENSION = nanopb
73
74NANOPB_SRCS += $(CHRE_PREFIX)/core/chre_metrics.proto
75
76include $(CHRE_PREFIX)/build/nanopb.mk
77endif
78
79# GoogleTest Source Files ######################################################
80
81GOOGLETEST_SRCS += $(CHRE_PREFIX)/core/tests/audio_util_test.cc
82GOOGLETEST_SRCS += $(CHRE_PREFIX)/core/tests/ble_request_test.cc
83GOOGLETEST_SRCS += $(CHRE_PREFIX)/core/tests/memory_manager_test.cc
84GOOGLETEST_SRCS += $(CHRE_PREFIX)/core/tests/request_multiplexer_test.cc
85GOOGLETEST_SRCS += $(CHRE_PREFIX)/core/tests/sensor_request_test.cc
86GOOGLETEST_SRCS += $(CHRE_PREFIX)/core/tests/wifi_scan_request_test.cc
87