Android.bp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. cc_defaults {
  2. name: "libnativebridge-defaults",
  3. cflags: [
  4. "-Werror",
  5. "-Wall",
  6. ],
  7. cppflags: [
  8. "-fvisibility=protected",
  9. ],
  10. header_libs: ["libnativebridge-headers"],
  11. export_header_lib_headers: ["libnativebridge-headers"],
  12. }
  13. cc_library_headers {
  14. name: "libnativebridge-headers",
  15. host_supported: true,
  16. export_include_dirs: ["include"],
  17. }
  18. cc_library {
  19. name: "libnativebridge",
  20. defaults: ["libnativebridge-defaults"],
  21. host_supported: true,
  22. srcs: ["native_bridge.cc"],
  23. header_libs: [
  24. "libbase_headers",
  25. ],
  26. shared_libs: [
  27. "liblog",
  28. ],
  29. // TODO(jiyong): remove this line after aosp/885921 lands
  30. export_include_dirs: ["include"],
  31. target: {
  32. android: {
  33. version_script: "libnativebridge.map.txt",
  34. },
  35. linux: {
  36. version_script: "libnativebridge.map.txt",
  37. },
  38. },
  39. stubs: {
  40. symbol_file: "libnativebridge.map.txt",
  41. versions: ["1"],
  42. },
  43. }
  44. // TODO(b/124250621): eliminate the need for this library
  45. cc_library {
  46. name: "libnativebridge_lazy",
  47. defaults: ["libnativebridge-defaults"],
  48. host_supported: false,
  49. srcs: ["native_bridge_lazy.cc"],
  50. required: ["libnativebridge"],
  51. }
  52. subdirs = ["tests"]