1# 2# Platform Makefile 3# 4 5include $(CHRE_PREFIX)/external/flatbuffers/flatbuffers.mk 6 7# Common Compiler Flags ######################################################## 8 9# Include paths. 10COMMON_CFLAGS += -Iplatform/include 11 12# Common Compiler Flags ######################################################## 13 14# Hexagon-specific Compiler Flags ############################################## 15 16# Include paths. 17HEXAGON_CFLAGS += -Iplatform/shared/include 18HEXAGON_CFLAGS += -Iplatform/slpi/include 19 20# We use FlatBuffers in the Hexagon (SLPI) platform layer 21HEXAGON_CFLAGS += $(FLATBUFFERS_CFLAGS) 22 23# Hexagon-specific Source Files ################################################ 24 25HEXAGON_SRCS += platform/shared/chre_api_core.cc 26HEXAGON_SRCS += platform/shared/chre_api_gnss.cc 27HEXAGON_SRCS += platform/shared/chre_api_re.cc 28HEXAGON_SRCS += platform/shared/chre_api_sensor.cc 29HEXAGON_SRCS += platform/shared/chre_api_version.cc 30HEXAGON_SRCS += platform/shared/chre_api_wifi.cc 31HEXAGON_SRCS += platform/shared/chre_api_wwan.cc 32HEXAGON_SRCS += platform/shared/host_protocol_chre.cc 33HEXAGON_SRCS += platform/shared/host_protocol_common.cc 34HEXAGON_SRCS += platform/shared/memory.cc 35HEXAGON_SRCS += platform/shared/pal_system_api.cc 36HEXAGON_SRCS += platform/shared/platform_gnss.cc 37HEXAGON_SRCS += platform/shared/platform_sensor.cc 38HEXAGON_SRCS += platform/shared/platform_wifi.cc 39HEXAGON_SRCS += platform/shared/platform_wwan.cc 40HEXAGON_SRCS += platform/shared/static_nanoapps.cc 41HEXAGON_SRCS += platform/shared/system_time.cc 42HEXAGON_SRCS += platform/slpi/host_link.cc 43HEXAGON_SRCS += platform/slpi/init.cc 44HEXAGON_SRCS += platform/slpi/platform_nanoapp.cc 45HEXAGON_SRCS += platform/slpi/platform_sensor.cc 46HEXAGON_SRCS += platform/slpi/platform_sensor_util.cc 47HEXAGON_SRCS += platform/slpi/static_nanoapps.cc 48HEXAGON_SRCS += platform/slpi/system_time.cc 49HEXAGON_SRCS += platform/slpi/system_timer.cc 50 51# x86-specific Compiler Flags ################################################## 52 53X86_CFLAGS += -Iplatform/shared/include 54X86_CFLAGS += -Iplatform/linux/include 55 56# x86-specific Source Files #################################################### 57 58X86_SRCS += platform/linux/event_loop.cc 59X86_SRCS += platform/linux/host_link.cc 60X86_SRCS += platform/linux/static_nanoapps.cc 61X86_SRCS += platform/linux/system_time.cc 62X86_SRCS += platform/linux/system_timer.cc 63X86_SRCS += platform/linux/platform_nanoapp.cc 64X86_SRCS += platform/linux/platform_sensor.cc 65X86_SRCS += platform/shared/chre_api_core.cc 66X86_SRCS += platform/shared/chre_api_gnss.cc 67X86_SRCS += platform/shared/chre_api_re.cc 68X86_SRCS += platform/shared/chre_api_sensor.cc 69X86_SRCS += platform/shared/chre_api_version.cc 70X86_SRCS += platform/shared/chre_api_wifi.cc 71X86_SRCS += platform/shared/chre_api_wwan.cc 72X86_SRCS += platform/shared/memory.cc 73X86_SRCS += platform/shared/pal_gnss_stub.cc 74X86_SRCS += platform/shared/pal_wifi_stub.cc 75X86_SRCS += platform/shared/pal_wwan_stub.cc 76X86_SRCS += platform/shared/pal_system_api.cc 77X86_SRCS += platform/shared/platform_gnss.cc 78X86_SRCS += platform/shared/platform_sensor.cc 79X86_SRCS += platform/shared/platform_wifi.cc 80X86_SRCS += platform/shared/platform_wwan.cc 81X86_SRCS += platform/shared/static_nanoapps.cc 82X86_SRCS += platform/shared/system_time.cc 83 84GOOGLE_X86_LINUX_SRCS += platform/linux/init.cc 85 86# GoogleTest Compiler Flags #################################################### 87 88GOOGLETEST_CFLAGS += -Iplatform/slpi/include 89 90# GoogleTest Source Files ###################################################### 91 92GOOGLETEST_SRCS += platform/linux/assert.cc 93GOOGLETEST_SRCS += platform/slpi/platform_sensor_util.cc 94GOOGLETEST_SRCS += platform/slpi/tests/platform_sensor_util_test.cc 95