Android.bp 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /*
  2. * Copyright (C) 2017 The Android Open Source Project
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. cc_library_static {
  17. name: "chre_client",
  18. vendor: true,
  19. export_include_dirs: [
  20. "host/common/include",
  21. "platform/shared/include",
  22. "util/include",
  23. ],
  24. srcs: [
  25. "host/common/fragmented_load_transaction.cc",
  26. "host/common/host_protocol_host.cc",
  27. "host/common/socket_client.cc",
  28. "platform/shared/host_protocol_common.cc",
  29. ],
  30. header_libs: ["chre_flatbuffers"],
  31. export_header_lib_headers: ["chre_flatbuffers"],
  32. shared_libs: [
  33. "libcutils",
  34. "liblog",
  35. "libutils",
  36. ],
  37. cflags: ["-Wall", "-Werror"],
  38. }
  39. cc_binary {
  40. name: "chre_test_client",
  41. vendor: true,
  42. local_include_dirs: [
  43. "chre_api/include/chre_api",
  44. "util/include",
  45. ],
  46. srcs: [
  47. "host/common/test/chre_test_client.cc",
  48. ],
  49. cflags: ["-Wall", "-Werror"],
  50. shared_libs: [
  51. "libcutils",
  52. "liblog",
  53. "libutils",
  54. ],
  55. static_libs: ["chre_client"],
  56. }
  57. cc_test {
  58. name: "audio_stress_test",
  59. vendor: true,
  60. local_include_dirs: [
  61. "chre_api/include/chre_api",
  62. "util/include",
  63. ],
  64. srcs: [
  65. "host/common/audio_stress_test/audio_stress_test.cc",
  66. ],
  67. cflags: ["-Wall", "-Werror"],
  68. shared_libs: [
  69. "libcutils",
  70. "liblog",
  71. "libutils",
  72. ],
  73. static_libs: ["chre_client"],
  74. gtest: false,
  75. }
  76. cc_library_shared {
  77. name: "[email protected]",
  78. vendor: true,
  79. relative_install_path: "hw",
  80. srcs: [
  81. "host/hal_generic/generic_context_hub.cc",
  82. ],
  83. cflags: ["-Wall", "-Werror"],
  84. shared_libs: [
  85. "libcutils",
  86. "liblog",
  87. "libhidlbase",
  88. "libhidltransport",
  89. "libutils",
  90. "[email protected]",
  91. ],
  92. static_libs: ["chre_client"],
  93. }
  94. cc_library_headers {
  95. name: "chre_api",
  96. vendor: true,
  97. export_include_dirs: [
  98. "chre_api/include/chre_api",
  99. ]
  100. }
  101. cc_library_headers {
  102. name: "chre_flatbuffers",
  103. vendor: true,
  104. export_include_dirs: [
  105. "external/flatbuffers/include",
  106. ],
  107. }
  108. subdirs = [
  109. "apps/wifi_offload",
  110. ]