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