Android.bp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // libbtcore static library for target and host
  2. // ========================================================
  3. cc_library_static {
  4. name: "libbtcore",
  5. defaults: ["fluoride_defaults"],
  6. local_include_dirs: ["include"],
  7. include_dirs: ["system/bt"],
  8. srcs: [
  9. "src/device_class.cc",
  10. "src/hal_util.cc",
  11. "src/module.cc",
  12. "src/osi_module.cc",
  13. "src/property.cc",
  14. ],
  15. shared_libs: [
  16. "liblog",
  17. ],
  18. header_libs: ["libbluetooth_headers"],
  19. host_supported: true,
  20. target: {
  21. linux_glibc: {
  22. cflags: ["-D_GNU_SOURCE"],
  23. },
  24. },
  25. }
  26. // Note: It's good to get the tests compiled both for the host and the target so
  27. // we get to test with both Bionic libc and glibc
  28. // libbtcore unit tests for target and host
  29. // ========================================================
  30. cc_test {
  31. name: "net_test_btcore",
  32. test_suites: ["device-tests"],
  33. defaults: ["fluoride_defaults"],
  34. local_include_dirs: ["include"],
  35. include_dirs: ["system/bt"],
  36. srcs: [
  37. "test/device_class_test.cc",
  38. "test/property_test.cc",
  39. ],
  40. shared_libs: [
  41. "liblog",
  42. ],
  43. static_libs: [
  44. "libbtcore",
  45. "libosi-AllocationTestHarness",
  46. "libosi",
  47. ],
  48. host_supported: true,
  49. }