core.mk 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #
  2. # Core Makefile
  3. #
  4. # Common Compiler Flags ########################################################
  5. # Include paths.
  6. COMMON_CFLAGS += -Icore/include
  7. # Common Source Files ##########################################################
  8. COMMON_SRCS += core/event.cc
  9. COMMON_SRCS += core/event_loop.cc
  10. COMMON_SRCS += core/event_loop_manager.cc
  11. COMMON_SRCS += core/event_ref_queue.cc
  12. COMMON_SRCS += core/host_comms_manager.cc
  13. COMMON_SRCS += core/init.cc
  14. COMMON_SRCS += core/nanoapp.cc
  15. COMMON_SRCS += core/sensor.cc
  16. COMMON_SRCS += core/sensor_request.cc
  17. COMMON_SRCS += core/sensor_request_manager.cc
  18. COMMON_SRCS += core/sensor_type.cc
  19. COMMON_SRCS += core/static_nanoapps.cc
  20. COMMON_SRCS += core/timer_pool.cc
  21. # Optional audio support.
  22. ifeq ($(CHRE_AUDIO_SUPPORT_ENABLED), true)
  23. COMMON_SRCS += core/audio_request_manager.cc
  24. endif
  25. # Optional GNSS support.
  26. ifeq ($(CHRE_GNSS_SUPPORT_ENABLED), true)
  27. COMMON_SRCS += core/gnss_manager.cc
  28. endif
  29. # Optional Wi-Fi support.
  30. ifeq ($(CHRE_WIFI_SUPPORT_ENABLED), true)
  31. COMMON_SRCS += core/wifi_request_manager.cc
  32. COMMON_SRCS += core/wifi_scan_request.cc
  33. endif
  34. # Optional WWAN support.
  35. ifeq ($(CHRE_WWAN_SUPPORT_ENABLED), true)
  36. COMMON_SRCS += core/wwan_request_manager.cc
  37. endif
  38. # GoogleTest Source Files ######################################################
  39. GOOGLETEST_SRCS += core/tests/audio_request_manager_test.cc
  40. GOOGLETEST_SRCS += core/tests/memory_manager_test.cc
  41. GOOGLETEST_SRCS += core/tests/request_multiplexer_test.cc
  42. GOOGLETEST_SRCS += core/tests/sensor_request_test.cc
  43. GOOGLETEST_SRCS += core/tests/wifi_scan_request_test.cc