1#
2# Core Makefile
3#
4
5# Common Compiler Flags ########################################################
6
7# Include paths.
8COMMON_CFLAGS += -Icore/include
9
10# Common Source Files ##########################################################
11
12COMMON_SRCS += core/debug_dump_manager.cc
13COMMON_SRCS += core/event.cc
14COMMON_SRCS += core/event_loop.cc
15COMMON_SRCS += core/event_loop_manager.cc
16COMMON_SRCS += core/event_ref_queue.cc
17COMMON_SRCS += core/host_comms_manager.cc
18COMMON_SRCS += core/init.cc
19COMMON_SRCS += core/nanoapp.cc
20COMMON_SRCS += core/settings.cc
21COMMON_SRCS += core/static_nanoapps.cc
22COMMON_SRCS += core/timer_pool.cc
23
24# Optional audio support.
25ifeq ($(CHRE_AUDIO_SUPPORT_ENABLED), true)
26COMMON_SRCS += core/audio_request_manager.cc
27endif
28
29# Optional GNSS support.
30ifeq ($(CHRE_GNSS_SUPPORT_ENABLED), true)
31COMMON_SRCS += core/gnss_manager.cc
32endif
33
34# Optional sensors support.
35ifeq ($(CHRE_SENSORS_SUPPORT_ENABLED), true)
36COMMON_SRCS += core/sensor.cc
37COMMON_SRCS += core/sensor_request.cc
38COMMON_SRCS += core/sensor_request_manager.cc
39COMMON_SRCS += core/sensor_request_multiplexer.cc
40COMMON_SRCS += core/sensor_type.cc
41COMMON_SRCS += core/sensor_type_helpers.cc
42endif
43
44# Optional Wi-Fi support.
45ifeq ($(CHRE_WIFI_SUPPORT_ENABLED), true)
46COMMON_SRCS += core/wifi_request_manager.cc
47COMMON_SRCS += core/wifi_scan_request.cc
48endif
49
50# Optional WWAN support.
51ifeq ($(CHRE_WWAN_SUPPORT_ENABLED), true)
52COMMON_SRCS += core/wwan_request_manager.cc
53endif
54
55# GoogleTest Source Files ######################################################
56
57GOOGLETEST_SRCS += core/tests/audio_util_test.cc
58GOOGLETEST_SRCS += core/tests/memory_manager_test.cc
59GOOGLETEST_SRCS += core/tests/request_multiplexer_test.cc
60GOOGLETEST_SRCS += core/tests/sensor_request_test.cc
61GOOGLETEST_SRCS += core/tests/wifi_scan_request_test.cc
62